class Capybara::Window
def resize_to(width, height)
-
height
(String
) -- the new window height in pixels -
width
(String
) -- the new window width in pixels
def resize_to(width, height) wait_for_stable_size { @driver.resize_window_to(handle, width, height) } end