0

包:Selenium.InternetExplorer.WebDriver 版本:3.12.0、3.150.0

InternetExplorerOptions options = new InternetExplorerOptions();
driver = new InternetExplorerDriver(options);
driver.Navigate().GoToUrl("http://www.google.com");
string hello = ""; <-- never come here and not exceptions 
4

1 回答 1

0

在使用Selenium.InternetExplorer.WebDriver Version: 3.150.0时,您可能会遇到一些问题,因为根据更改日志

...如果绑定未正确格式化新会话请求,则使用此版本的 IE 驱动程序和 4.0 之前的语言绑定的用户可能会遇到问题;尽管如此,此更改不会被恢复,因为未来版本的语言绑定应该正确地格式化新的会话命令。

更好的选择是升级到Selenium v​​4.0.0.0

于 2022-01-13T23:11:26.953 回答