答案 0 :(得分:0)
可能的问题是该元素可能不可见,您可以使用ExpectedConditions进行一些等待,这是完整的文档https://www.protractortest.org/#/api?view=ProtractorExpectedConditions
var EC = protractor.ExpectedConditions;
var nameColumn = element(by.model("data.iName"));
browser.wait(EC.visibilityOf(element(by.model("data.iName))), 30000, "Input element is not visible").then(function() {
nameColumn.sendKeys("name");
});