Hi,
I need help in starting chrome browser in headless mode, we are running in docker and have installed google-chrome-stable and chromedriver. Both are install in directory /usr/bin/ and setting chrome via python API
Enviorment
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '4.14.255-311-248.529.amzn2.x86_64', java.version: '11.0.18'
Python
zap.selenium.set_option_chrome_binary_path("/usr/bin/google-chrome")
zap.selenium.set_option_chrome_driver_path("/usr/bin/chromedriver")
zap.ajaxSpider.set_option_browser_id("chrome-headless")
CHROMEDRIVER_VERSION=114.0.5735.90
CHROME_VERSION=114.0.5735.90-1
But getting this error
Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new
session. Response code 500. Message: unknown error: Chrome failed to start: crashed.
(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.)