Solution: Selenium webdriver firefox- “bound method Service”

Development | Programming languages
Description
Any idea? How to fix? Thx..
<bound method WebDriver.get of <selenium.webdriver.firefox.webdriver.WebDriver (session="e18cb8c1-128d-4004-8802-1b3d98359dff")>>

Attachments
No attachments.
Solutions
Add browser.quit() code after the end of the selenium driver:

For example
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()


on September 19th, 2019 (9:57 pm)
What masters said
You must sign in to comment!!
All comments
This solution has not been commented yet.