Hello, I am new to Watir testing with Ruby, and I am finding a very difficult time testing Rich faces. Here is a snip of the code where I am trying to interact with:
<table border="0" cellpadding="0" cellspacing="0" class="rich-tree-node" id ="reportview:form:reportlist:1:2::_defaultNodeFace"><tbody><tr id=" reportview:form:reportlist:1:2::_defaultNodeFace:mainRow" onclick=" "><td class="rich-tree-node-handleicon rich-tree-h-ic-line-node" id=" reportview:form:reportlist:1:2::_defaultNodeFace:handles"><div><img alt="" class="rich-tree-h-ic-img" id=" reportview:form:reportlist:1:2::_defaultNodeFace:handle:img" src=" /a4j/g/3_3_3.Finalimages/spacer.gif.do<http://testf.vintektime.vintek.com/a4j/g/3_3_3.Finalimages/spacer.gif.do>" /><input autocomplete="off" class="rich-tree-h" id=" reportview:form:reportlist:1:2::_defaultNodeFaceNodeExpanded" name=" reportview:form:reportlist:1:2::_defaultNodeFaceNodeExpanded" type="hidden" value="true" /></div></td><td class="rich-tree-node-icon-leaf rich-tree-h-ic-line-clp" id=" reportview:form:reportlist:1:2::_defaultNodeFace:icon" rich:ajaxselectedlistener="ajax_selected_listener_flag" rich:draggableoptions="{'parameters':{'dragSourceId':'reportview:form:reportlist:1:2::_defaultNodeFace','ajaxSingle':'reportview:form:reportlist:1:2::_defaultNodeFace','reportview:form:reportlist:1:2::_defaultNodeFace':'reportview:form:reportlist:1:2::_defaultNodeFace'} } " rich:dropzoneoptions="{} "><img alt="" class="rich-tree-h-ic-img" src=" /a4j/g/3_3_3.Finalimages/iconLeaf.gif.do<http://testf.vintektime.vintek.com/a4j/g/3_3_3.Finalimages/iconLeaf.gif.do>" /></td><td class="rich-tree-node-text " id=" reportview:form:reportlist:1:2::_defaultNodeFace:text" rich:ajaxsingle="true" rich:highlightedclass="rich-tree-node-highlighted" rich:selectedclass="rich-tree-node-selected tree-selected"><span id=" reportview:form:reportlist:1:2::_defaultNodeFaceOutput">2651 - True Perfected Liens</span></td></tr></tbody></table> I have tried using various methods such as .table(:class, or :id or xpath) this also include the .link.click and the .fire_event("onclick") and nothing is activating this child in rich face the majority of the errors I get is Unable to locate the element. Anyone have a suggestion on how I can get this to work. Thank you. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
