![]() 关于您的代码,我看不到您的代码中有任何重大错误。您已经通过 DesiredCapabilities类将" marionette"设置为false,但是仍然可以运行,并打开旧版本的Mozilla Firefox浏览器会话,该版本也安装在低于48. If you are using Selenium with the Firefox web browser and you see the error message Geckodriver executable needs to be in PATH, it means that the. options Options () options.binarylocation rC:Program FilesMozilla Firefoxfirefox.exe driver webdriver.Firefox (executablepathr'C:Usersgeckodrivergeckodriver.exe', optionsoptions) driver. turning off marionette:当我们使用Selenium 3.x和最新的Mozilla Firefox浏览器时,关闭 marionette不再是解决方案。通过DesiredCapabilities类将"牵线木偶"强制设置为false,将无法打开版本48.x以上的Mozilla Firefox浏览器。 Releasing geckodriver is not as easy as it once used to be when the project’s canonical home was on GitHub. ![]()
0 Comments
Leave a Reply. |