Method: Appium::Core::Element#id

Defined in:
lib/appium_lib_core/element.rb

#idString (readonly)

Retuns the element id.

Examples:

e = @driver.find_element :accessibility_id, 'something'
e.id

Returns:

  • (String)


31
32
33
# File 'lib/appium_lib_core/element.rb', line 31

def id
  @id
end