System.NotImplementedException: performActions in selenium webdriver C#

Viewed 1081

I'm using below Configurations :

Selenium webdriver 3.3.0 with C# language

Geckodriver V0.15.0

Firefox 45.9.0.

When i use Actions method to use Doubleclick() function. I've met an error System.NotImplementedException: performActions. This mean i can't use perform() function for this action. Could anyone help me about this thing?

Below is the code :

using System;
using System.IO;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Interactions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using cExcel = Microsoft.Office.Interop.Excel;

IWebElement date = driver.FindElement(By.XPath(".//*[@id='grid']/div[2]/table/tbody/tr[2]/td[61]"));
Actions builder = new Actions(driver); // Action method in interactions Lib use for DoubleClick()
builder.DoubleClick(date).Build();
builder.Perform();
date.SendKeys("Time");

Below is error :

Result StackTrace: at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters)
atOpenQA.Selenium.Remote.RemoteWebDriver.OpenQA.Selenium.Internal.IActionExecutor.PerformActions(List
1 actionSequenceList) at OpenQA.Selenium.Interactions.Actions.Perform() at UnitTestProject1.UnitTest1.TestMethod1() in C:\Users\TUM1HC\Desktop\Visual Studio\MasterTool\MasterTool\UnitTest1.cs:line 55 Result Message: Test method UnitTestProject1.UnitTest1.TestMethod1 threw exception: System.NotImplementedException: performActions

1 Answers
Related