-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
webdriver.Builder().forBrowser('chrome').build() hangs indefinitely #3997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is #3037 You need to update your test with: const {promise} = require('selenium-webdriver');
promise.USE_PROMISE_MANAGER = false; See this example: |
FYI this was already there. I had this in my code and still saw this behavior I would like to reopen this. |
Also stuck on a similar issue - Calling: this.driver = new Builder()
.forBrowser('chrome')
.setChromeOptions(opts)
.setChromeService(srvc)
.build(); ... Just seems to hang and nothing happens - For the first run of the tests. On the second run (e.g. running the exact same tests again) everything seems to work. This is a problem notably with CI, as the first run is all you're going to get. As far as relevant libraries go we're running with:
Here's the last few lines of our
^ So it ultimately terminates due to a Mocha timeout. Increasing or decreasing the timeout has no effect. It seems to initialize the session (?) and send the first "navigate" -command but then hangs and ultimately quits. Couldn't say what we're doing wrong here. UPDATE: FWIW some browser information:
|
Meta -
OS:
ubuntu (linux)
Selenium Version:
"selenium-webdriver": "^3.4.0",
Browser:
chrome
Browser Version:
Google Chrome 58.0.3029.81
Expected Behavior -
All tests should run without getting error on getting webdriver
Actual Behavior -
call to build webdriver hangs
Steps to reproduce -
I am using mocha and selenium to do end to end integration testing. I am using beforeEach and afterEach hook to initialize browser and kill it after each test. Here is my js file which has both the methods
Now when i run the test suit on jenkins i very frequently see this ("email already registered" is a test name)
The thing to notice is that once this error comes the subsequent tests do not run. My test suit has 100s of tests and in the run above it quit once it encountered this beforeEach error and didn't run next set of tests.
The text was updated successfully, but these errors were encountered: