I'm trying to simulate tap on screen on Selenium WebDriver Firefox (Geckodriver).
There is a script writes if you have clicked (by mouse) or tapped to screen. I can "click" on it by Selenium without any problem. I just want to "tap" it. Is it possible? How can i do it?
I'm using latest versions of Geckodriver and Firefox. My codes are below.
var touchActions = new OpenQA.Selenium.Interactions.TouchActions(driver);
string url = "https://jsfiddle.net/bkwb0qen/15/embedded/result/";
driver.Navigate().GoToUrl(url);
driver.SwitchTo().Frame(0);
IWebElement element = driver.FindElement(By.Id("square"));
touchActions.SingleTap(element).Build().Perform();