小编Ser*_*hka的帖子

预期的浏览器二进制位置,但无法在默认位置找到二进制文件,没有使用 GeckoDriver 提供的“moz:firefoxOptions.binary”功能

from selenium import webdriver;
browser= webdriver.Firefox();
browser.get('http://www.seleniumhq.org');
Run Code Online (Sandbox Code Playgroud)

当我尝试运行此代码时,它给了我一个error message

Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line.
Run Code Online (Sandbox Code Playgroud)

任何想法 - 高度赞赏!

python firefox selenium selenium-webdriver geckodriver

6
推荐指数
3
解决办法
2万
查看次数