在每个()的量角器测试中都无法获得ng-repeat的所有元素,用于在1.4.0中工作

时间:2015-06-23 08:55:29

标签: javascript angularjs automation protractor

此代码用于在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)

0 个答案:

没有答案