Protractor stale element reference when using the each() method

前端 未结 4 455
一向
一向 2021-01-14 15:24

I am getting the error below as a result of using the each() method in protractor. It has worked fine in the past but is now consistently failing with this error.

4条回答
  •  迷失自我
    2021-01-14 16:14

    Try using this code before your error statement:

      browser.wait(function() {
            return element.all(bars).isPresent().then(function(result) {
                return result;
            });
        }, 5000);
    

提交回复
热议问题