Selenium C#:geckodriver扩展名问题

问题描述 投票:0回答:1

因此,我已经看到很多关于同一件事的问题,但是我从未见过确定的解决方案。我和这里有同样的问题:https://github.com/SeleniumHQ/selenium/issues/7909和这里:Selenium C#: Getting System.ArgumentOutOfRangeException when I add an extension and start firefox

从github问题开始,建议移至Selenium 4,但是当我使用Selenium 4时,出现此错误:

OpenQA.Selenium.WebDriverException: Cannot find a file named 'C:\Users\XXXXX\source\repos\XXXXX\XXXXX\bin\Debug\webdriver_prefs.json' or an embedded resource with the id 'webdriver_preferences.json'

当我执行var profile = new FirefoxProfile();时,我找不到解决此问题的任何方法。

我曾经使用Selenium 3,但是我从ZipStorer获得了System.ArgumentOutOfRangeException,它已固定在Selenium 4上,但是由于这个问题,我不能移出3。我想念什么吗?

c# selenium selenium-webdriver geckodriver
1个回答
0
投票

我知道我将为此一票,但我无法抗拒。

我听到有人说壁虎驱动程序吗?enter image description here

虽然我在这里,如果您有15分钟的时间,您可以节省15%...

© www.soinside.com 2019 - 2024. All rights reserved.