Hi All,
I am facing the below issue when trying with chrome browser, tried many different options but didn’t work.
Please scroll below for stack trace.
Error:
Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: crashed.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location C:\Program Files (x86)\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:48'
System info: host: 'BLRWX11704', ip: '10.31.70.202', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_151'
Driver info: driver.version: ChromeDriver
Please suggest how to resolve this.
Please find below details
Here is the details on the issue I am facing .
OS – Windows 10
Java – 64 bit JDK 1.8.0_241 and JRE 1.8.0_241
Eclipse Photon IDE
selenium – 3.141.59
Chrome Browser Version - 81.0.4044.113 (Official Build) (64-bit)
Chrome Driver Version - 81.0.4044.69
Below are the different steps tried, for resolving the issue, but no luck.
Step1 :
re-installing chrome , clearing all chrome data from my PC,and re mapping all the selenium jar files
Step2:
copy chromediver.exe in source folder, so that we no need to give path
Step3:
Add chromedriver.exe and chrome.exe path in System path variables under environment variable
Step4:
Tried of couple of Chrome options like adding chrome browser binary path ,useautomationExtension in script code as below
ChromeOptions options = new ChromeOptions();
options.setBinary("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe");
options.setExperimentalOption("useAutomationExtension", false);
WebDriver driver = new ChromeDriver(options);
Step5:
Checked with Internal network/ firewall team in the office, to check if there is any firewall related issue. They confirmed that no firewall issues, as the scripts are working fine with IE browser.
Please do let me know, if you need any more details
Here is the selenium script I am trying
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
public class Test1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("hi world");
System.setProperty("webdriver.chrome.driver", " path to\ chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.setBinary("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe");
options.setExperimentalOption("useAutomationExtension", false);
WebDriver driver = new ChromeDriver(options);
driver.get("https://www.google.com");
}
Here is the error stack trace:
hellow world
Thanks,
Suma
options.addArguments("--disable-dev-shm-usage");
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a63199a1-b962-4cb7-bf15-895da62016ce%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAGBisyKUHLLk%2BC4PH3yhnX9Su4VrW5XqtRjznTPQbpPfPFDBQw%40mail.gmail.com.
Chrome Driver Version - 85
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAGBisy%2BmsRQPHmXzxY-NoLahkT778zTsGy8BNB5eRKEA-zzg9Q%40mail.gmail.com.
--
I understood that the issue is with the same code and versions it works fine in some instance and in some it doesn't work.What else might be wrong?
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CADrmqWUO-VPDNixBPmfK1-7094X5ob98OPJHoAmwCrE0TQg%2BGw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAEoXmQfDnN_vryh8T-ub9TkU9Lbg%2BECprPv2ZnGPZiEjW8jXtg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAEoXmQfDnN_vryh8T-ub9TkU9Lbg%2BECprPv2ZnGPZiEjW8jXtg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAEoXmQfDnN_vryh8T-ub9TkU9Lbg%2BECprPv2ZnGPZiEjW8jXtg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANw7MiUqFmR4gmEVaPe6rn2uoAReGz-r_WK%2B49H94cmMNrPHOw%40mail.gmail.com.
WebDriverManager.chromedriver().setup();
WebDriver driver = new ChromeDriver();
driver.get("http://www.google.com");
System.out.println(driver.getTitle());
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a7543989-9016-45cc-b0c5-d6dcc91930e8n%40googlegroups.com.