Thank you, Bret. I just verified that this is a timing issue, and if it works just fine, if I give it some more time...
I saw the discussion of IE::attach_timeout. Can I use this fix from development somehow with the version of water I am using, or I need to wait for another release? If I need to wait, what can I do meanwhile. (Sorry, if my questions are silly, I am new to water and this list...) Galina. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord Sent: Tuesday, March 21, 2006 6:05 PM To: [email protected] Subject: Re: [Wtr-general] Window attach problem. This is a timing problem in IE#attach. It is fixed in development. See the recent email discussion regarding IE.attach_timeout. Bret On 3/21/06, Galina Maralina <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > I am having a problem to attach a window, this is a script: > > > > . > > $ie.link(:id, /ORG_POPUP/).click > > $ie1 = Watir::IE.attach(:title, "C2P -") > > > > . > > First click works and the window opens, then it gives an error: > > > > Watir::Exception::NoMatchingWindowFoundException: Unable to > locate a window with > > title of C2P - > > > > When I run the same using irb, everything works just fine. > > > > irb(main):032:0> ie1 = Watir::IE.attach(:title, "C2P -") > > => #<Watir::IE:0x2b340a8 @defaultSleepTime=0.1, > @activeObjectHighLightColor="yel > > low", @pageHasReloaded=false, @enable_spinner=false, > @url_list=["http://66.81.10 > > 3.43:4040/c2p/imperativeTerritoryCoveredInitCreate.do"], > @logger=#<Watir::Defaul > > tLogger:0x2b32c98 @progname=nil, @logdev=#<Logger::LogDevice:0x2b325f0 > @filename > > =nil, @dev=#<IO:0x278e7d0>, @shift_size=nil, @shift_age=nil>, @level=2, > @datetim > > e_format="%d-%b-%Y %H:%M:%S">, @typingspeed=0.08, @form=nil, > @ie=#<WIN32OLE:0x2b > > 33b98>, @down_load_time=0.047, > @error_checkers=[#<Proc:[EMAIL PROTECTED]:/ruby/lib/ru > > by/site_ruby/1.8/watir.rb:1135>]> > > irb(main):034:0> ie1.show_all_objects > > -----------Objects in page ------------- > > text/css id= > > text/css id= > > text/javascript id= src=/c2p/js/main.js > > text/javascript id= > src=/c2p/js/imperatives/ImperativeMainPopu > > > > > > What can it be? > > > > Thank you, > > Gallina. > _______________________________________________ > 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 _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
