Sha256: f3d9ece1937d0f3c6f9861f14992bf2ea2b8b731728e8e5a559cc99ec5356e65
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
module Appium module Android EditText = 'android.widget.EditText' # Find the first EditText that contains value or by index. # @param value [String, Integer] the text to match exactly. # If int then the EditText at that index is returned. # @return [EditText] def textfield value return ele_index EditText, value if value.is_a? Numeric xpath_visible_contains EditText, value end # Find all EditTexts containing value. # @param value [String] the value to search for # @return [Array<EditText>] def textfields value xpaths_visible_contains EditText, value end # Find the first EditText. # @return [EditText] def first_textfield first_ele EditText end # Find the last EditText. # @return [EditText] def last_textfield last_ele EditText end # Find the first EditText that exactly matches value. # @param value [String] the value to match exactly # @return [EditText] def textfield_exact value xpath_visible_exact EditText, value end # Find all EditTexts that exactly match value. # @param value [String] the value to match exactly # @return [Array<EditText>] def textfields_exact value xpaths_visible_exact EditText, value end # Find all EditTexts. # @return [Array<EditText>] def e_textfields tags EditText end end # module Android end # module Appium
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appium_lib-1.0.0 | lib/appium_lib/android/element/textfield.rb |