try this with using autoit
first set focus on ur control(button/link) on which you have to perform
click operation then send key enter OR you can use fire_event methos with
onclick parameter
like example
require 'win32ole'
$autoit = WIN32OLE.new('AutoItX3.
Control')
ie.frame(:index, 3).button(:id,'#ICSave').focus
$autoit.Send("{ENTER}") # it will perform your onclick event
sleep(5)
txt = ie.clickprompt()
On Fri, Oct 8, 2010 at 11:45 AM, Chris Strife <
[email protected]> wrote:
> Hello,
>
> I see many articles on dealing with popups and I have tried
> implementing the functions given, however the OK button simply is not
> getting clicked.
>
> The specific function I am dealing with is the onclick="return
> confirm('confirmation text')
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]<http://groups.google.com/group/watir-general%[email protected]>
>
--
RAJIV KUMAR
<http://rajivkumarnandvani.wordpress.com/>
<http://learnqtphelp.blogspot.com/>
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]