Selenium 3.x,GeckoDriver,具有现有的FF Profile

时间:2017-04-13 00:44:26

标签: c# selenium geckodriver

在Selenium WebDriver C#bindings 2.x中,我们可以这样做以使用现有的Firefox配置文件:

FirefoxProfile profile = new FirefoxProfile("C:\LocationOfExistingProfile", false);
IWebDriver driver = new FirefoxDriver(profile);

我花了最后几个小时查看文档,主要是面向Java的,试图找到一种方法来实现这个与Selenium 3.x,但还没有找到解决方案。我发现的最接近的是关于使用个人资料的拉链的2月21日评论https://github.com/SeleniumHQ/selenium/issues/2645,但这似乎是一个糟糕的解决方案。

0 个答案:

没有答案