Created
May 7, 2014 08:03
-
-
Save hoxo-m/2137e36bf6f604807400 to your computer and use it in GitHub Desktop.
【メモ】Selenium で新しく開いたウインドウにスイッチする ref: http://qiita.com/hoxo_m/items/a84c208a374f0ce1c2fd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val currentWindowHandle = driver.getWindowHandle() | |
val windowHandles = driver.getWindowHandles() | |
windowHandles.remove(currentWindowHandle) | |
driver.switchTo().window(windowHandles.iterator().next()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment