I am running Selenium file on Amazon AWS Ubuntu Server, but I am getting the following error on the below line:
driver = webdriver.Chrome();
The error says:
selenium.common.exceptions.WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 127
I have tried many solutions but it is still not working (How to fix Selenium WebDriverException: The browser appears to have exited before we could connect?)
I have also tried with:
driver = webdriver.Firefox();
and in Firefox, I am getting the following error:
selenium.common.exceptions.WebDriverException: Message: connection refused
Can anyone help me?