⟩ Tell us how to perform right click using Selenium WebDriver?
The next Actions class is used to perform right click:
Actions act = new Actions(driver); // where driver is WebDriver type
act.moveToElement(webElement).perform();
act.contextClick().perform();