[Wtr-general] Handling (Browser Security Driven?) Modal Dialog
Sun
forum-watir-users at openqa.org
Thu Sep 7 16:45:52 EDT 2006
Further information -- If I modify it to be:
modal = ie.modal_dialog(:title, "Internet Explorer")
puts(modal.to_s)
modal.button(:value, "Yes").click
The result is, when executed in a command window, the following:
C:\Documents and Settings\...\freeride>ruby tst26.rb
## Beginning of test: Google search
Step 1: go to the test site: http://www.google.com
Action: entered http://www.google.com in the address bar.
Step 2: enter 'pickaxe' in the search text field
Action: entered pickaxe in the search field
Step 3: click the 'Google Search' button
Action: clicked the Google Search button.
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/./watir/waiter.rb:55:in `wait_until': Timed out after 2.022 seconds. (Watir::Exception::TimeOutException)
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/./watir.rb:210:in `until_with_timeout'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/./watir.rb:2613:in `locate'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/./watir.rb:2648:in `initialize'
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/./watir.rb:450:in `modal_dialog'
from tst26.rb:49
Notice that neither the "puts(modal.to_s)" is executed neither is anything else in the script is executed after it.
So...what is wrong? (I am pretty new to ruby and watir but...this shouldn't be this difficult, this is the basic script from the watir user guide after all with just an attempt to click through the security popup!)
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=4012&messageID=11016#11016
More information about the Wtr-general
mailing list