Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

webdriver.Chrome(...) call stuck on Jenkins

94 views
Skip to first unread message

Gabor Vuncs

unread,
Aug 8, 2024, 5:22:57 AM8/8/24
to ChromeDriver Users
Hi There,

We are using Selenium (4.23.1) and latest chromedriver (127.0.6533.99) on Jenkins.
At webdriver.Chrome(...) call the test run is stuck.

Jenkins log:
11:04:37  2024-08-08 09:04:37,171 DEBUG: Selenium Manager binary found at: /opt/venvs/frontend-nT2xGy6D-py3.12/lib/python3.12/site-packages/selenium/webdriver/common/linux/selenium-manager
11:04:37  2024-08-08 09:04:37 DEBUG Selenium Manager binary found at: /opt/venvs/frontend-nT2xGy6D-py3.12/lib/python3.12/site-packages/selenium/webdriver/common/linux/selenium-manager
11:04:37  2024-08-08 09:04:37,172 DEBUG: Executing process: /opt/venvs/frontend-nT2xGy6D-py3.12/lib/python3.12/site-packages/selenium/webdriver/common/linux/selenium-manager --browser chrome --debug --language-binding python --output json
11:04:37  2024-08-08 09:04:37 DEBUG Executing process: /opt/venvs/frontend-nT2xGy6D-py3.12/lib/python3.12/site-packages/selenium/webdriver/common/linux/selenium-manager --browser chrome --debug --language-binding python --output json
11:04:37  2024-08-08 09:04:37,299 DEBUG: Sending stats to Plausible: Props { browser: "chrome", browser_version: "", os: "linux", arch: "x86_64", lang: "python", selenium_version: "4.23" }
11:04:37  2024-08-08 09:04:37 DEBUG Sending stats to Plausible: Props { browser: "chrome", browser_version: "", os: "linux", arch: "x86_64", lang: "python", selenium_version: "4.23" }
11:04:37  2024-08-08 09:04:37,299 DEBUG: Found chromedriver 127.0.6533.99 in PATH: /usr/bin/chromedriver
11:04:37  2024-08-08 09:04:37 DEBUG Found chromedriver 127.0.6533.99 in PATH: /usr/bin/chromedriver
11:04:37  2024-08-08 09:04:37,299 DEBUG: Found chromium-browser in PATH: /usr/bin/chromium-browser
11:04:37  2024-08-08 09:04:37 DEBUG Found chromium-browser in PATH: /usr/bin/chromium-browser
11:04:37  2024-08-08 09:04:37,299 DEBUG: Running command: /usr/bin/chromium-browser --version
11:04:37  2024-08-08 09:04:37 DEBUG Running command: /usr/bin/chromium-browser --version
11:04:37  2024-08-08 09:04:37,299 DEBUG: Output: "Chromium 127.0.6533.99 Alpine Linux"
11:04:37  2024-08-08 09:04:37 DEBUG Output: "Chromium 127.0.6533.99 Alpine Linux"
11:04:37  2024-08-08 09:04:37,299 DEBUG: Detected browser: chrome 127.0.6533.99
11:04:37  2024-08-08 09:04:37 DEBUG Detected browser: chrome 127.0.6533.99
11:04:37  2024-08-08 09:04:37,299 DEBUG: Discovering versions from https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json
11:04:37  2024-08-08 09:04:37 DEBUG Discovering versions from https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json
11:04:37  2024-08-08 09:04:37,299 DEBUG: Required driver: chromedriver 127.0.6533.99
11:04:37  2024-08-08 09:04:37 DEBUG Required driver: chromedriver 127.0.6533.99
11:04:37  2024-08-08 09:04:37,300 DEBUG: Driver path: /usr/bin/chromedriver
11:04:37  2024-08-08 09:04:37 DEBUG Driver path: /usr/bin/chromedriver
11:04:37  2024-08-08 09:04:37,300 DEBUG: Browser path: /usr/bin/chromium-browser
11:04:37  2024-08-08 09:04:37 DEBUG Browser path: /usr/bin/chromium-browser
11:04:37  2024-08-08 09:04:37,300 DEBUG: Started executable: `/usr/bin/chromedriver` in a child process with pid: 115 using 0 to output -3
11:04:37  2024-08-08 09:04:37 DEBUG Started executable: `/usr/bin/chromedriver` in a child process with pid: 115 using 0 to output -3
11:04:37  2024-08-08 09:04:37,311 DEBUG: POST http://localhost:51183/session {'capabilities': {'firstMatch': [{}], 'alwaysMatch': {'browserName': 'chrome', 'pageLoadStrategy': <PageLoadStrategy.normal: 'normal'>, 'goog:loggingPrefs': {'browser': 'ALL'}, 'browserVersion': None, 'goog:chromeOptions': {'prefs': {'download.default_directory': '/home/jenkins/agent/workspace/QA/Front-end-UAT-main/frontend/download'}, 'extensions': [], 'binary': '/usr/bin/chromium-browser', 'args': ['--headless=new', '--window-size=1920,1080', '--disable-dev-shm-usage', '--no-sandbox', '--disable-search-engine-choice-screen']}}}}
11:04:37  2024-08-08 09:04:37 DEBUG POST http://localhost:51183/session {'capabilities': {'firstMatch': [{}], 'alwaysMatch': {'browserName': 'chrome', 'pageLoadStrategy': <PageLoadStrategy.normal: 'normal'>, 'goog:loggingPrefs': {'browser': 'ALL'}, 'browserVersion': None, 'goog:chromeOptions': {'prefs': {'download.default_directory': '/home/jenkins/agent/workspace/QA/Front-end-UAT-main/frontend/download'}, 'extensions': [], 'binary': '/usr/bin/chromium-browser', 'args': ['--headless=new', '--window-size=1920,1080', '--disable-dev-shm-usage', '--no-sandbox', '--disable-search-engine-choice-screen']}}}}

Also tried with selenium 4.22.0, got the same result.
On local PC everything works properly.

What could be the problem?

Thanks in advance!

Gábor Vuncs

Randy Kroeger

unread,
Aug 8, 2024, 10:24:36 AM8/8/24
to ChromeDriver Users
Suggestion: I would try to take it out of headless and watch what is does.  If it works, maybe try headless=old or headless=true to put it into the old version.  If it seems to be related, you may have discovered a bug, or possible a missing switch.  

Hope that helps. 

Gabor Vuncs

unread,
Aug 13, 2024, 2:21:01 AM8/13/24
to ChromeDriver Users
Thanks for the tip!

I tried it with headless=old (Selenium 4.23.1 and latest chromedriver 127.0.6533.99) and it works on Jenkins.
On Jenkins no headless is not an option, but locally there were no problem with not headless / headless modes at all.
On Jenkins the tests are run in a docker, maybe this caused the freeze, locally we do not have time to try it in the docker.

If we have time we will try in docker and check it maybe we can see something.
Reply all
Reply to author
Forward
0 new messages