Hi,
I am writing a test case in which I am required to access the text contents from an alert window or confirm that the alert window has appeared.
I am calling the method "text" to obtain the text contents after the "Alert window " has appeared . The method "text" is defined as below.......
def text(wait_seconds = 1)
# sleep 0.3
autoit.WinWait(WINDOW_TITLE, nil, wait_seconds) if wait_seconds
s = autoit.WinGetText(WINDOW_TITLE)
# sleep 0.3
autoit.WinWait(WINDOW_TITLE, nil, wait_seconds) if wait_seconds
s = autoit.WinGetText(WINDOW_TITLE)
puts s
end
end
"s" is printed as "nil" and sometimes "1" though the alert window has a string with length more than 10 characters
Please help......
Thanks
Chaya
Yahoo! India Matrimony: Find your partner now.
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
