This is my code
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome
driver.get("http://www.python.org")
I am getting error
Traceback (most recent call last):
File "E:/codes/python/script.py", line 5, in <module>
driver.get("http://www.python.org")
TypeError: get() missing 1 required positional argument: 'url'
I referred the docs but there is not much info there
webdriver.Chrome() is constructor, not a field. It should be
driver = webdriver.Chrome()
Or
driver = webdriver.Chrome('/path/to/chromedriver')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With