Ctrl+click with the Actions class (Java)
QuizMediumJava onlyAsked in: Accenture, Capgemini, Infosys, TCS, Wipro
Which chain clicks a link while holding Ctrl, in Selenium Java?
new Actions(driver).keyDown(Keys.CONTROL).click(link).keyUp(Keys.CONTROL).perform();link.sendKeys(Keys.CONTROL).click();new Actions(driver).click(link).keyDown(Keys.CONTROL).build();link.click(Keys.CONTROL);
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.