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. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Xi Chen Sent: June 6, 2006 5:21 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] BUG: New IE windows share session state with existingopen windows Hi Scott I tried to run the following ie_array = Array.new(3) ie0 = WIN32OLE.new('Shell.Application') system "c:\\Program Files\\Internet Explorer\\iexplore.exe" ie0 = IE.attach(:title,'Google') #my IE default page is Google ie0.goto("http://localhost:8080/kmdm8/signon.jsp") ie_array[0] = ie0 ie1 = WIN32OLE.new('Shell.Application') system 'c:\\Program Files\\Internet Explorer\\iexplore.exe' ie1 = IE.attach(:title,'Google') ie1.goto("http://localhost:8080/kmdm8/signon.jsp") ie_array[0] = ie1 ie2 = WIN32OLE.new('Shell.Application') system 'c:\\Program Files\\Internet Explorer\\iexplore.exe' ie2 = IE.attach(:title,'Google') ie2.goto("http://localhost:8080/kmdm8/signon.jsp") ie_array[0] = ie2 However the system cannot pick up the IE. Please help. Xi Chen _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general