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
Asked
Active
Viewed 84 times
1 Answers
0
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')

Rakesh
- 118
- 1
- 9
-
okay !!! but it dosen't work on my case where should i put this above code in serenity.conf file or somewhere else.because i put this on serenity.confi its dosen't work – Rahul Pawar Sep 19 '22 at 11:15
-
this error getting – Rahul Pawar Sep 19 '22 at 11:15
-
Right before you initialize browser drivers like chromedriver, thats where you have to configure you chrome with certain options as called capabilities. – Rakesh Sep 20 '22 at 04:42
-
ok i,ll do that – Rahul Pawar Sep 20 '22 at 05:42
-
Now it's showing the interactable element exception,No frame exception.and when we commit that part then it goes next element with same exception error.but its Working fine on terminal and console – Rahul Pawar Sep 20 '22 at 11:08