<bound method WebDriver.get of <selenium.webdriver.firefox.webdriver.WebDriver (session="e18cb8c1-128d-4004-8802-1b3d98359dff")>>
options = webdriver.FirefoxOptions() options.add_argument('-headless') browser = webdriver.Firefox(executable_path=geckodriver, options=options) browser.get("http://" + str(username) + ":" + str(password) + "@" + str(host)) browser.save_screenshot('/tmp/headless_firefox_test.png') browser.quit()
I agree to the Idomaster Terms and Conditions, Privacy Policy
Description
Add browser.quit() code after the end of the selenium driver: