Is there is any solution for jenkin chrome initiation?

Viewed 47

Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: 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.) Build info: version: '4.1.2', revision: '9a5a329c5a' System info: host: 'bluehole-Lenovo-V15-G2-ITL-Ua', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.0-46-generic', java.version: '9.0.4' Driver info: org.openqa.selenium.chrome.ChromeDriver

1 Answers

Looks like Configuration issue, please set Chrome driver capabilities for head & headless mode of execution. then it should work perfectly.

something like this in

 chrome_options.add_argument('--headless')
 chrome_options.add_argument('--no-sandbox')
 chrome_options.add_argument('--disable-dev-shm-usage')
Related