Displaying 1 result from an estimated 1 matches for "watir_command_to_make_dialog_appear".
2007 Apr 24
0
how to capture text from a popup window..in watir
...)
end
@@autoit
end
end
end
module Test::Unit::Assertions
#
# Passes if a Javascript dialog appears within +wait_seconds+ and its
# text matches the given (optional) pattern.
#
# Use like this:
# assert_js_dialog do
# watir_command_to_make_dialog_appear
# end
# Or like this:
# assert_js_dialog /Text to find in the dialog/, "Cancel" do
# watir_command_to_make_dialog_appear
# end
#
def assert_js_dialog(pattern = //, action = "close", message = nil)
_wrap_assertion do
begin...