When I use this Watir command you have suggested, it unwraps it and sends
essentially the WIN32OLE command to create a new IE instance, so in turn:
[ myIE = IE.new() ] == [ myIE = WIN32OLE::new( "InternetExplorer.Application" )
]
So this Watir command: `IE.new()` does this:
IE.new() —› IE object constructor: `initialize()` —›
`initialize()` calls `create_browser_window()` —›
`create_browser_window()` executes this command: [EMAIL PROTECTED] =
WIN32OLE.new('InternetExplorer.Application')`
Having used Ruby's WIN32OLE library for some years to automate MS apps, I
wanted to see what the error would be like if I used that code. The error you
get back from Watir is different and IMO not as informative as the one you get
from Ruby when executing the initialization code that throws the error.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6470&messageID=18329#18329
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general