Sha256: 95d992470d6f7f33604eb68cc44017f9a4ba2d2dcec163001c976663d7f6c090

Contents?: true

Size: 1.5 KB

Versions: 1

Compression:

Stored size: 1.5 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 s_text value
      return ele_index UIAStaticText, value if value.is_a? Numeric
      xpath_visible_contains UIAStaticText, value
    end

    # Find all UIAStaticText containing value.
    # @param value [String] the value to search for
    # @return [Array<UIAStaticText>]
    def s_texts value
      xpaths_visible_contains UIAStaticText, value
    end

    # Find the first UIAStaticText.
    # @return [UIAStaticText]
    def first_s_text
      first_ele UIAStaticText
    end

    # Find the last UIAStaticText.
    # @return [UIAStaticText]
    def last_s_text
      last_ele UIAStaticText
    end

    # Find the first UIAStaticText that exactly matches value.
    # @param value [String] the value to match exactly
    # @return [UIAStaticText]
    def s_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 s_texts_exact value
      xpaths_visible_exact UIAStaticText, value
    end

    # Find all UIAStaticTexts.
    # @return [Array<UIAStaticText>]
    def e_s_texts
      tags UIAStaticText
    end
  end # module Ios
end # module Appium

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appium_lib-1.0.0 lib/appium_lib/ios/element/text.rb