protractor icon indicating copy to clipboard operation
protractor copied to clipboard

How should I wait for load / elements if I am using browser.ignoreSynchronization = true;

Open hanssgo opened this issue 13 years ago • 1 comments

I want to avoid using browser.sleep(x) milliseconds as much as possible? Is there a nice way of doing this if angular waits no longer work?

I want to use webdriver wait.until but I can't figure out how to do that. Any tips would be greatly appreciated!

Thanks

hanssgo avatar Dec 03 '13 01:12 hanssgo

exports.wait = function( elm, label ) { browser.wait(function(){ browser.sleep(500); if(elm.isPresent()){ browser.sleep(1000); return true; } },20000, label + " did not load") }

hanssgo avatar Dec 03 '13 21:12 hanssgo