browser = webdriver.Firefox()
browser.get('http://www.ubuntu.com/')
print(browser.page_source)
browser.close()
display.stop()
How to fix Selenium WebDriverException: The browser appears to have exited before we could connect?