UI-Grid 3.0 E2E protractor testing -
i'm trying perform select row on e2e test can see if 1 of buttons working when row selected. test gets page when try selectrow gives me error. test looks this.
var gridtestutils = require('./gridtestutils.spec.js'); describe('tests', function() { it('should switch clients , add client', function() { expect(element(by.id('table')).ispresent()).tobe(true); expect(element(by.id('sidenavlink')).getattribute('class')).toequal('active'); gridtestutils.expectrowcount('table', 2); element(by.id('addsubnavlink')).click(); expect(element(by.model('modaldata.name')).ispresent()).tobe(true); element(by.model('modaldata.name')).sendkeys('protractor test client'); element(by.id('clientsubmit')).click(); //gridtestutils.expectrowcount('table', 3); gridtestutils.selectrow('table', 3); element(by.id('deletebutton')).click(); }); });
when run protractor error:
message: nosuchelementerror: no element found using locator: by.repeater((rowrenderindex, row) in rowcontainer.renderedrows track $index").row("3")"
if there way highlight row, haven't found yet, i've been going through gridtestutils.spec.js , first 1 i'd found.
Comments
Post a Comment