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

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

#maximize_window(handle = :current) ⇒ Object

[View source]

258
259
260
261
262
263
264
265
# File 'lib/selenium/webdriver/remote/bridge.rb', line 258

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

  execute :maximize_window
end