I'm trying to access a webpage using Selenium's webdriver, but no matter what browser I use (Opera/Firefox/GoogleChrome) I can't access the webpage.
In any of the cases, the browser pops-up and hangs there, does not access any URL.
When I try to run my script, I get
selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service /usr/bin/[opera/chrome]
If I use firefox I get:
selenium.common.exceptions.WebDriverException: Message: Service /usr/bin/firefox unexpectedly exited. Status code was: 0
My code:
browser = webdriver.Firefox(executable_path=FIREFOX_PATH)
browser.get('www.google.com')
r = BeautifulSoup(browser.page_source, PARSER)
print(r.text)
I'm using Linux Ubuntu 18.04 with python3.6