vendor/bundle/gems/appium_lib-9.16.0/lib/appium_lib/ios/element/textfield.rb
# Find the first TextField that contains value or by index.
# Note: Uses XPath
# @param value [String, Integer] the text to match exactly.
# If int then the TextField at that index is returned.
# @return [TextField]
Find the first TextField that contains value or by index.
Find the first TextField that contains value or by index .
def textfield(value)
      if value.is_a? Numeric
        index = value
        raise "#{index} is not a valid index. Must be >= 1" if index <= 0
        index -= 1 
        result = eles_by_json(_textfield_visible)[index]
        raise _no_such_element if result.nil?
        return result
      end
      ele_by_json _textfield_contains_string value
    end
def textfield ( value ) if value . is_a? Numeric index = value raise "#{index} is not a valid index. Must be >= 1" if index <= 0 index -= 1 result = eles_by_json ( _textfield_visible ) [ index ] raise _no_such_element if result . nil? return result end ele_by_json _textfield_contains_string value end
Find the first TextField that contains value or by index.
Find the first TextField that contains value or by index .
# eles_by_json and _textfields_with_predicate is 0 indexed.
None
TextField
value
the text to match exactly. If int then the TextField at that index is returned.
the text to match exactly . If int then the TextField at that index is returned .