python - Opening Firefox with selenium error
问题描述
I was trying to test out selenium, and the code asks me to run a script
browser = webdriver.Firefox()
However, this is the problem I get. Hope the gurus of the coding world can help me. This is Python 3 on Windows 10.
解决方案
driver = webdriver.Firefox('C:\\Files\\geckodriver.exe')
推荐阅读
- node.js - 内存不足异常 - 未处理的 RangeError
- javascript - Javascript:更改嵌套数据结构
- jquery - jsp如何动态模态?
- laravel - 如何在 laravel 中定义表单内的动作?
- cloud - 请求折叠的 Hystrix 替代方案
- html - 使用模板组件中的 ng-content 样式
- mysql - 如何在laravel中执行带参数调用的过程查询
- python - Pycharm:导入 ssl 模块时遇到问题
- regex - 重定向 htaccess 正则表达式在浏览器中保持相同的 URL
- java - 为什么我的测试在单次执行中运行时间 <1 秒,但在 Maven 构建中运行时间超过 20 秒?