Open GoogleCodeExporter opened 9 years ago
Sorry step 2 is
"driver.findElement(By.cssSelector("body")).sendKeys(Keys.CONTROL + "t");"
Original comment by Vanilto...@gmail.com
on 15 Sep 2014 at 9:41
This workaround works for me:
new
Actions(window).keyDown(Keys.CONTROL).click(element).keyUp(Keys.CONTROL).build()
.perform();
In other words, use CTRL+LMB to open links in a new tab. Use CTRL+SHIFT+LMB to
open links in a new tab, and also shift focus to the new tab.
Original comment by cow...@bbs.darktech.org
on 28 Nov 2014 at 4:15
Original comment by samu...@chromium.org
on 21 Feb 2015 at 12:18
This is a limitation in the way we simulate keyboard input in ChromeDriver.
Keys get sent directly to the render process, bypassing the browser process. So
any keyboard shortcut handlers in the browser process will not be invoked by
sendKeys().
Original comment by samu...@chromium.org
on 5 Mar 2015 at 10:42
Original issue reported on code.google.com by
Vanilto...@gmail.com
on 15 Sep 2014 at 9:24