That's a good point if cookies are involved, for sure. Even when they're not involved, there can be some weirdnesses, too. I remember that Firefox's behaviour, in terms of session ID, is different; I don't remember how it's different, though.
---Michael B. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Schmidt Sent: June 6, 2006 12:50 PM To: [email protected] Subject: Re: [Wtr-general] BUG: New IE windows share session state with existingopen windows There's another issue which may be affecting your test that is also NOT a Watir bug. Sessions are often set by having a server save a session ID cookie on the IE's PC. For IE, these cookies are saved in a per-user directory. If you run multiple IE's to the same site then the cookies can be overwritten, causing much confusion! IE1 browses to www.somesite.com and a session id is saved. IE2 browses to www.somesite.com and a DIFFERENT session id is saved to the same cookie IE1 browses to another page under www.somesite.com, returning the cookie WHICH IS NOW IE2's COOKIE! We had this problem running some web scrapers simultaneously to the same site from the same computer. We solved the problem by running each scraper under a different user so each scraper got it's own folder for cookies and they then stopped overwriting each other. David Michael Bolton wrote: > This isn't a bug in Watir, so the BUG: title for your message isn't > appropriate. There are lots of bugs here, but they ain't in Watir. > > Does your script include 'require watir.rb' and 'include Watir' at any > point? > > When you try to attach using a string literal, it's unlikely to work for > attaching to the window by title, unless it includes the entire title string > exactly. A regular expression needs only a subset, so when you're trying to > attach, do this: > > foo = IE.attach(:title, /Google/) > > However, you don't NEED to attach, so in this case, don't bother. > > There's no need for the call to WIN32OLE; there's no need to call system(). > Watir takes care of all this stuff. > > You've set up an array presumably to hold three browser instances, but > you're assigning all three instances to the same element in the array. > > I gather what you're trying to do is this: > > require 'watir.rb' > include Watir > > ie_array = Array.new(3) > ie_array.each do |element| > element = IE.start('http://localhost:8080/kmdm8/signon.jsp') > end > > Right? > > ---Michael B. > _______________________________________________ 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
