Comments on: How to Setup Selenium with ChromeDriver on Ubuntu 22.04, 20.04 & 18.04 https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/ How to guide for System Administrator's and Developers Sat, 17 Dec 2022 10:54:03 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Bhavesh https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/#comment-65217 Fri, 04 Nov 2022 07:30:03 +0000 https://tecadmin.net/?p=15095#comment-65217 Hello, thank you for the tutorial but the chrome browser didn’t start for me, it seems like it I started in headless mode
when I run this command :
“xvfb-run java -Dwebdriver.chrome.driver=/usr/bin/chromedriver -jar selenium-server-standalone.jar”
I got this :
11:52:18.535 INFO [GridLauncherV3.parse] – Selenium server version: 3.141.59, revision: e82be7d358
11:52:18.615 INFO [GridLauncherV3.lambda$buildLaunchers$3] – Launching a standalone Selenium Server on port 4444
2022-03-01 11:52:18.659:INFO::main: Logging initialized @324ms to org.seleniumhq.jetty9.util.log.StdErrLog
11:52:18.900 INFO [WebDriverServlet.] – Initialising WebDriverServlet
11:52:18.984 INFO [SeleniumServer.boot] – Selenium Server is up and running on port 4444

No errors no crash but chrome didn’t start.

]]>
By: Sai https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/#comment-65135 Wed, 26 Oct 2022 18:44:35 +0000 https://tecadmin.net/?p=15095#comment-65135 cool. Worked like a charm

]]>
By: Ti https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/#comment-64430 Sun, 03 Jul 2022 17:44:48 +0000 https://tecadmin.net/?p=15095#comment-64430 Thanks so much for making this guide on setting up selenium, chrome and chromedriver on linux.

]]>
By: Derek Hendricks https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/#comment-63859 Thu, 24 Mar 2022 21:51:52 +0000 https://tecadmin.net/?p=15095#comment-63859 with this command:
sudo curl -sS -o – https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add

I was getting this error:
E: This command can only be used by root.
curl: (23) Failed writing body (1313 != 1396)

This was the fix:
sudo curl -sS -o – https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add

Adding ‘sudo’ before apt-key add

]]>
By: Med haroun https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/#comment-63809 Tue, 01 Mar 2022 10:55:51 +0000 https://tecadmin.net/?p=15095#comment-63809 Hello , thank you for the tutorial but the chrome browser didn’t start for me , it seems like it i started in headless mode,
when i run this command :
“xvfb-run java -Dwebdriver.chrome.driver=/usr/bin/chromedriver -jar selenium-server-standalone.jar”
I got this :
11:52:18.535 INFO [GridLauncherV3.parse] – Selenium server version: 3.141.59, revision: e82be7d358
11:52:18.615 INFO [GridLauncherV3.lambda$buildLaunchers$3] – Launching a standalone Selenium Server on port 4444
2022-03-01 11:52:18.659:INFO::main: Logging initialized @324ms to org.seleniumhq.jetty9.util.log.StdErrLog
11:52:18.900 INFO [WebDriverServlet.] – Initialising WebDriverServlet
11:52:18.984 INFO [SeleniumServer.boot] – Selenium Server is up and running on port 4444

No errors no crash but chrome didn’t start

]]>
By: Aidan https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/#comment-63744 Wed, 26 Jan 2022 12:24:11 +0000 https://tecadmin.net/?p=15095#comment-63744 Turns out it was as simple as setting an environment variable named BROWSER with the value being the path to my Brave exe 🙂

]]>
By: Aidan https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/#comment-63743 Wed, 26 Jan 2022 12:18:40 +0000 https://tecadmin.net/?p=15095#comment-63743 Thanks for the excellent tutorial, I finished the Selenium project I was working on. I am using WSL and it used to launch my desktop browser (Brave) when running the AWS CLI SSO login, for example, but now the AWS CLI SSO login launches a Chrome window which doesn’t have any of my data saved in it like Brave does. Do you have any idea how I can reset so that WSL launches Brave again like before rather than Chrome? I deleted the chromedriver but that made no difference. Any advice is much appreciated 🙂

]]>
By: Manuel de la Fuente https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/#comment-63418 Mon, 04 Oct 2021 08:21:14 +0000 https://tecadmin.net/?p=15095#comment-63418 This command is incorrect:

sudo echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list

It uses sudo which means it’s designed for non-root accounts, but the way it’s written the redirection happens before sudo or echo are run, which means it’s run as the current user, resulting in a “Permission denied” error. That command would only work if it’s run by root, but then you wouldn’t need sudo.

For it to work for non-root accounts, the entire command has to be wrapped in a shell that is invoked with sudo:

sudo bash -c "echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' >> /etc/apt/sources.list.d/google-chrome.list"

]]>
By: mr_under_hacker https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/#comment-63216 Tue, 27 Jul 2021 11:35:29 +0000 https://tecadmin.net/?p=15095#comment-63216 Thanks for Post

]]>
By: Shan George https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/#comment-62899 Wed, 19 May 2021 08:15:47 +0000 https://tecadmin.net/?p=15095#comment-62899 Use Version of selenium-server -standalone jar files.

For eg: xvfb-run java -Dwebdriver.chrome.dr iver=/usr/bin/chromedriver -jar selenium-server-standalone-3.141.59.jar

]]>