gavin at vmbed.com
Fri Dec 5 20:09:52 EST 2008
On Fri, Dec 5, 2008 at 4:15 PM, Bret Pettichord <bret at pettichord.com> wrote:
> I've spent much of this week figuring out how to make the attach
> functionality work with Firefox. Gavin (and others) submitted patches that
> made it be a class method instead of an instance method.
> But as I've looked at the code, I realized that basically FireWatir only
> lets you access the top most window. For example:
> a = Firefox.attach :title, 'a'
> b = Firefox.attach :title, 'b'
> but both a and b will refer to the same window very soon, and it will be
> whatever was opened last.
> I've looked into how to fix it. It can be done, and I've developed a proof
> of concept of my solution, but it will require a fair amount of work, much
> more than I had budgeted for this right now.
> Note that this really isn't a problem with attach, but rather with
> FireWatir. The same will happen if you do
> a = Firefox.new
> b = Firefox.new
> Two windows will be opened, but both a and b will refer to the same window.
> In other words, Firewatir, as it stands right now, can only drive one
> window. This isn't a limitation of JSSH or anything, simply a limitation of
> the way Firewatir is written today.
> Bret Pettichord
> GTalk: bpettichord at gmail.com
> CTO, WatirCraft LLC, http://www.watircraft.com
> Lead Developer, Watir, http://wtr.rubyforge.org
> Blog (Essays), http://www.io.com/~wazmo/blog
> MiniBlog (Links), http://feeds.feedburner.com/bretshotlist
> Wtr-development mailing list
> Wtr-development at rubyforge.org
VMBed - http://vmbed.com/ - Machines when you want them.
Test Automation - http://vmbed.com/?page/automate
More information about the Wtr-development