Sha256: 73248a5259a0c4248ffe0f2881f6e4c8963b5debb7eabb514d3521e5c49aec04
Contents?: true
Size: 607 Bytes
Versions: 20
Compression:
Stored size: 607 Bytes
Contents
module Webdriver class Client def initialize(endpoint, desired_capabilities={}) uri = URI(endpoint) @connection = Webdriver::Connection.new endpoint @desired_capabilities = desired_capabilities end def status @connection.get "status" end def sessions value = @connection.get "sessions" value.map { |json| Webdriver::Session.new json, @connection } end def session! json = @connection.post "session", {}, { desiredCapabilities: @desired_capabilities } Webdriver::Session.new json, @connection end end end
Version data entries
20 entries across 20 versions & 1 rubygems