I do have an for an Angular app. It works fine on my local machine, but on the production repo, it runs .. in other words sometimes it but sometimes it’s runs successful.

Here is the code for :

it('LOGIN - Submit-Button "Login" must be enable after entering UserName and Password', () => {

and here is the error when it fails:

LOGIN - Submit-Button "Login" must be enable after entering UserName and Password
- Failed: stale element reference: element is not attached to the page document
(Session info: chrome=63.0.3239.132)
(Driver info: chromedriver=2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881),platform=Linux 4.12.10-coreos x86_64)

I think that it has to do with asynchronous testing with jasmine. Is that correct?

Is there a way to fix this? How can I avoid this kind of behavior and/or how can I make run consistently?

Source link https://sqa.stackexchange.com/questions/31772/e2e-test-fails-inconsistently


Please enter your comment!
Please enter your name here