Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/267.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 无法使用c中的selenium在IE11中执行操作#_C#_Internet Explorer_Selenium_Selenium Webdriver_Kendo Ui - Fatal编程技术网

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

C# 无法使用c中的selenium在IE11中执行操作#,c#,internet-explorer,selenium,selenium-webdriver,kendo-ui,C#,Internet Explorer,Selenium,Selenium Webdriver,Kendo Ui,有人能帮我解决与internet explorer相关的问题吗。我无法使用IE驱动程序执行任何类型的操作,例如拖放web元素,但这些操作在chrome和firefox中都能完美工作。我尝试配置internet explorer选项,如下所示: InternetExplorerOptions options = new InternetExplorerOptions {EnableNativeEvents = false}; WebDriver driver = new InternetEx

有人能帮我解决与internet explorer相关的问题吗。我无法使用IE驱动程序执行任何类型的操作,例如拖放web元素,但这些操作在chrome和firefox中都能完美工作。我尝试配置internet explorer选项,如下所示:

 InternetExplorerOptions options = new InternetExplorerOptions {EnableNativeEvents = false};

 WebDriver driver = new InternetExplorerDriver(ConfigurationManager.AppSettings["IDEServerPath"], options, TimeSpan.FromMinutes(2));
非常感谢您在这方面的任何帮助,如果您需要任何其他信息,也请告诉我

我发现我们的前端项目使用了剑道UI。我认为这与IE和kendoUI有关,任何解决问题的参考都是值得赞赏的。

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

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

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

我下载了IEDriver,并使用
ConfigurationManager.AppSettings[“IDEServerPath”]
给出了路径。我认为这不是问题所在。
InternetExplorerOptions options = new InternetExplorerOptions
           {
              EnableNativeEvents = true,
              RequireWindowFocus = true
           };

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