Watir-Webdriver, Ruby - click on the table row -


i'm using watir-webdriver , ruby. on page have table of record. need click on row , should go next page. how can click on row? here's source code each record table

<tr class="ng-scope" ng-click="clickhandler({rowitem: item})" ng-repeat="item in ngmodel">  <td class="ng-bindging">sometext</td>  <td class="ng-bindging">sometext1</td>  <td class="ng-bindging">sometext2</td>  <td class="ng-bindging">sometext3</td>  <td class="ng-bindging">sometext4</td>  <td>  <span class="glyphicon glyphicon-play-circle"></span>  </td>

any suggestions appreciated.

thank you.

the key find unique attributes watir can access. first issue angular app doesn't product valid html5 without data- prepended.

i don't know other rows know how click 1 versus one, if attribute unique, use css:

browser.element(css: "tr[ng-repeat='item in ngmodel']")

if text unique (even though less ideal):

browser.td(text: 'sometext').parent


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -