Sha256: 697b91867484f8dff5ffb62e13e798502dab6ae6adf12fc1872680c06b73be0b
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
module Appium module Ios module Xcuitest module SearchContext 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 Xcuitest end # module Ios end # module Appium
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appium_lib-9.6.1 | lib/appium_lib/ios/xcuitest/search_context.rb |