|
Hello All,
I have simple html-file:
<input type="button" class="cmdBtn" onclick="if (confirm('Are you sure to delete this entity?')) {
+ location.href='/user/delete.do?selectedUser=2X83' }" value="Delete"/>
Also I have simple PERL script:
use Win32::IEAutomation;
my $ie = Win32::IEAutomation->new();
$ie->gotoURL("http://localhost/confirm.html");
$ie->getButton('caption:',"Delete")->Click(1);
my $clicker = Win32::IEAutomation::WinClicker->new();
$clicker->push_confirm_button_ok("Microsoft Internet Explorer",2);
$ie->WaitforDone;
The command $ie->getButton('caption:',"Delete")->Click(1) doesn't let to execute next commands.
Please, help me.
With regards, Yura Marchuk.
|