Sha256: f229c92c31d1852d5b8a33913f6d9cd83c1dbf0efb8d2390e1974782d2089993
Contents?: true
Size: 1.66 KB
Versions: 1
Compression:
Stored size: 1.66 KB
Contents
module Appium module Android # Find the first element containing value # @param value [String] the value to search for # @return [Element] def find value xpath_visible_contains '*', value end # Find all elements containing value # @param value [String] the value to search for # @return [Array<Element>] def finds value xpaths_visible_contains '*', value end # Find the first element exactly matching value # @param value [String] the value to search for # @return [Element] def find_exact value xpath_visible_exact '*', value end # Find all elements exactly matching value # @param value [String] the value to search for # @return [Array<Element>] def finds_exact value xpaths_visible_exact '*', value end # Scroll to the first element containing target text or description. # @param text [String] the text to search for in the text value and content description # @return [Element] the element scrolled to def scroll_to text args = # textContains(text) [[3, text]], # descriptionContains(text) [[7, text]] complex_find mode: 'scroll', selectors: args end # Scroll to the first element with the exact target text or description. # @param text [String] the text to search for in the text value and content description # @return [Element] the element scrolled to def scroll_to_exact text args = # text(text) [[1, text]], # description(text) [[5, text]] complex_find mode: 'scroll', selectors: args 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/generic.rb |