Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Watir: Clicking on a Window pop-up
Anukul Singhal
6/3/2008 12:05:00 PM
Hi,
I am working on an app which requires me to fill in the login
credentials and then click on the Windows pop-up. The Window pop-up has
windowCaption = "Microsoft Internet Explorer", buttonCaption = "OK"
require 'watir'
require 'watir/winClicker'
ie = Watir::IE.new
ie.goto("www.abc.com")
ie.text_field(:name, "USER").set "michael"
ie.text_field(:name, "PASSWORD").set "schumi"
ie.image(:src, "
http://submit...
).click
wc = WinClicker.new
wc.clickWindowsButton("Microsoft Internet Explorer", "OK", 30)
But it does not click on the pop-up. I even tried the method
clickJavaScriptDialog(button = "OK", parenthWnd = -1), but to no luck.
Even tried to change the window caption from "Microsoft Internet
Explorer" to "Internet Explorer", but still no luck.
Ultimately, to stop the execution, I click on the pop-up manually and
then it gives the error as
"c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.4/watir/winClicker.rb:232:
[BUG] Segementation Fault
This application has requested runtime to terminate it in an unusual
way. Please contact the application's support team for more
information."
Can anyone help in getting the solution for clicking the Windows Pop-up
with windowCaption as "Microsoft Internet Explorer" and Button caption
as "OK"?
Thanks,
Anukul
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Watir: Clicking on a Window pop-up
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password