Class | Selenium::WebDriver::Window |
In: |
lib/selenium/webdriver/common/window.rb
|
Parent: | Object |
@api beta This API may be changed or removed in a future release.
Equivalent to position=, but accepts x and y arguments.
@example
driver.manage.window.move_to(300, 400)
Equivalent to size=, but accepts width and height arguments.
@example Maximize the window.
max_width, max_height = driver.execute_script("return [window.screen.availWidth, window.screen.availHeight];") driver.manage.window.resize_to(max_width, max_height)