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

      ele_by_json_visible_contains static_text_class, value
    end
def text(value)
      return ele_index static_text_class, value if value.is_a? Numeric

      ele_by_json_visible_contains static_text_class, value
    end
Find the first UIAStaticText|XCUIElementTypeStaticText that contains value or by index.
 @param value [String, Integer] the value to find.
 If int then the UIAStaticText|XCUIElementTypeStaticText at that index is returned.
 @return [UIA_STATIC_TEXT|XCUIELEMENT_TYPE_STATIC_TEXT]