Sha256: 2059e36b78392eca0b80e693b2b41e13c2affee5fb1f66e15be2054c0b386dc9
Contents?: true
Size: 930 Bytes
Versions: 5
Compression:
Stored size: 930 Bytes
Contents
# encoding: utf-8 # UIAStaticText methods # s_ prefix for static_text to avoid conflict with generic text methods. # Get an array of text texts. # @return [Array<String>] def s_texts find_eles_attr :text, :text end # Get an array of text elements. # @return [Array<Text>] def s_e_texts find_eles :text end # Get the first text element. # @return [Text] def s_first_text first_ele :text end # Get the last text element # @return [Text] def s_last_text last_ele :text end # Get the first element that includes text. # @param text [String, Integer] the text to find. If int then the text at that index is returned. # @return [Text] def s_text text return ele_index :text, text if text.is_a? Numeric find_ele_by_text_include :text, text end # Get the first textfield that matches text. # @param text [String] the text that the tag must match # @return [Text] def s_text_exact text find_ele_by_text :text, text end
Version data entries
5 entries across 5 versions & 1 rubygems