You can use Watir::IE.attach() to use Watir with an existing browser window. It doesn't matter if it was opened manually or with Wet.

On 4/26/06, Rodrigo Julian Martin <[EMAIL PROTECTED]> wrote:

Hi all!

 

As some of you may remember, I was the guy freaked out with modal popups… I've sent a couple of messages to the list, and finally Praveen Kumar Kammitta [[EMAIL PROTECTED]] suggest me to use WET.

 

Well, it really worked out and pretty fine!

This is how I finally managed this:

 

require 'WET'

include WET

$ie=Browser.new()

$ie.goto("https://happiness.dhs.org ", OUTOFPROCESS)

$ie.Dialog("title:=Security Alert").Button("index:=1").click

 

This is great! But now I have another trouble (I'm a problematic human, I know :S )

I've done several and LARGE scripts using Watir, and now I really don't want to re-code all the lines which has references to the browser (there are differences between Watir Browser and WET Browser…

 

So, does exists a way of instanciate the WET browser, and then attach to that browser with Watir? I hope the question is made correctly, as my english need some improvement…

 

Cheers and Thanks in Advance!

Rodrigo Martin


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


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

Reply via email to