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

Reply via email to