TypeError: get() missing 1 required positional argument: 'url' error using GeckoDriver and Firefox through Selenium and Python

Ram Kaatiya picture Ram Kaatiya · Oct 21, 2018 · Viewed 13.2k times · Source

Executing below code in pycharm.

from selenium import webdriver
browser = webdriver.Firefox
browser.get('https://www.google.com')

Error:

TypeError: get() missing 1 required positional argument: 'url'

How can I solve the error?

Answer

nathan Heath picture nathan Heath · Jan 25, 2019

Specify the path the chrome driver is located in for example when calling

webdriver.Firefox(‘C://Users/Username/Downloads/‘)