You seem to be confusing the issue, you have an image ua/images/button-signoff.gif which may look like a 'button' but is not an HTML button. Now that Corion has edited your node so that people can actually see the HTML you are dealing with we can see that this has an anchor tag <A HREF="javascript:subForm('UA_Signin','signOff')">...</a>, so you want to look at using the $ie->follow_link() method to instruct IE to 'click' the link (again, this is not an HTML button) which should run the JavaScript.
Update: Added the word method to the last sentence
Hope this helps
Martin | [reply] [d/l] [select] |
now i tried with find_link(%opt)but still on same positoin. I used
$ie->find_link("javascript:subForm('UA_Signin','signOff')")
I am getting error can't call method "find_link" on an undefined value.
Even i tried number and text option also :-(
Thanks
| [reply] |
rshrivaQ,
Have you declared my $ie = Win32::IE::Mechanize->new(); in your code? Post what you have so that we can better help you with this issue. Please remember to format your post properly, as previously discussed.
Update: Also, did you notice that in my previous reply I suggested looking at the $ie->follow_link() method?
Thanks
Martin
| [reply] [d/l] [select] |