[wtr-general] Re: How to work with popups?

2009-05-19 Thread satish
Hey, I just now installed "1.8.6-26 Final Release". "click_no_wait" worked like charm with this version. "click_no_wait" does not work with "1.8.6-27" I wasted one week on this issue. :)) Thanks Satish. On May 19, 9:53 am, satish wrote: > I was able to click as long as I do not use "click" m

[wtr-general] Re: How to work with popups?

2009-05-19 Thread satish
I was able to click as long as I do not use "click" method to open popup. (I manually clicked on icon to open popup after that my popup funciton took care of clicking on "Yes" button. My problem is since we can only use click_no_wait button to work with popup clicking methods and click_no_wait doe

[wtr-general] Re: How to work with popups?

2009-05-19 Thread Carlc75
Hi, the method we use is a combination of Ruby and Autoit where we write the contents of the popup to stdout. Ruby script: # Creates a process that, after a given timeout, # kills an internet explorer message window and returns the result. # # The success of this class is dependent on the prese

回复: [wtr-general] Re: How to work with popups?

2009-05-19 Thread lianglina_2003
--~--~-~--~~~---~--~~ 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/

[wtr-general] Re: How to work with popups?

2009-05-18 Thread satish
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

[wtr-general] Re: How to work with popups?

2009-05-18 Thread George
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.C

[wtr-general] Re: How to work with popups?

2009-05-17 Thread sHiVa
Hi Sathish, Please increase the waitTime value from 3 to 15 or 30. With out using click_no_wait script will not move further. So click_no_wait is mandatery. Click_no_wait will take more time to click on a button than ordinary click method. So increasing the waitTime value will give you desired r

[wtr-general] Re: How to work with popups?

2009-05-17 Thread satish
Here is my code modified with Thread, I am not getting any error message when I use click_no_wait. But I did not see the popup message either to click. When I use click method I see the popup message but it did not click on "%Yes" ("Yes" is the text shown on button but when I see HTML for that I s

[wtr-general] Re: How to work with popups?

2009-05-17 Thread satish
yup, its not working for me. Even Shiva code is not working. I got "Error Boss" message. Its directly througing error message. How to work with treads? I never did this before. Thanks Satish. On May 17, 2:15 pm, kiran wrote: > Hi, > I think here click_no_wait method doesn't work here. > you ha

[wtr-general] Re: How to work with popups?

2009-05-17 Thread kiran
Hi, I think here click_no_wait method doesn't work here. you have to handle this by using threads. thanks, kiran. On May 17, 8:05 am, sHiVa wrote: > Hi Sathish, > Use this code to click on a popup > > require 'test/unit' > require 'watir/ie' > require 'win32ole' > require 'watir/screen_capture'

[wtr-general] Re: How to work with popups?

2009-05-16 Thread sHiVa
Hi Sathish, Use this code to click on a popup require 'test/unit' require 'watir/ie' require 'win32ole' require 'watir/screen_capture' require 'watir\contrib\enabled_popup' #Code START for handling a popup def jsClick( ie, but

[wtr-general] Re: How to work with popups?

2009-05-16 Thread satish
click_no_wait does not seems to work. any other thoughts? Thanks Satish On May 15, 1:12 pm, orde wrote: > As Suri suggested, you might want to try click_no_wait instead of > click when you access the link that spawns the popup. > > Also, checkhttp://wiki.openqa.org/display/WTR/Pop+Ups. > > Hope

[wtr-general] Re: How to work with popups?

2009-05-15 Thread orde
As Suri suggested, you might want to try click_no_wait instead of click when you access the link that spawns the popup. Also, check http://wiki.openqa.org/display/WTR/Pop+Ups. Hope that helps... orde On May 15, 6:00 am, satish wrote: > Hi Lisa, > > Still I am getting following error..here is

[wtr-general] Re: How to work with popups?

2009-05-15 Thread satish
Hi Lisa, Still I am getting following error..here is my code and error. What I noticed was after I got the popup its staying there just like that, no action is happening. If I respond to that popup by clicking "OK" button popup will close then this error messages are coming. =

[wtr-general] Re: How to work with popups?

2009-05-15 Thread ash
There are now a number of threads regarding pop ups including those referring to javascript alerts. I have successfully scripted checks for the 'OK' button on an alert but am now struggling with an alert that has different options and would gratefully receive any advice out there. On May 15, 8:36

[wtr-general] Re: How to work with popups?

2009-05-15 Thread suri
Better to use click_no_wait instead only click --~--~-~--~~~---~--~~ 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 th

[wtr-general] Re: How to work with popups?

2009-05-14 Thread Lisa Crispin
There was a recent thread on this so you may want to search the email archive. This is what we do, but I don't know if it is the best way. require 'watir\ie' require 'watir\contrib\enabled_popup' # Main method to click a modal dialog button. def click_modal_button(ie, type='OK', sleep_ti