SyntaxFix
Write A Post
Hire A Developer
Questions
The below code will open the link in a new window:
String selectAll = Keys.chord(Keys.SHIFT, Keys.RETURN); driver.findElement(By.linkText("linkname")).sendKeys(selectAll);