无法在c11中使用selenium执行IE11中的操作

时间:2016-06-14 02:44:16

标签: c# internet-explorer selenium selenium-webdriver kendo-ui

任何人都可以帮我解决与Internet Explorer相关的问题。我无法执行任何类型的操作,例如使用IE驱动程序拖放Web元素,但这些操作完全适用于chrome和firefox。我尝试配置Internet Explorer选项,如下所示:

ng-false-value

对此有任何帮助表示赞赏,如果您需要任何其他意见,请与我们联系。

我发现这些我们的前端项目使用了kendo UI。我认为这与IE和kendoUI有关,任何参考解决问题都表示赞赏。

2 个答案:

答案 0 :(得分:1)

您需要下载IEDriver并将其提供给承包商

WebDriver driver = new InternetExplorerDriver("c:\driver", options, TimeSpan.FromSeconds(60));

答案 1 :(得分:1)

InternetExplorerOptions options = new InternetExplorerOptions
           {
              EnableNativeEvents = true,
              RequireWindowFocus = true
           };

WebDriver = new InternetExplorerDriver(AppDomain.CurrentDomain.BaseDirectory + ConfigurationManager.AppSettings["IDEServerPath"], options,
              TimeSpan.FromSeconds(90));

设置上述选项实际上解决了我的问题