webdriver.chrome() TypeError: 'module' object is not callable
时间: 2023-09-25 17:15:13 浏览: 94
webdriver.Chrome
报错"TypeError: 'module' object is not callable"表示模块对象不可调用。在这个特定的情况下,根据引用,错误可能是因为使用了错误的方法来创建Chrome WebDriver对象。正确的方法是使用`webdriver.Chrome()`而不是`webdriver.chrome()`。因此,你需要将代码中的`driver = webdriver.chrome()`修改为`driver = webdriver.Chrome()`。这样修改后,代码应该可以正常运行。 <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Python selenium中出现错误:driver = webdriver.chrome() TypeError: ‘module‘ object is not callable](https://blog.csdn.net/qq_55660421/article/details/127528327)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [解决webdriver.Chrome()报错:Message:'chromedriver' executable needs to be in Path](https://download.csdn.net/download/weixin_38697328/12862713)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文