Created
January 23, 2017 12:26
-
-
Save santhoshv339/77572547c951321b9b8b3a59f9b42228 to your computer and use it in GitHub Desktop.
Open Link in a new tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String selectLinkOpeninNewTab = Keys.chord(Keys.CONTROL,"t"); | |
driver.findElement(By.linkText("urlLink")).sendKeys(selectLinkOpeninNewTab); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment