Class: Browserly::Driver

Inherits:
Object
  • Object
show all
Defined in:
lib/browserly/driver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(remote, chrome_args) ⇒ Driver

Returns a new instance of Driver.



5
6
7
8
9
10
11
# File 'lib/browserly/driver.rb', line 5

def initialize(remote, chrome_args)
  @remote = remote
  @chrome_args = chrome_args

  return remote_driver if remote
  local_driver
end

Instance Attribute Details

#chrome_argsObject (readonly)

Returns the value of attribute chrome_args.



3
4
5
# File 'lib/browserly/driver.rb', line 3

def chrome_args
  @chrome_args
end

#driverObject (readonly)

Returns the value of attribute driver.



3
4
5
# File 'lib/browserly/driver.rb', line 3

def driver
  @driver
end