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