Using Keys.CTRL + t, is not opening new tab in Selenium 3.0 with gecko driver
driver.findElement(By.cssSelector("body")).sendKeys(Keys.CONTROL +"t");
Using Keys.CTRL + t, is not opening new tab in Selenium 3.0 with gecko driver
driver.findElement(By.cssSelector("body")).sendKeys(Keys.CONTROL +"t");
Copyright © 2021 Jogjafile Inc.
once I tried Robot for that, like -
I don't really sure in relation of keys in here (VK_CONTROL and VK_T), that's what you'll have to find out, but it worked for me. P.S. Probably, you'll have to release keys after.