title: How to press "ALT+T" in Selenium webdriver with java. I want to switch tabs by pressing it
body: <p>I have used below code, but it throws an error saying "Cannot focus on element". Please help.</p>
  
  <pre><code>String selectAll = Keys.chord(Keys.ALT,"T");
  driver.findElement(By.tagName("html")).sendKeys(selectAll);
  </code></pre>