Posted on 2007-09-28 17:11:28-07 by ymarchuk
The function 'push_confirm_button_ok' cannot be used.
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-&gt;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.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.