Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-15 Thread gary
OK, now here's the latest update. Once again any help would be greatly appreciated as I'm having difficulty in extracting the text from an alert. Coming from a qa background rather than developer, I feel like a fish out of watir. Anyway, I've figured out how to deal with the script halting

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-15 Thread Angrez Singh
Hi Gary, Since you are starting a new thread for handling pop up. The text that you are sending to console will not be available to you. Also the captureText that you are writing won't be able to help you because the pop up will already be closed by start_js_clicker. If you look at the file

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-15 Thread gary
Fantastic, works a treat. If we were down the pub I'd buy you a drink. Thanks. Gary ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-14 Thread gary
Any more ideas anyone, surely I'm not the only one with this problem? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-10 Thread gary
Hi still no luck I'm afraid, this is the closest I can get to what I want but with odd behaviour. For some reason the first alert does not appear to be recognised, but if I select this manually and then select the continue button again then the script kicks in again, extracts the text, puts

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-10 Thread SHALINI GUPTA
hi, Tell me is 'continue' is responsible for popup... if yes..then how it will take text..u didnot define any function for popup hadling...include this function too.. def start_jsalert_clicker Thread.new{ system(ruby \c:\\PSC\\jscriptExtraAlert.rb\) }### please take care of this

[Wtr-general] Having trouble capturing text in java alert

2007-05-09 Thread gary
Hi everyone, I'm having difficulty in capturing the text from a java alert, and would appreciate anyones input. Using AutoIT, for the pop up window works a treat, allowing me to capture the text, and then select the OK button to proceed with the script: require 'watir' # the controller

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-09 Thread Charley Baker
w = WinClicker.new text = w.get_static_text('Microsoft Internet Explorer') # returns an array for each static control text.each {|t| puts t} -Charley On 5/9/07, gary [EMAIL PROTECTED] wrote: Hi everyone, I'm having difficulty in capturing the text from a java alert, and would appreciate

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-09 Thread gary
Thanks for the prompt reply. I added the code but it appears to return a value of 'Google', any ideas? require 'watir' # the controller include Watir require 'watir/WindowHelper' require 'test/unit' require 'test/unit/ui/console/testrunner' require 'dl/win32' require 'watir/winClicker' class

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-09 Thread SHALINI GUPTA
hi u can use this code.. def start_jsalert_clicker Thread.new{ system(ruby \c:\\PSC\\jscriptExtraAlert.rb\) } #please specify ur path of jscriptExtraAlert end u have to change ur windowhelper.rb file as... def push_alert_button @autoit.WinWait Window Internet Explorer,

Re: [Wtr-general] Having trouble capturing text in java alert

2007-05-09 Thread SHALINI GUPTA
once again..use this function start_jsalert_clicker...before the object who is responsible for java alert popup.. On 5/10/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: hi u can use this code.. def start_jsalert_clicker Thread.new{ system(ruby \c:\\PSC\\jscriptExtraAlert.rb\) } #please