protractor
protractor copied to clipboard
How should I wait for load / elements if I am using browser.ignoreSynchronization = true;
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
exports.wait = function( elm, label ) { browser.wait(function(){ browser.sleep(500); if(elm.isPresent()){ browser.sleep(1000); return true; } },20000, label + " did not load") }