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
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 'jsc
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 part
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
Great thanks. That's got rid of the error message, but it still appears to be
running through twice and therefore stopping midway through.
The 'sign in' click takes you through to sign in page.
Th continue button should cause the alert to appear.
I then need to capture the text within the popup.
Hi,
Make sure you escape '\' character in the file name by putting another '\'
character in front of it.
- Angrez
On 5/11/07, gary <[EMAIL PROTECTED]> wrote:
Thanks again for your help.
i am getting the following load error - ubygems.8gemswatir-
1.5.1.1164unittestsjscriptExtraAlert.rb (Load
Thanks again for your help.
i am getting the following load error -
ubygems.8gemswatir-1.5.1.1164unittestsjscriptExtraAlert.rb (LoadError)
require 'watir' # the controller
include Watir
require 'watir/WindowHelper'
require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'dl/win
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 path..
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 th
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\"") }
#pleas
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", ""
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
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 a
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
inclu
14 matches
Mail list logo