venkatesan_G02 has asked for the wisdom of the Perl Monks concerning the following question:
<form action="#" name="colorset"><input type="hidden" id="clr" + name="c" value=""></form> <fieldset class="buttonbartop"> <input class="titlebutton" type="button" name="searchcases" value="S +earch All Cases" onclick="javascript:searchcases();"> <input class="titlebutton" type="button" name="getnew" value="Get N +ew Case" onclick="javascript:searchcase();"> <input class="titlebutton" type="button" name="create" value="Creat +e Case" onclick="javascript:makecase();"> <input class="titlebutton" type="button" name="addressbook" value=" +Address Book" onclick="javascript:addressbook();"> <input class="newfeaturebtn" type="button" name="userhistory" value +="My History" onclick="javascript:showhistory();"> <input class="newfeaturebtn" type="button" name="usersettings" valu +e="Settings" onclick="javascript:showsettings();"> <input class="titlebutton" type="button" name="reportproblem" value +="Report a Problem" onclick="javascript:reportproblem();"> <input class="titlebutton" type="button" name="logoff" value="Log O +ff" onclick="javascript:snag('?logoff');"> </fieldset>
#!C:/perl/bin/perl.exe use Win32::IE::Mechanize; my $url = 'http://mallet'; my $ie = Win32::IE::Mechanize->new(visible => 1); $ie->get($url); sleep(2); #wait for 2 sec so that the requested page will be displayed +. $ie->click_button(value => 'Log Off');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Clicking on a button without a form using Win32::IE::Mechanize
by marto (Cardinal) on Sep 21, 2009 at 10:31 UTC | |
by venkatesan_G02 (Sexton) on Sep 21, 2009 at 10:35 UTC | |
by vitoco (Hermit) on Sep 21, 2009 at 13:47 UTC | |
|
Re: Clicking on a button without a form using Win32::IE::Mechanize
by Anonymous Monk on Sep 21, 2009 at 15:08 UTC |