Sha256: 48934299b5e926155c16f63cdb75fcea6cb14e490f0ac298365c21656d66ae07
Contents?: true
Size: 1.48 KB
Versions: 8
Compression:
Stored size: 1.48 KB
Contents
# UIAStaticText methods module Appium module Ios UIAStaticText = 'UIAStaticText' # Find the first UIAStaticText that contains value or by index. # @param value [String, Integer] the value to find. # If int then the UIAStaticText at that index is returned. # @return [UIAStaticText] def text value return ele_index UIAStaticText, value if value.is_a? Numeric xpath_visible_contains UIAStaticText, value end # Find all UIAStaticText containing value. # If value is omitted, all UIAStaticTexts are returned # @param value [String] the value to search for # @return [Array<UIAStaticText>] def texts value=false return tags UIAStaticText unless value xpaths_visible_contains UIAStaticText, value end # Find the first UIAStaticText. # @return [UIAStaticText] def first_text first_ele UIAStaticText end # Find the last UIAStaticText. # @return [UIAStaticText] def last_text last_ele UIAStaticText end # Find the first UIAStaticText that exactly matches value. # @param value [String] the value to match exactly # @return [UIAStaticText] def text_exact value xpath_visible_exact UIAStaticText, value end # Find all UIAStaticTexts that exactly match value. # @param value [String] the value to match exactly # @return [Array<UIAStaticText>] def texts_exact value xpaths_visible_exact UIAStaticText, value end end # module Ios end # module Appium
Version data entries
8 entries across 8 versions & 1 rubygems