【发布时间】:2020-09-01 06:57:20
【问题描述】:
我想在 Firefox 加载后打开一个页面:
FirefoxOptions options = new FirefoxOptions();
options.AddArguments("-profile", @"C:\SomeFolder\firefox" + @"\" + profilename + @"\");
IWebDriver driver = new FirefoxDriver(options);
Thread.Sleep(2000); //I've tried without Threed.Sleep too)
driver.Navigate().GoToUrl("http://www.google.com/");
Firefox 会打开,但无法加载 URL。我没有收到任何错误代码。
更新: 当我不加载任何配置文件时,URL 加载正常。奇怪……
【问题讨论】:
-
我不明白....有什么想法吗? :)
标签: c# selenium firefox geckodriver