I have a flaky test. Its about my loading screen. I use
await browser.wait(EC.invisibilityOf(...)); // It contains parameters.
await browser.sleep(2000);
But still sometimes it is work , it is not. I have a button. My test try button click on Loading screen therefore it fail. It must wait when loading screen was gone.(I tried using wait and sleep )
How I do resolve the problem. I need help.
It must wait when loading screen was gone
while
loop.and by
if the loading screen is gone
You can check the CSS of the element of the loading screen. It can be
display: none;
or
visibility: hidden;
depends on how it is hidden.