Exception: Maze::Error::AppiumElementNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/maze/errors.rb

Overview

An error raised when an appium element cannot be found

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = 'Element not found', element = 'No element specified') ⇒ AppiumElementNotFoundError

Creates the error

Parameters:

  • message (String) (defaults to: 'Element not found')

    The error to display

  • element (String) (defaults to: 'No element specified')

    The name of the element that could not be located



18
19
20
21
# File 'lib/maze/errors.rb', line 18

def initialize(message='Element not found', element='No element specified')
  @element = element
  super(message)
end

Instance Attribute Details

#elementObject (readonly)

@# @!attribute [r] element

@return [String] The named element that could not be found


12
13
14
# File 'lib/maze/errors.rb', line 12

def element
  @element
end