In the below as you can see that the browser.sleep is supposed to be executed if the client is XYZ, but still it is not getting executed.
If i put any console.log after the browser.sleep statement, that statement is getting executed (i can see the statement) but the browser.sleep is not really waiting even though how much the sleep time i increase.
Why is the browser.sleep is not working? How do i make it wait if the client XYZ?
if (testproperties.client == 'ABC'){
browser.ignoreSynchronization = false;
browser.waitForAngular();
browser.ignoreSynchronization = true;
}
else if (testproperties.client == 'XYZ'){
browser.sleep('35000');
};