Selenium Java - Actions Class
You want to perform a right-click (context click) on an element and then select an option from the context menu using Selenium Java. Which approach correctly uses the Actions API to achieve this?
contextClick(element) performs a right-click on the element.perform() runs the chained actions in order.action.contextClick(element).sendKeys(Keys.ARROW_DOWN).sendKeys(Keys.ENTER).perform(); -> Option Daction.contextClick(element).sendKeys(Keys.ARROW_DOWN).sendKeys(Keys.ENTER).perform(); [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions