Module: Maze::Error

Defined in:
lib/maze/errors.rb

Defined Under Namespace

Classes: AppiumElementNotFoundError

Constant Summary collapse

ERROR_CODES =
{
  ::Selenium::WebDriver::Error::UnknownError => {
    retry: true,
    error_code: Maze::Api::ExitCode::AUTOMATION_GENERIC_ERROR
  },
  ::Selenium::WebDriver::Error::WebDriverError => {
    retry: true,
    error_code: Maze::Api::ExitCode::AUTOMATION_GENERIC_ERROR
  },
  Maze::Error::AppiumElementNotFoundError => {
    retry: true,
    error_code: Maze::Api::ExitCode::AUTOMATION_ELEMENT_NOT_FOUND
  },
  ::Selenium::WebDriver::Error::NoSuchElementError => {
    retry: true,
    error_code: Maze::Api::ExitCode::AUTOMATION_ELEMENT_NOT_FOUND
  },
  ::Selenium::WebDriver::Error::TimeoutError => {
    retry: true,
    error_code: Maze::Api::ExitCode::AUTOMATION_TIMEOUT
  },
  ::Selenium::WebDriver::Error::StaleElementReferenceError => {
    retry: true,
    error_code: Maze::Api::ExitCode::AUTOMATION_STALE_ELEMENT
  },
}.freeze