Your OS name and version.
OS: linux (It is EC2 instance, which is configured by devops team)
Your python version.
Python version: 3.11.5
Any development tools name and version you are using like Visual Studio Code, Pycharm, etc. → not using any of these tools.
The smallest complete program to illustrate the error.
What were you trying to do when the error happened? Which line of code caused the error?
chrome_version = “124.0.6367.78”
chrome_driver_path = ChromeDriverManager(driver_version=chrome_version).install()
logging.info(f"chrome driver path: {chrome_driver_path}“)
options = webdriver.ChromeOptions()
service = Service(executable_path=chrome_driver_path) self.driver = webdriver.Chrome(service=service, options=options)
here it is failing def assert_process_still_running(self) → None: “”“Check if the underlying process is still running.”“” return_code = self.process.poll() if return_code:
** raise WebDriverException(f"Service {self._path} unexpectedly exited. Status code was: {return_code}”)**
** selenium.common.exceptions.WebDriverException: Message: Service /root/.wdm/drivers/chromedriver/linux64/124.0.6367.78/chromedriver-linux64/chromedriver unexpectedly exited. Status code was: 127**