title: How to press (Ctrl+T) in selenium-webdriver on Ubuntu (Firefox)?
body: <p>I want to open a new tab in an existing browser, but in ubuntu(os) with firefox, it's not working.</p>
  
  <p>I have tried both actions and robot class but still, I am unable to do it. </p>
  
  <pre><code>driver.get("http://www.google.com/");
  driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
  System.out.println(driver.getTitle());
  Robot robot = new Robot();
  robot.keyPress(KeyEvent.VK_CONTROL);
  robot.keyPress(KeyEvent.VK_T);
  robot.keyRelease(KeyEvent.VK_T);
  robot.keyRelease(KeyEvent.VK_CONTROL);
  </code></pre>
  
  <p>Also, have tried the below code,</p>
  
  <pre><code>WebDriver driver = new FirefoxDriver();         
  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.bing.com/");
  System.out.println(driver.getTitle());
  act.keyDown(Keys.CONTROL).sendKeys("t").keyUp(Keys.CONTROL).build().perform();
  driver.get("http://www.yahoo.com/");    
  System.out.println(driver.getTitle());
  </code></pre>
  
  <p>After using both the above code still, a new tab is not getting opened.
  Can anyone help me with this??</p>