[Wtr-general] Error selecting links within nested iFrame?

Ethan Jewett esjewett at gmail.com
Mon Oct 23 11:04:33 EDT 2006


Hi,

I'm running Watir 1.4.1 and Ruby 1.8.4.  I'm getting
UnknownObjectException when trying to click a link within an iframe
within a frame.   Commands as follows:

This command succeeds:
$ie.frame("buttonFrame").frame("linksFrame").contains_text(/CVS Revision/)

These commands fail with the UnknownObjectExceptions:
$ie.frame("buttonFrame").frame("linksFrame").link(:text, "test1").click
$ie.frame("buttonFrame").frame("linksFrame").link(:id, "link_id").click

The iframe with name "linksFrame" is the delivered links1.html unit
testing file from the Watir 1.4.1 gem.

Is this a known issue?  I don't see it in the OpenQA database as far
as I can tell.  I'll clean up my tests and send a modified frames unit
test and the necessary HTML files if that is desired.

Thanks,
Ethan


More information about the Wtr-general mailing list