Py学习  »  问与答

python ,selenium已安装好,但是运行driver=webdriver.firefox().报错,望前辈帮忙处理下,谢谢

Databasee • 6 年前 • 733 次点击  

python ,selenium已安装好,但是运行driver=webdriver.firefox().报错,望前辈帮忙处理下,谢谢 >>> from selenium import webdriver

driver=webdriver.firefox() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'module' object is not callable

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/4742
 
733 次点击  
文章 [ 1 ]  |  最新文章 6 年前
桑朵卡之
Reply   •   1 楼
桑朵卡之    6 年前

请下载driver,然后把driver所在的文件夹添加到环境变量中。