Method: Selenium::WebDriver::Remote::Bridge#getWindowPosition

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

#getWindowPosition(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.



246
247
248
249
250
# File 'lib/selenium/webdriver/remote/bridge.rb', line 246

def getWindowPosition(handle = :current)
  data = execute :getWindowPosition, :window_handle => handle

  Point.new data['x'], data['y']
end