Method: Appium::Android#text

Defined in:
lib/appium_lib/android/element/text.rb

#text(value) ⇒ TextView

Find the first TextView that contains value or by index. If int then the TextView at that index is returned.

Parameters:

  • the value to find.

Returns:



25
26
27
28
29
# File 'lib/appium_lib/android/element/text.rb', line 25

def text(value)
  return ele_index TEXT_VIEW, value if value.is_a? Numeric

  complex_find_contains TEXT_VIEW, value
end