[Wtr-general] [question] Opening a Browser with WET, and then taking control with Watir?

Rodrigo Julian Martin rodrigo.martin at enratio.com
Wed Apr 26 10:08:18 EDT 2006


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 [pkammit at gmail.com] 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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060426/8e20a620/attachment.html 


More information about the Wtr-general mailing list