How to change tab with selenium? I am performing my automatic tests but when I click on a button, it opens a new tab. What I need is that selenium change tab and continue with automation. I'm using
String selectLinkOpeninNewTab = Keys.chord(Keys.CONTROL,"2");
But it does not work and the code fails.