Method: Appium::Ios::Xcuitest::Element#text
- Defined in:
- lib/appium_lib/ios/xcuitest/element/text.rb
#text(value) ⇒ UIA_STATIC_TEXT|XCUIELEMENT_TYPE_STATIC_TEXT
Find the first UIAStaticText|XCUIElementTypeStaticText that contains value or by index. If int then the UIAStaticText|XCUIElementTypeStaticText at that index is returned.
31 32 33 34 35 |
# File 'lib/appium_lib/ios/xcuitest/element/text.rb', line 31 def text(value) return ele_index static_text_class, value if value.is_a? Numeric raise_error_if_no_element texts(value).first end |