Created
December 8, 2012 07:02
-
-
Save siguremon/4239046 to your computer and use it in GitHub Desktop.
webdriverでウィンドウサイズを変更する ref: http://qiita.com/items/bfede5cebc3c9996b7aa
This file contains hidden or 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
| // 指定のウィンドウサイズに変更 | |
| int width = 1000; | |
| int height = 500; | |
| driver.manage().window().setSize(new Dimension(width, height)); | |
| // 最大化 | |
| driver.manage().window().maximize(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment