Hi,
Thanks Bret, unfortunately that didn't work. I got the following exception when I execute it:
rb:1027:in `getNonControlObject': unknown way of finding a DIV ( {what} ) (Watir::Exception::MissingWayOfFindingObjectException)
I heard from Angrez that there's a Watir extension that can be found which has an :xpath attribute extension. Will these extensions be included in ver. 1.5? When is this version likely to be released?
Any other suggestions on how to rectify this problem, are very much appreciated.
Thanks
Pádraig
Bret replied on 28th of September 12.12pm
ie.div(:text, 'TEAM A').image(:index, 1).click
I'm not 100% sure this will work in 1.4.1, but it will work in HEAD.
Bret
On 9/27/05, Padraig O'Leary < padrai[EMAIL PROTECTED]> wrote:
Hi all!
I have a problem with a tree view with which I would really appreciate any help that you could provide: The name, src and id attributes of an image I want to click all contain the same data. The only thing identifying the images is the text beside them.
So, I can expand the parent node of the tree, but I cant identify any of the child nodes.
The HTML is as follows for the child nodes:
<DIV><INPUT type="image" src="" id="childNode" name="childNode">Team A</DIV>
<DIV><INPUT type="image" src="" childNode.gif" id="childNode" name="childNode">Team B</DIV>
<DIV><INPUT type="image" src="" id="childNode" name="childNode">Team C</DIV>
Is there any way I can identify the image by the text beside it?
Can Watir navigate the DOM? If I can identify the parent DIV node, is there any way I can tell it to access the first child node of the parent node?
Thanks for all your help in advance
**********************************************************************
The information contained in this e-mail is confidential, may be
privileged and is intended only for the user of the recipient named above.
If you are not the intended recipient or a representative of the intended
recipient, you have received this e-mail in error and must not copy, use
or disclose the contents of this e-mail to anybody else. If you have
received this e-mail in error, please notify the sender immediately
by return e-mail and permanently delete the copy you received.
This e-mail has been swept for computer viruses. However, you should
carry out your own virus checks.
Registered in Ireland, No. 205721. http://www.FINEOS.com
**********************************************************************
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
