I got the exception(below) when running Selenium with chrome driver version 74 on Linux server. It’s running just fine on Windows
unknown error: Chrome failed to start: exited abnormally (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
I can prevent this error by adding "--headless" into ChromeOptions, but some elements cannot be found when run Selenium with headless mode. my current ChromeOptions use as example below.
options = new ChromeOptions();
options.addArguments("--no-sandbox");
options.addArguments("--disable-dev-shm-usage");
options.addArguments("--user-data-dir=something");
options.addArguments("--start-maximized");
I am Linux beginner, Can someone help me to know is it possible to run headful Selenium on Linux server and also how to do it?
options.binary_location = get_chrome()
. – jww