I'm trying to select an option from context menu, and sendKeys(Keys.ARROW_DOWN) is not working. All it does is that it moves the scroll of the page up and down(even though context menu is still open)
Actions action = new Actions(driver);
action.contextClick(element).build().perform();
action.sendKeys(Keys.ARROW_DOWN).sendKeys(Keys.Enter).build().perform();
the sendKeys method here just moves the page up and down without taking the opened context menu into consideration.(I also tried switching to an alert) Is there another way to select an option from the context menu?