You wont be able to use a Watir ie object instance in WET.

To dismiss the dialog, you could use:

Browser("title:=<your title here>").Dialog("title:=Microsoft Internet
Explorer").Button("value:=OK").click 

and it should work. 

Thanks
Raghu

Roy Sin wrote:

>In my testsuite I have passed my IE instance to a variable
>$ie and i have been using mostly Watir commands with that
>variable
>as in 
>...
> def test_03_add_asset
>   ...
>   $ie.frame("main").image(:src, /add_asset/).click
>   ...
> end
>...
>
>but on my last test case I need to close a confirmation
>popup. I included WET and tried both
>Browser("title:=Microsoft Internet
>Explorer").Button("value:=OK").click 
>and
>$ie.Browser("title:=Microsoft Internet
>Explorer").Button("value:=OK").click 
>but in both cases that didn't work. How can I instruct the
>Browser command to use the same ie instance?
>
>thanks
>  
>
>
>       
>               
>__________________________________ 
>Yahoo! Mail - PC Magazine Editors' Choice 2005 
>http://mail.yahoo.com
>_______________________________________________
>Wtr-general mailing list
>[email protected]
>http://rubyforge.org/mailman/listinfo/wtr-general
>
>  
>


-- 
Qantom Software

http://www.qantom.com
Ph : 91-80-26799269 Xtn. 125
sip : [EMAIL PROTECTED]
--

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to