@Test
public void Newtab() throws Exception
{public void Newtab() throws Exception
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get("http://seleniumsubbu.blogspot.in/");
{
driver.findElement(By.cssSelector("body")).sendKeys(Keys.CONTROL +"t");
ArrayList<String> tabs = new ArrayList<String> (driver.getWindowHandles());
driver.switchTo().window(tabs.get(0));
driver.get("http://seleniumsubbu.blogspot.in/");
}
}