我的脚本:
coding=utf-8
from selenium import webdriver
driver = webdriver.chrome
driver.get("https://www.baidu.com")
print(driver.title)
driver.quit()
报错如下:
C:\Python27\python.exe D:/PY/Test/Test01.py
Traceback (most recent call last):
File "D:/PY/Test/Test01.py", line 5, in
driver.get("https://www.baidu.com")
AttributeError: 'module' object has no attribute 'get'
Process finished with exit code 1