class Capybara::Window

def size

Returns:
  • (Array<(Integer, Integer)>) - an array with width and height
def size
  @driver.window_size(handle)
end