win10中安装了Python+selenium+pycharm,但是运行脚本报错
我的脚本: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
driver = webdriver.Chrome 工具没有成功启动 检查下包引入 引入包是否正确
页:
[1]