以下代码应该打开谷歌浏览器和沃尔玛页面,但我遇到了下面的错误。
代码:
from selenium import webdriver
driver = webdriver.Chrome
driver.get('https://www.walmart.com/')
错误:
Traceback (most recent call last):
File "/Users/abdushukur/PycharmProjects/cloudacademy/automation.py", line 4, in <module>
driver.get('https://www.walmart.com/')
TypeError: get() missing 1 required positional argument: 'url'