python - "TypeError: ' 模块 ' object is not callable"与 webdriver.chrome

标签 python python-3.x selenium selenium-webdriver

from selenium import webdriver 

driver = webdriver.chrome("F:\\chromedriver.exe")

driver.get("https://www.nvidia.in/graphics-cards/geforce/pascal/buy/")

最佳答案

在 python 中,函数 chrome() 中的字母“c”将大写。

不正确

import webdriver

driver = webdriver.chrome("F:\\chromedriver.exe")

正确:
from selenium import webdriver
import selenium

driver = webdriver.Chrome("F:\\Chromedriver.exe")

关于python - "TypeError: ' 模块 ' object is not callable"与 webdriver.chrome,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51188180/

相关文章:

python - argparse:如何允许多个值覆盖默认值

selenium 测试的 Python 项目结构

Python selenium 脚本无法点击某些链接

java - 在页面对象模型中,覆盖模式窗口应该被视为单独的页面类还是在 "Parent"页面类内?

python - sys.stdout.encoding、locale.getpreferredencoding() 和 sys.getdefaultencoding() 之间有什么区别?

python - 读取带有嵌套字典的文本文件并转换为 csv

python - AWS Lambda Python3.7函数-numpy : cannot import name 'WinDLL'

python - BeautifulSoup,Python 3,编码错误

python - 如何在 Python 中使用这个回调?

python - 如何在 python 中将字符串转换为日期时间对象?