Module: Maze::Client::Appium

Defined in:
lib/maze/client/appium.rb,
lib/maze/client/appium/bb_client.rb,
lib/maze/client/appium/bs_client.rb,
lib/maze/client/appium/bb_devices.rb,
lib/maze/client/appium/bs_devices.rb,
lib/maze/client/appium/base_client.rb,
lib/maze/client/appium/local_client.rb,
lib/maze/client/appium/bs_legacy_client.rb

Defined Under Namespace

Classes: BaseClient, BitBarClient, BitBarDevices, BrowserStackClient, BrowserStackDevices, BrowserStackLegacyClient, LocalClient

Class Method Summary collapse

Class Method Details

.startObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/maze/client/appium.rb', line 4

def self.start
  client_class =
    case Maze.config.farm
    when :bb then BitBarClient
    when :bs
      if Maze.config.legacy_driver?
        $logger.info 'Using the Legacy (JWP) Appium client'
        BrowserStackLegacyClient
      else
        $logger.info 'Using the W3C Appium client'
        BrowserStackClient
      end
    when :local then LocalClient
    end

  client_class.new.tap(&:start_session)
end