[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-21 Thread Tony
Hi Dheeraj, Forgot to add the outval variable before the begin in wait. Have updated the code, please try changing the code again. Let me know if you run into any other issues. Thanks, Tony On Jul 21, 9:51 am, Dheeraj Gambhir checktestingthi...@gmail.com wrote: Hi, I tried my code by

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-21 Thread Dheeraj Gambhir
Thanks a lot dude, u rock Its working perfectly fine. Regards D G On Tue, Jul 21, 2009 at 11:32 AM, Tony ynot...@gmail.com wrote: Hi Dheeraj, Forgot to add the outval variable before the begin in wait. Have updated the code, please try changing the code again. Let me know if you run into

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-21 Thread Dheeraj Gambhir
Is there any command to get text from web page like my requirement is to get order-no from thank you page. Regards D G On Tue, Jul 21, 2009 at 12:32 PM, Dheeraj Gambhir checktestingthi...@gmail.com wrote: Thanks a lot dude, u rock Its working perfectly fine. Regards D G On Tue, Jul 21,

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-21 Thread Chuck van der Linden
On Jul 21, 12:12 am, Dheeraj Gambhir checktestingthi...@gmail.com wrote: Is there any command to get text from web page like my requirement is to get order-no from thank you page. Please search the group for an answer first, I'm pretty sure this topic has been covered. If you dont' find an

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-20 Thread Željko Filipin
On Mon, Jul 20, 2009 at 11:34 AM, Dheeraj Gambhir checktestingthi...@gmail.com wrote: whenever i goto the login page it throws me a security alert popup Take a look: http://wiki.openqa.org/display/WTR/Pop+Ups http://wiki.openqa.org/display/WTR/Security+Alerts Željko --

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-20 Thread Dheeraj Gambhir
It is not working yet, i have tried all the given below methods in code: ** require 'rubygems' require 'watir' require 'win32ole' ie = Watir::IE.new ie.goto('http://qa2.mlb.com/enterworkflow.do? flowId=sb_purchasebrand=cle_scoreboardwfClub=cle') puts

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-20 Thread Dheeraj Gambhir
I tried this also, but all in vain: require 'rubygems' require 'watir' require 'win32ole' require 'watir/ie' require 'watir\contrib\enabled_popup' def startClicker(button , waitTime= 9, user_input=Yes) hwnd = $ie.enabled_popup(waitTime) if(hwnd) w = WinClicker.new if(user_input)

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-20 Thread Tony
Hi Dheeraj, Modified http://wiki.openqa.org/display/WTR/Security+Alerts to handle these popups. Note: you would have to change the code in ie_class.rb files for this. No changes or extra steps is required in your testcase. The popups yes button will be clicked automatically. Thanks, Tony

[wtr-general] Re: Security Alert pop-up code is not working at all

2009-07-20 Thread Dheeraj Gambhir
Hi, I tried my code by replacing goto, wait in in C:\ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\ie-class.rb file with the code given in http://wiki.openqa.org/display/WTR/Security+Alerts, but it is giving the following error now: C:\Program Files\Watir\examplesruby finalcount.rb Launched