Unable to execute Automation selenium test suite in Linux Redhat OS | Selenium Forum
G
G>Pavankumar Posted on 28/10/2019

Hi,

 

Am trying to execute Automation test suite in linux for dockerizing the suite ,but am getting issue with browser in linux same code is working in windows.

Below are project details and error message,

Please respond kindly

Thanks in advance.

Project details:

1.Maven Project and below is the code for launching browser :

ChromeOptions options = new ChromeOptions();
options.addArguments("--headless","--ignore-certificate-errors", "--silent" ,"--no-sandbox" ,"--allow-insecure-localhost");


driver = new ChromeDriver(options);
System.out.println("*************Launching Chrome Browser***************");
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);

2.Error in Linux server as below:

Attached complete error as attachement.


A
Ashish Thakur Replied on 29/10/2019

As i can see that you are using Selenium 2.53.1, please use the latest version along with the latest version of the driver and chrome browser.