At the bottom, as you can see, it is assumed that browser.sleep will be executed if the client is XYZ, but it still fails.
If I put any console.log after the browser.sleep statement, this statement will be executed (I can see the instruction), but browser.sleep does not really wait, even if the sleep time I increase.
Why does the browser not work? How to make him wait if the client is XYZ?
if (testproperties.client == 'ABC'){ browser.ignoreSynchronization = false; browser.waitForAngular(); browser.ignoreSynchronization = true; } else if (testproperties.client == 'XYZ'){ browser.sleep('35000'); };
source share