Method: Selenium::WebDriver::Remote::W3C::Bridge#maximize_window

Defined in:
lib/selenium/webdriver/remote/w3c/bridge.rb

#maximize_window(handle = :current) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


198
199
200
201
202
# File 'lib/selenium/webdriver/remote/w3c/bridge.rb', line 198

def maximize_window(handle = :current)
  raise Error::UnsupportedOperationError, 'Switch to desired window before changing its size' unless handle == :current

  execute :maximize_window
end