Sha256: 491227d0ea2239e053e23adb4c7669e699a0143f71e0ff2a03a11b333bc5eed4

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

module Webdriver
  class Window
    attr_reader :id
    def initialize(id, connection)
      @id = id
      @connection = Webdriver::PrefixConnection.new "window", connection
    end

    def maximize
      @connection.post "maximize"
      self
    end

    def minimize
      @connection.post "minimize"
      self
    end

    def rect
      @connection.get "rect"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webdriver-0.1.2 lib/webdriver/window.rb
webdriver-0.1.1 lib/webdriver/window.rb