browser.wait waits indefinitely after performing browser.restart
See original GitHub issueReferencing https://github.com/angular/protractor/issues/3881
Hi there!
I am facing a similar issue, when using browser.restart. In my case, a subsequent browser.wait call waits almost indefinitely, and times out after an obscene amount of time, although the page is loaded and visible the whole time.
I perform the restart operation in the Before hook of Cucumber:
Before(function(scenario) { let currFeatureName=scenario.sourceLocation.uri; console.log('feature : ',currFeatureName); if(featureName===null) featureName=currFeatureName; else if(currFeatureName!==featureName) return browser.restart(); });
Followed by a Given, where I perform a browser.get, followed by a browser.wait, before interacting with my element:
Given(/^user is logged in SNAPP$/,function(){ console.log('started : '); browser.ignoreSynchronization = true; browser.driver.get(browser.params.logon.url); browser.wait(until.visibilityOf(element(by.id('logonDialogLbl'))),1000,'waiting to load url'); logonpage.logon(); browser.sleep(2000);
It is seemingly getting stuck in the browser.wait call, and times out, after waiting for an enormous amount of time.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top GitHub Comments
Same here. It was working since the Chrome 64 update. Now when I perform a browser.get(‘someUrl’) and do a subsequent browser.wait it stalls. I now have to logout and log back in prior to each of my tests. This is cumbersome.
same error like @gologox since Chrome 64.