简体   繁体   English

无法使用C#中的硒在IE11中执行操作

[英]Unable to perform actions in IE11 with selenium in c#

Can anyone help me in fixing the issue related to internet explorer. 谁能帮助我解决与Internet Explorer相关的问题。 I am not able to perform any kind of actions such as dragging and dropping the web elements using IE driver but these actions perfectly works in chrome and firefox. 我无法执行任何类型的操作,例如使用IE驱动程序拖放Web元素,但这些操作在chrome和firefox中完美地起作用。 I tried configuring the internet explorer options as shown below: 我尝试如下所示配置Internet Explorer选项:

 InternetExplorerOptions options = new InternetExplorerOptions {EnableNativeEvents = false};

 WebDriver driver = new InternetExplorerDriver(ConfigurationManager.AppSettings["IDEServerPath"], options, TimeSpan.FromMinutes(2));

Any help in this is appreciated and also please let me know if you need any other inputs. 感谢您提供任何帮助,如果您需要其他任何输入,也请告诉我。

I found that these our front end project uses kendo UI. 我发现这些前端项目使用kendo UI。 I think this is something to do with IE and kendoUI any reference to solve the problem is appreciated. 我认为这与IE和kendoUI有关,可以解决此问题。

您需要下载IEDriver并提供给承包商的路径

WebDriver driver = new InternetExplorerDriver("c:\driver", options, TimeSpan.FromSeconds(60));
InternetExplorerOptions options = new InternetExplorerOptions
           {
              EnableNativeEvents = true,
              RequireWindowFocus = true
           };

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

setting the above options actually fix my problem 设置以上选项实际上可以解决我的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM