Does Watir have a way of processing _javascript_ Alert windows,
by clicking the OK button to dismiss the window? The code that invokes the
window issues an alert call with no window handle. I did not find anything on
this in the online docs or in the email dist.
] On
Behalf Of David Munns
Sent: Wednesday, October 04, 2006
12:19 PM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] _javascript_
Alert windows
Does Watir have a way of processing _javascript_ Alert
windows, by clicking the OK button to dismiss the window? The code that invokes
the window issues
I am building test automation for a product that displays
_javascript_ alert windows, for which no window handle exists. They act like
modal windows since they wait for a user mouse click on a button (and pause the
automation run). Is there a way with watir to simulate the button click?
I want to invoke a modal dialog
window and navigate through its buttons, radio buttons, and lists. I am using
watir 1.5.1081. The object that launches it is described as follows:
Active Element: [TD], Frame:
[fraBanner], Index: [29]
TD
IMG
height=30
src="" width=69
IMG
Has anyone discovered a solution to the following?
I built a test tool with Ruby/Watir (1.4). When I upgraded
to Watir 1.5.1.1081 so that I could control modal dialog windows, suddenly the
watir attach_browser_window call is unable to locate the main IE window by
title. I tried other
report.
David, It look like you are running the core_tests.rb. Ruby
windows_tests.rb to run the unit tests for IE.attach.
Bret
David Munns wrote:
Has anyone discovered a solution to the following?
I built a test tool with Ruby/Watir (1.4). When I upgraded to Watir
1.5.1.1081 so that I
I uninstalled all Ruby and Watir versions, installed Ruby 1.85-21 and
Watir 1.5.1.1081. Running the Watir unit tests (ruby window_tests.rb)
cause the IE information bar to keep prompting me allow blocked
content? which appears to mess up the unit tests (failures and errors).
Various attempts to