> I am unable to suggest Watir as the automation tool to my management as it
> currently doesn't support iFrames.

I suggest that you try it yourself.  Look in the 'unittests' folders
for code to handle frames and iframes.

-Chris

Thanks a ton for the inputs Chris.

I went through the unit tests & tried to figure where I am going wrong.

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).

Regards,
Prem
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to