[Wtr-general] [question] Opening a Browser with WET, and then taking control with Watir?
Bret Pettichord
bret at pettichord.com
Wed Apr 26 11:47:02 EDT 2006
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 <rodrigo.martin at enratio.com> 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 [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
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060426/147d781a/attachment.html
More information about the Wtr-general
mailing list