A Jasmine spec timed out. Resetting the WebDriver Control Flow - when redirect to new page

后端 未结 5 1080
轻奢々
轻奢々 2021-02-20 11:23

I\'m beginner in the e2e testing and have a problem. When I do login - I make redirect from login.php to index.php page. But my test is fails with following errors:



        
5条回答
  •  [愿得一人]
    2021-02-20 11:33

    expect(element(by.cssContainingText('body', 'Hello, you are Logged In!')).isPresent()).toBeTruthy();
    
    expect(element.all(by.cssContainingText('body', 'Hello, you are Logged In!')).get(2).isPresent()).toBeTruthy();
    
    • If you have more than one time the same text in body in array then

提交回复
热议问题