Testing the contents of a temporary element with protractor

后端 未结 6 1735
清酒与你
清酒与你 2021-01-04 09:12

I\'m trying to test the login page on my site using protractor.

If you log in incorrectly, the site displays a \"toast\" message that pops up for 5 seconds, then dis

6条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-04 09:36

    you should wait for your toast displayed then do other steps
    
    browser.wait(function() {
        return $('.toaster').isDisplayed();
    }, 20000);
    

提交回复
热议问题