search for: window_text

Displaying 1 result from an estimated 1 matches for "window_text".

2007 Apr 24
0
how to capture text from a popup window..in watir
...# watir_command_to_make_dialog_appear # end # def assert_js_dialog(pattern = //, action = "close", message = nil) _wrap_assertion do begin pipe = IO.popen("ruby exetry.rb #{action}") yield window_text = pipe.read rescue "" pipe.close unless window_text.empty? assert_block(build_message(message, "<?> not found in JavaScript dialog.", pattern)) do window_text.match(pat...