Sha256: 5c178cf0ea1457ed010efd271d794e9d4aa686a82173ae4e8a61c27fd6355011
Contents?: true
Size: 942 Bytes
Versions: 1
Compression:
Stored size: 942 Bytes
Contents
module Appium module Ios module Xcuitest class << self # @!method ios_class_chain_find # Only for XCUITest(WebDriverAgent) # find_element/s can be used with a [class chain]( https://github.com/facebook/WebDriverAgent/wiki/Queries) # # ```ruby # # select the third child button of the first child window element # find_elements :class_chain, 'XCUIElementTypeWindow/XCUIElementTypeButton[3]' # # select all the children windows # find_elements :class_chain, 'XCUIElementTypeWindow' # # select the second last child of the second child window # find_elements :class_chain, 'XCUIElementTypeWindow[2]/XCUIElementTypeAny[-2]' # ``` def extended(_mod) ::Appium::Driver::SearchContext::FINDERS[:class_chain] = '-ios class chain' end end end end # module Ios end # module Appium
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appium_lib-9.6.0 | lib/appium_lib/ios/xcuitest/mobile_methods.rb |