- Jan 08, 2023
- admin
- 0
RightClickonElement using Selenium C#
[Test]
public void RightClickonElement()
{
dr.Navigate().GoToUrl(“https://www.Techtutorialz.com/”);
Actions action = new Actions(dr);
IWebElement element = dr.FindElement(By.XPath(“//a[text()=’View Tutorial Library’]”));
action.ContextClick(element).Build().Perform();
}