Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/295.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/68.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# Selenium webdriver中的Actions类在Firefox 14中不起作用_C#_Firefox_Selenium_Webdriver - Fatal编程技术网

C# Selenium webdriver中的Actions类在Firefox 14中不起作用

C# Selenium webdriver中的Actions类在Firefox 14中不起作用,c#,firefox,selenium,webdriver,C#,Firefox,Selenium,Webdriver,我正在使用SeleniumWebDriverforC#和Firefox14 我正在尝试右键单击链接,但失败并出现错误: OpenQA.Selenium.InvalidElementStateException:无法执行本机交互:无法加载本机事件组件。 这在Firefox13中起作用。 如果有人有解决办法,请告诉我 Actions builder = new Actions(driver); IWebElement tagElement = driver.FindElement(

我正在使用SeleniumWebDriverforC#和Firefox14

我正在尝试右键单击链接,但失败并出现错误:
OpenQA.Selenium.InvalidElementStateException:无法执行本机交互:无法加载本机事件组件。

这在Firefox13中起作用。 如果有人有解决办法,请告诉我

Actions builder = new Actions(driver);
         IWebElement tagElement = driver.FindElement(By.LinkText("FolderA"));
        //right click on FolderA            
         builder.MoveToElement(tagElement).Perform();
builder.ContextClick(tagElement).Perform();

您使用的是哪个版本的Selenium WebDriver?请记住,新版本的Firefox通常需要新版本的WebDriver用于本机事件,因为浏览器版本之间的Firefox本机代码接口发生了更改。例如,Firefox 14的本机事件支持直到2.25.0才添加到WebDriver中。

正如JimEvans所指出的,确保您运行最新版本的Selenium,检查他们的Google代码项目,并查看他们的提交,以查看FF支持在最新版本中是否发生了变化。如果没有,请向Selenium家伙提交一个bug。同时降级到FF 13。MacOSx上的safari和chrome怎么样?