Class: RainforestRubyRuntime::Drivers::TestingBot

Inherits:
Object
  • Object
show all
Defined in:
lib/rainforest_ruby_runtime/drivers/testing_bot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ TestingBot

Returns a new instance of TestingBot.



6
7
8
# File 'lib/rainforest_ruby_runtime/drivers/testing_bot.rb', line 6

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/rainforest_ruby_runtime/drivers/testing_bot.rb', line 4

def options
  @options
end

Instance Method Details

#callObject



10
11
12
13
14
# File 'lib/rainforest_ruby_runtime/drivers/testing_bot.rb', line 10

def call
  ::TestingBot.config do |c|
    c[:desired_capabilities] = browsers
  end
end