I'm looking for more creative approaches.
E.g. as regards this dialog:
http://wiki.openqa.org/display/WTR/Security+Information
I got rid of this simply by changing the security setting of the browser
(manually) to stop displaying this window.
I know that there must be some hook that is available to trap the
javascript errors. If you have Visual Studio installed, instead of
getting this dialog, the visual studio debugger is started up. So there
is a hook there.
I was thinking it would be cool to hook in our own code to that hook,
and was wondering if any one had already done this.
Bret
Hi,
The AutoIt code to check for the pop-up text is as follows:
Code courtesy: http://altentee.com/watir/
require 'watir' require 'rubygems' require 'win32ole' autoit = WIN32OLE.new('AutoItX3.Control') @b.goto('http://justaddwatir.com/watir/test_html/tc_0101_0200/test_0107.html') @b.text_field(:name,"text1").set("This is the text in the popup") @b.button(:name,"submit").click_no_wait autoit.WinWaitActive("[Class:#32770]")text = autoit.ControlGetText("[Class:#32770]", "", "Static2")autoit.ControlClick("[Class:#32770]","","Button1")puts text |
Thanks,
Rohan Ojha
Blue
Star Infotech lÈ+91
900 4955058l ( +91 22 6688 6969 l 6 +91 22 6688 6999 l * rohan...@bsil.com
www.bsil.com - Where Partnerships Are Built on Trust