使用 Keys.CTRL + t,不会在 Selenium 3.0 中使用 gecko 驱动程序打开新选项卡
driver.findElement(By.cssSelector("body")).sendKeys(Keys.CONTROL +"t");
使用 Keys.CTRL + t,不会在 Selenium 3.0 中使用 gecko 驱动程序打开新选项卡
driver.findElement(By.cssSelector("body")).sendKeys(Keys.CONTROL +"t");