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
[🐛 Bug]: selenium fail to run side file - Error: Driver took too long to build #1815
Comments
@jackchuong, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
It could be due to your network connection causing the driver to take a long time to download & build Can you also try to pre-run If it still fails, try to find any process in Windows Task Manager that keeps Also, I don't know PS D:\Code\GitHub\selenium-ide> selenium-side-runner test3.side
info: Running test test3
RUNS C:/Users/ndviet/AppData/Roaming/npm/node_modules/selenium-side-runner/dist/main.test.js
info: Finished test test3 Success
PASS C:/Users/ndviet/AppData/Roaming/npm/node_modules/selenium-side-runner/dist/main.test.js (15.546 s)
Running project test3
Running suite Default Suite
√ Running test test3 (14573 ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 15.655 s |
Yes
There is no process in Windows Task Manager that keeps
Without
I tried with another Windows 11 , still same error. |
Oh ok, based on few info in your logs
If accessing these 2 links directly, how long it takes to complete the download? is it within 30s? If no, need to figure out a config to extend that timeout (something needs to be asked in project selenium-ide)
Another Windows 11 with the same error, is it also win32? If yes, can you also try a machine win64 to see. If win64 can work, then the driver has something wrong with win32 that needs to ask chromedriver team Another trick you can try to change the policy that will allow to run the PowerShell script (open PS run as administrators), then exec Set-ExecutionPolicy -Scope CurrentUser RemoteSigned -Force
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force |
@VietND96 I tried PowerShell as administrators and still get same error
And yes, it takes more then 30s to complete the download, my average download speed is 2.87 MB/s , so it takes about 50s for each file. |
Can you try this command |
I print as much information as possible here:
|
Can you try running this and posting the output?
|
There is no output at console but it creates some files and folders , I attached them below.
node-output.zip |
Ah, windows, my mistake. Can you try the following two commands instead?
EDIT: Oh, nice. Thanks for splitting that. Okay, reading a bit closer. |
What happens if you do this?
Does a Chrome browser window appear for you for 3 seconds and then disappear? |
@toddtarsi |
Yes, okay. If this doesn't occur in selenium-webdriver, this won't work here as it extends that tool. Can you use this code as your point of conversation there? This is getting to a spot where the Selenium core team would be an order of magnitude more helpful than I am. |
Use the code to drive discussions in the main channel of the Selenium user group. https://www.selenium.dev/support/ They'll help you with this there. I want to help, but this is not an IDE / runner problem. This gets into driver setup and Windows, two areas where I am a very poor resource. |
I had exactly the same problem, on Windows 11, but with the geckodriver. I finally found the culprit : it is Node version 20.12.2 ! With the previous version, v20.12.1, or version v20.11.0 it works again ... Maybe something linked to this ?
|
@tharfy - You are amazing, thank you. Will review tonight. |
I uninstalled node and npm , reinstall node v19.9.0 and npm 9.6.3 , selenium-side-runner worked. |
Thank you again @jackchuong. 😮💨 I think I might hold off on fixing this until this weekend. For a number of reasons, I've needed to get a cheapy windows notebook and to iterate this without will probably be a nightmare for Windows users, so I'll get a notebook and do it this weekend. |
What happened?
Hi all,
On my Windows 10, I have Chrome browser Version 123.0.6312.123 (Official Build) (64-bit) with Selenium IDE extension installed.
I recorded a simple test like access to https://opensource-demo.orangehrmlive.com/ --> login --> logout , saved as test3.side
I can run test with Selenium IDE successfully.
I installed nodejs and npm
Then I use npm to install selenium-side-runner and chromedriver
When I tried to run test3.side with selenium-side-runner I got error as below
How can we reproduce the issue?
Relevant log output
Operating System
Windows 10
Selenium version
Node: v20.12.2 Selenium-Webdriver: 4.19.0
What are the browser(s) and version(s) where you see this issue?
Chrome browser Version 123.0.6312.123 (Official Build) (64-bit)
What are the browser driver(s) and version(s) where you see this issue?
Version 123.0.6312.123 (Official Build) (64-bit)
Are you using Selenium Grid?
no
The text was updated successfully, but these errors were encountered: