I have the following situation:
- click on some button in a web app
- after 1-2 seconds a loading div appears over the app and it takes between 5 to 10 seconds to go away
- screen and info changes according to my previous actions
- I’m using classic process and Wait element vanish waits for the loading div to appear then disappear
- If I try to move to modern design and use Application state it sees in the 1-2 seconds before the div appears that there is no div and goes further with the execution
How do you solve this? Shouldn’t it function just like Wait element vanish?