Automation Question:
Download Job Interview Questions and Answers PDF
Tell us how to perform right click using Selenium WebDriver?
Answer:
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();
Actions act = new Actions(driver); // where driver is WebDriver type
act.moveToElement(webElement).perform();
act.contextClick().perform();
Download Automation Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me can Selenium handle Windows based pop-up? | Tell us can you write the code to double click an element in Selenium? |