Class: EasyAutomation::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/easy_automation/server.rb

Class Method Summary collapse

Class Method Details

.build_serverObject



12
13
14
15
16
17
18
19
# File 'lib/easy_automation/server.rb', line 12

def build_server
  if Runner.configuration.selenium_host.nil?
    Selenium::Server.new(Runner.configuration.selenium_port,
                         Runner.configuration.selenium_timeout)
  else
    EasyAutomation::RemoteServer.new
  end
end

.rc(force_reload = false) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/easy_automation/server.rb', line 4

def rc force_reload = false
  if force_reload
    @selenium = build_server
  else
    @selenium ||= build_server
  end
end