Method: Capybara::Window#maximize

Defined in:
lib/capybara/window.rb

#maximizeObject

Maximize window.

If a particular driver (e.g. headless driver) doesn’t have concept of maximizing it may not support this method.

If this method was called for window that is not current, then after calling this method current window should remain the same as it was before calling this method.



100
101
102
# File 'lib/capybara/window.rb', line 100

def maximize
  wait_for_stable_size { @driver.maximize_window(handle) }
end