Class: Maze::Api::Appium::Manager

Inherits:
Object
  • Object
show all
Defined in:
lib/maze/api/appium/manager.rb

Overview

Base class for all Appium managers.

Direct Known Subclasses

AppManager, DeviceManager, FileManager, UiManager

Instance Method Summary collapse

Constructor Details

#initializeManager

Returns a new instance of Manager.



8
9
10
# File 'lib/maze/api/appium/manager.rb', line 8

def initialize
  @driver = Maze.driver
end

Instance Method Details

#fail_driver(exception) ⇒ Object



16
17
18
19
20
21
# File 'lib/maze/api/appium/manager.rb', line 16

def fail_driver(exception)
  Bugsnag.notify(exception)
  exception.instance_eval { def skip_bugsnag; true; end }
  @driver.fail_driver(exception.message)
  Maze::Hooks::ErrorCodeHook.exit_code = Maze::Api::ExitCode::APPIUM_SESSION_FAILURE
end

#failed_driver?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/maze/api/appium/manager.rb', line 12

def failed_driver?
  @driver.failed?
end