using System.Threading; using NUnit.Framework; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Interactions; namespace SeleniumTest { [TestFixture] public class MiniTest { [Test] public void Test() { var driver = new ChromeDriver("/usr/bin",new ChromeOptions()); driver.Navigate().GoToUrl("file:///home/daw/Desktop/test.html"); Thread.Sleep(3000); var element = driver.FindElement(By.CssSelector("#test")); new actions(driver) .MoveToElement(element,1,1) .Click() .Perform(); driver.SwitchTo().activeElement().SendKeys(Keys.ArrowRight); } } }