File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,10 @@ driver.switch_to.context(context_name)
122
122
# ## Finding elements by iOS UIAutomation search
123
123
124
124
This allows elements in iOS applications to be found using recursive element
125
- search using the UIAutomation library. Adds the methods ` driver.find_element_by_ios_uiautomation`
125
+ search using the UIAutomation library. This method is supported on iOS devices
126
+ that still support UIAutomation, that is, versions which predate XCUITEST.
127
+
128
+ Adds the methods ` driver.find_element_by_ios_uiautomation`
126
129
and ` driver.find_elements_by_ios_uiautomation` .
127
130
128
131
` ` ` python
@@ -153,6 +156,25 @@ self.assertIsInstance(els, list)
153
156
```
154
157
155
158
159
+ ### Finding elements by iOS predicates
160
+
161
+ This method allows finding elements using iOS predicates. The methods take a
162
+ string in the format of a predicate, including element type and the value of
163
+ fields.
164
+
165
+ Adds the methods
166
+ `driver.find_element_by_ios_predicate` and `find_elements_by_ios_predicate`.
167
+
168
+ ```python
169
+ el = self.driver.find_element_by_ios_predicate(' wdName == " Buttons" ' )
170
+ self.assertIsNotNone(el)
171
+ ```
172
+
173
+ ```python
174
+ els = self.driver.find_elements_by_ios_predicate(' wdValue == " SearchBar" AND isWDDivisible == 1' )
175
+ self.assertIsInstance(els, list)
176
+ ```
177
+
156
178
### Finding elements by Accessibility ID
157
179
158
180
Allows for elements to be found using the "Accessibility ID". The methods take a
You can’t perform that action at this time.
0 commit comments