title: Java selenium: open new tab
body: <p>So i have this <code>URL</code> that i want to surf into in new tab, the link is not clickable so when i click on this nothing happen and this will not work (even not manually):</p>
  
  <pre><code>    WebElement hrefLink;
          actions.keyDown(Keys.SHIFT).click(hrefLink).keyUp(Keys.SHIFT).build().perform();
  
          // Handle windows change.
  ArrayList&lt;String&gt; tabs = new ArrayList&lt;String&gt;(Browser.driver().getWindowHandles());
  
       // Switch to the new tab.
       driver.switchTo().window(tabs.get(1));
  </code></pre>
  
  <p>So i try this approach:</p>
  
  <pre><code>driver.findElement(By.cssSelector("body")).sendKeys(Keys.CONTROL + "t");
  </code></pre>
  
  <p>And no new tab openning.</p>
  
  <p>Any suggestions ?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>This is my web URL: <code>https://bitly.com/</code></p>