lundi 3 août 2015

Entering Text into a UI-grid using Ruby

Hi Recently we have moved from using ng-grid to ui-grid, and this is broken my test automation tests.

I am having some difficulty entering text into a text field, Please can someone help?

The text field is highlighted however nothing is entered and it timesout.

My HTML Code is:

<div class="ngCellText ng-scope" ng-class="col.colIndex()">
<span ng-cell-text="" class="ng-binding">0:01</span></div>

My Ruby code is:

@browser.span(:xpath,'//*[@id="aBreakDown"]/div[3]/div[3]/div[1]/div[1]/div[2]/div/div[1]/div/div/div[1]/div/span').when_present.click
@browser.text_field(:class,'ngCellText ng-scope').when_present.set '00:01'

Aucun commentaire:

Enregistrer un commentaire