public void MouseRightClick()
{
var driver = new ChromeDriver();
driver.Navigate().GoToUrl("https://en.wikipedia.org/");
IWebElement element = driver.FindElement(By.Id("mp-tfa-h2"));
Actions myaction = new Actions(driver);
myaction.ContextClick(element).Build().Perform();
}
No comments:
Post a Comment