ruby - How to access the table,tr,td which has no attributes using Watir -


i trying access table rows , table data(td),generally table,tr , td has no attributes use tried index still no use,even tried parent element of table still unable access it.

<div class = "links"></div> <div class = "board"> <table> <tbody> <tr><td>name</td><td>value</td></tr> <tr><td>shaik</td><td>500</td></tr> <tr><td>shahrukh</td>900<td><span style="" has css properties ></span></td></tr> </tbody> </table> </div> 

i tried in following way

@ie.table(index,0) ,  @ie.div(:class,'links').table(:index,0) 

returned error unable locate element

ui screenshot

@ie.table should work. @ie.div(:class, 'links') not parent of table element since </div> comes before <table> in dom.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -