title: how to open new tab in selenium webdriver using Java or how to press ctrl +T in selenium using action class using selenium webdriver
body: <p>how can I press CTRL+T in Selenium Webdriver using Java.
  Or
  how to open new tab in selenium webdriver using Java.</p>
  
  <p>[Simple steps:
  1. open google.com [do not have to touch any element/link of the page]
  2. open new tab
  3. open yahoo.com</p>
  
  <p>I have tried action class but its not working</p>
  
  <pre><code>        driver.get("http://www.google.com");
  
      driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
      System.out.println(driver.getTitle());
      Actions act = new Actions(driver);
      act.keyDown(Keys.CONTROL).sendKeys("t").keyUp(Keys.CONTROL).build().perform();
      driver.get("http://www.yahoo.com/");
      System.out.println(driver.getTitle());
  
      driver.quit();
  </code></pre>