ag-grid-e2e

Ag-grid access and edit cell from Protractor e2e tests

北战南征 提交于 2019-12-08 10:19:40
问题 I'm looking to the right way to end to end test (e2e) an ag-grid angular application. protractor documentation says that you can use by.model(modelName) to sendKeys to an input field using ng-model. https://www.protractortest.org/#/api?view=ProtractorBy.prototype.model But ng-model is not an angular 2 directive I've tried for example this method but it's not working: const cellElement = element(by.model('row.name')); browser.actions().click(cellElement).perform(); //to get focus on cell