Hi George,

I tried this but did not work.
I did use 'click' method on image and I got popup as needed. Once I
have popup I am trying to click on "Yes" button. But there is no
responce.

I have tried another schenario where I have to use 'click_no_wait',
problem here is popup does not appear.

Can you please help me here.

Thank you,
Satish.


On May 18, 1:37 pm, George <george.sand...@gmail.com> wrote:
> Hi all,
>
> I was able to have some success using the following code:
>
> # popup_closer.rb
>
> require 'win32ole'
>
> begin
>   autoit = WIN32OLE.new('AutoItX3.Control')
>
>   loop do
>    autoit.ControlClick("Windows Internet Explorer",'', 'OK')
>    autoit.ControlClick("Security Information",'', '&Yes')
>    autoit.ControlClick("Security Alert",'', '&Yes')
>    autoit.ControlClick("Security Warning",'', '&Yes')
>    sleep 2
>   end
>
> rescue Exception => e
>   puts e
> end
>
> ##############################################
> #main_script.rb
>
> # popup handler
>
> @pid = Process.create(
>     :app_name       => 'ruby common_libs\\popup_closer.rb', # or
> wherever you placed the script
>     :creation_flags  => Process::DETACHED_PROCESS
>     ).process_id
>
> at_exit{ Process.kill(9,@pid) }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to