Sha256: 919d2e4d14314fb0eeb95c6dbbd3512944b64ce8e6ecb23444fc5b20a66749f5
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 Bytes
Contents
module Webdriver class Session attr_reader :id def initialize(json, connection) @id = json.dig "id" @connection = Webdriver::PrefixConnection.new "session/#{@id}", connection end def delete @connection.delete end def windows value = @connection.get "window/handles" value.map { |id| Webdriver::Window.new id, @connection } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webdriver-0.1.2 | lib/webdriver/session.rb |
webdriver-0.1.1 | lib/webdriver/session.rb |