We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5d1722f + 5c9d18f commit c13b877Copy full SHA for c13b877
lib/appium_lib/device/device.rb
@@ -35,6 +35,8 @@ def remove(id)
35
execute :remove, {}, :appId => id
36
end
37
38
+
39
+ extend_search_contexts
40
41
42
def add_endpoint_method(method, path)
@@ -98,6 +100,18 @@ def log_reimplemented_warning(method, path)
98
100
msg << " Raise an issue at http://github.com/appium/ruby_lib if so."
99
101
Appium::Logger.warn msg
102
103
104
+ # @!method accessiblity_id_find
105
+ # find_element/s with their accessibility_id
106
+ #
107
+ # ```ruby
108
+ # find_elements :accessibility_id, 'Animation'
109
+ # ```
110
+ def extend_search_contexts
111
+ Selenium::WebDriver::SearchContext.class_eval do
112
+ Selenium::WebDriver::SearchContext::FINDERS[:accessibility_id] = 'accessibility id'
113
+ end
114
115
116
117
0 commit comments