-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
I updated the selenium web driver and suddenly one test is failing. #2262
Comments
I believe this is an issue that lies with Selenium 3.5+, a simple workaround is to add the following to your wdio.conf.js file. seleniumInstallArgs: { version: '3.4.0' }, This will install a working version of Selenium and all your other packages can be updated as well. This is how I worked around the issue myself and I am running the latest drivers and all which work fine with Selenium 3.4.0. |
Thanks man! Worked like a charm. |
Thanks @erwinheitzman ! Is there any issue at Selenium regarding this? Do you know when it can be fixed so we can use latest Selenium with WebdriverIO? |
@kontrollanten I have not been able to figure out what the exact issue is so for now I roll with 3.4, it doesn't really hurt ;) |
@erwinheitzman I'm confused about how to get the correct version (3.4) of selenium installed. I did add the following lines to my wdio.all.conf.js, but as far as I can tell, that didn't change what selenium got used -- I still get the error.
Here's what my run looks like:
I did a fresh I'm kind of a noob to the whole node environment, so I must be missing some assumption. |
OK, I see what's going on. When I run wdio, it starts selenium-standalone-service, and when it starts the first time, it grabs the selenium version specified (if it is specified) in seleniumInstallArgs: { version: '3.4.0' }, seleniumArgs: { version: '3.4.0' }, in wdio.conf.js. In order to effect and observe that change, I had to remove selenium-standalone-service from node_modules first, and then npm install selenium-standalone-service. To top it off, ha! that wasn't even my problem. But at least I understand a little more now. |
@YmerejRedienhcs That's it indeed, the wdio-selenium-standalone-service installs selenium-standalone (the npm package), which then installs Selenium itself. The folder that contains the Selenium version + the webdrivers is found in your node_modules folder: node_modules > selenium-standalone > .selenium Hope this helps anyone else running into the same problem :) |
This is still not fixed in 3.5.2. I will have to downgrade to 3.4 and revert chromedrivers too and all versions of chrome on all machines? |
@toien44 before saying it's still not fixed you should know that Selenium is already at version 3.7.1. |
Thanks for the info. Do you know what the selenium issue was? Why was the error happening? I also downgraded to 3.4.0 and got the same issue still. I'm trying 3.7.1 now. |
I've tried 3.4.0, 3.5.2, 3.6.0, 3.7.1 and non for them work. Getting the same error
|
@christian-bromann We attempted upgrading selenium recently and ran into this as well. Doing some digging, it seems like this is a webdriverIO issue. Do we have any issue/work to track fixing this in the wdio project (other than this issue) and an idea of the changes that are needed? I saw your note about throttling requests in here, is that work already complete? |
Nope, feel free to propose a PR |
@christian-bromann this is the issue related to throttling/queueing requests you referenced in the selenium issue thread. Will continue discussion of the changes needed there. |
Tried in the
Still getting |
@erwinheitzman seleniumInstallArgs and seleniumArgs worked like a charm. Thanks a lot. |
@erwinheitzman Thank you a ton! It works like a super charm! I didn't google to come to this after whole AM banging my head against the wall tried to figure it out but couldn't until found this. Want to add after you modify your wdio.config.js to include selenium server version, you need to wipe out the node_modules folder to delete the current later version using 'rm -rf node_modules' then do 'npm install'. then when you run wdio it would use the version you specified in the wdio.config.js |
Thank you for the explaining the install order! |
Last night I updated selenium standalone on my machine and ran tests after it. Now it's throwing following error and I'm not sure what causing it. When I run wdio.
java.net.SocketException: Connection reset by peer (connect failed) running chrome Error: An unknown server-side error occurred while processing the command. at Context.<anonymous> (test/specs/stats-mode.js:166:36) at Promise.F (node_modules/core-js/library/modules/_export.js:35:28) at elementIdText("0.3745145050332137-10") - getText.js:
The text was updated successfully, but these errors were encountered: