Interview Questions

Selenium WebDriver - How to perform right click using WebDriver?

Selenium WebDriver Interview question and Answers


(Continued from previous question...)

Selenium WebDriver - How to perform right click using WebDriver?

Use Actions class
Actions act = new Actions(driver); // where driver is WebDriver type act.moveToElement(webElement).perform(); act.contextClick().perform();
Actions act = new Actions(driver); // where driver is WebDriver type
act.moveToElement(webElement).perform();
act.contextClick().perform();

(Continued on next question...)

Other Interview Questions