So I know that this issue was resolved here: https://groups.google.com/d/msg/watir-general/FqVBzjNuOqA/7HtFJoJYzzkJ
but when I tested it I was running on Windows XP SP 3 with IE 8. We just
got new testing servers in that are Windows 2008 and IE9 and when I do the
following I get an error (attached is the test html file).
b = Watir::Browser.new
b.goto('file:///c:/test.html/')
b.execute_script "window.prompt = function() { return true; }"
WIN32OLERuntimeError: (in OLE method `execScript': )
OLE error code:80020101 in <Unknown>
Could not complete the operation due to error 80020101.
HRESULT error code:0x80020009
Exception occurred.
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.6.0/lib/watir-classic/page-container.rb:29:in
`method_missing'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.6.0/lib/watir-classic/page-container.rb:29:in
`rescue in execute_script'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.6.0/lib/watir-classic/page-container.rb:22:in
`execute_script'
from (irb):5
from C:/Ruby193/bin/irb:12:in `<main>'
I've also attached the settings.
I know this is an annoying issue, and I am sorry for bring it up, but one
of our legacy systems has an issue with dual JS popups that the devs cannot
take out (for one reason or another).
Thank you very much for your help.
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
<<attachment: settings.png>>
