Skip to content
Advertisement

Selenium driver throws error on Ubuntu 18.04

I am porting my code over from Windows to Ubuntu, I went ahead and installed java, and all the drivers, and built my jar file. While executing it, I am getting this error. I downloaded the Linux 64bit Chrome Driver for this.

JavaScript

The error seems to be starting from my jars main class line 17, which is this line.

JavaScript

Here is my entire code, that I am trying to execute.

import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.DesiredCapabilities;

JavaScript

Advertisement

Answer

Adding --disable-dev-shm-usage as an argument seems to solve the issue.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement