Class: Aranha::Selenium::DriverFactory::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/aranha/selenium/driver_factory/base.rb

Direct Known Subclasses

Chrome, Firefox

Instance Method Summary collapse

Instance Method Details

#accept_insecure_certs?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/aranha/selenium/driver_factory/base.rb', line 22

def accept_insecure_certs?
  option_value(:accept_insecure_certs)
end

#buildObject



14
15
16
# File 'lib/aranha/selenium/driver_factory/base.rb', line 14

def build
  raise 'Must be overrided'
end

#downloads_dirObject



18
19
20
# File 'lib/aranha/selenium/driver_factory/base.rb', line 18

def downloads_dir
  option_value(:downloads_dir)
end

#headless?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/aranha/selenium/driver_factory/base.rb', line 26

def headless?
  option_value(:headless)
end

#profile_dirObject



30
31
32
# File 'lib/aranha/selenium/driver_factory/base.rb', line 30

def profile_dir
  options[:profile_dir].to_s
end

#profile_nameObject



34
35
36
# File 'lib/aranha/selenium/driver_factory/base.rb', line 34

def profile_name
  options[:profile_name]
end

#user_agentObject



38
39
40
# File 'lib/aranha/selenium/driver_factory/base.rb', line 38

def user_agent
  option_value(:user_agent)
end