lib/async/webdriver/client.rb in async-webdriver-0.1.0 vs lib/async/webdriver/client.rb in async-webdriver-0.1.1
- old
+ new
@@ -1,15 +1,16 @@
require "async/queue"
module Async
module Webdriver
class Client
- def initialize(endpoint:)
+ def initialize(endpoint:, desired_capabilities: {})
@connection = Connection.new endpoint: endpoint
+ @desired_capabilities = desired_capabilities
end
def session
- SessionCreator.new connection: @connection
+ SessionCreator.new connection: @connection, desired_capabilities: @desired_capabilities
end
def status
@connection.call method: :get, path: "status"
end