Method: Capybara::Selenium::Driver#resize_window_to

Defined in:
lib/capybara/selenium/driver.rb

#resize_window_to(handle, width, height) ⇒ Object


177
178
179
180
181
# File 'lib/capybara/selenium/driver.rb', line 177

def resize_window_to(handle, width, height)
  within_given_window(handle) do
    browser.manage.window.resize_to(width, height)
  end
end