Then found that the iFrame in the page does not have a "name" value but do have an "id" value.HTML Document name= id=newworkdropdown src="" PegaSample.GetWorkPoolClass
When I want to access the iFrame's objects like this :ie.frame(:id, 'newworkdropdown').show_all_objects
Then I get an error like this:D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2375:in `locate': Unable to locate a frame with name newworkdropdown (Watir::Exception::UnknownFrameException)
from D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2384:in `initialize'
from (eval):3:in `frame'
from D:/pmo_wip/FTA/PRPC/open.rb:48
How can I over come this issue? I cannot change the code nor can the developers. It is a packaged tool (servlets based).
I am sorry, I reported a wrong message. My code looks like this:
assert($ie.frame(:id, "leftFrameId").frame(:id, 'newworkdropdown').exists?)
And the error message I get is like this:NoMethodError: undefined method `invoke' for nil:NilClass
D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2366:in `locate'
D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2350:in `locate'
D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2384:in `initialize'
(eval):3:in `frame'
D:/pmo_wip/FTA/PRPC/open.rb:59:in `test_get_iframe'
D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2366:in `locate'
D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2350:in `locate'
D:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2384:in `initialize'
(eval):3:in `frame'
D:/pmo_wip/FTA/PRPC/open.rb:59:in `test_get_iframe'
Is this an iFrames related issue in Watir or am I doing things the wrong way?
Regards,
Prem
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
