此代码用于在Protractor 1.4.0 ::
中工作 element.all(by.repeater('item in vm.occupations'))
.each(function(jobsInRepeater) {
jobsInRepeater.element(by.binding('item.Title'))
.click()
.then(function(){//someLogic});
量角器2.1.0给出了此代码的后续错误
Message:
ElementNotVisibleError: element not visible(Session info:chrome=43.0.2357.124) (Driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=Windows NT 6.1 SP1 x86_64) Stacktrace:
ElementNotVisibleError: element not visible (Session info: chrome=43.0.2357.124) (Driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=Windows NT 6.1 SP1 x86_64)