Nice on the Donald Trump joke :D. Using your suggestion b.table(:class, 'rich-tree-node').tbody(:index, 1) the program give me an error stating it doesn't know :tag_name=>tbody?
On Monday, August 6, 2012 12:57:14 PM UTC-4, johnssn wrote: > > I think there's a Donald Trump joke in here somewhere. :-) > > One thing worth trying would be to call .text and .html on the things that > you are trying to access just to be sure you're getting what you want. > > It looks like there's a tbody in the table, it's easy to miss those. If > you're not accounting for that then that could be part of it: > > b.table(:class, 'rich-tree-node').tbody(:index, 1).something... > > Putting pauses in before doing things is mandatory when ajax is involved. > Watir and Watir-webdriver both provide some facilities for handling that > rather than hard-coding with sleep statements. > > ------------------------------ > *From:* Wind Dive <[email protected]> > *To:* [email protected] > *Sent:* Monday, August 6, 2012 9:09 AM > *Subject:* [wtr-general] Rich Face Testing with Watir > > 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] > > > -- 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]
