Hi everyone,
I have to deal with a problem, that in our web application a dialogue window is not closed properly on every test run.
My first idea was to start the popup watcher before the element exists.
The problem now is, that I need to validate content in this dialogue window. So I can not use the popup watcher to close it instantly, the test fails then.
Now I tried to start the popup watcher when the dialogue already exists. Unfortunately the dialogue is not closed then...
I guess the popup watcher can only detect elements that appear after starting it?
Do any of you guys have an idea to handle this?
In case the dialogue is not closed a lot of following recordings are going to fail...
Thank you for the feedback!
Regards
Sebastian
Use popup watcher to close a dialogue window that is already existent before the watcher is started
-
- Posts: 54
- Joined: Fri May 17, 2019 7:10 am
Re: Use popup watcher to close a dialogue window that is already existent before the watcher is started
Hi, since the validation is now in play, have you tried removing the popup watcher and just implementing the “click” with delay on the same element that watcher was pointed to (after the validation)? If popup watcher worked successfully, in theory the closing element is discoverable and can be interacted with via a dedicated action.
Also, you could look into watcher delay after the popup appears – use PauseWhileExists instead of Start in the arguments.
And you are correct, the popup watcher can only detect elements that appear after starting it.
Also, you could look into watcher delay after the popup appears – use PauseWhileExists instead of Start in the arguments.
And you are correct, the popup watcher can only detect elements that appear after starting it.