Skip to content

Instantly share code, notes, and snippets.

@hoxo-m
Created May 7, 2014 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoxo-m/2137e36bf6f604807400 to your computer and use it in GitHub Desktop.
Save hoxo-m/2137e36bf6f604807400 to your computer and use it in GitHub Desktop.
【メモ】Selenium で新しく開いたウインドウにスイッチする ref: http://qiita.com/hoxo_m/items/a84c208a374f0ce1c2fd
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