RightClickonElement in Selenium



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();

}

    
Tags: ,
Leave a comment

Your email address will not be published. Required fields are marked *

Subscribe now

Receive weekly newsletter with educational materials, new courses, most popular posts, popular books and much more!