Sha256: 42f4b510ce1e02a820f3530a936ec7c63bfe08e3b03be6deee2dff7865f84a52
Contents?: true
Size: 1.65 KB
Versions: 2
Compression:
Stored size: 1.65 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
appium_lib-2.1.0 | lib/appium_lib/android/element/generic.rb |
appium_lib-2.0.0 | lib/appium_lib/android/element/generic.rb |