File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,27 @@ els = self.driver.find_elements_by_ios_predicate('wdValue == "SearchBar" AND isW
175
175
self.assertIsInstance(els, list)
176
176
```
177
177
178
+
179
+ ### Finding elements by iOS class chain
180
+
181
+ **This method is only for [XCUITest driver](https://github.com/appium/appium-xcuitest-driver)**
182
+
183
+ This method allows finding elements using iOS class chain. The methods take
184
+ a string in the format of a class chain, including element type.
185
+
186
+ Adds the methods
187
+ `driver.find_element_by_ios_class_chain` and `find_elements_by_ios_class_chain`.
188
+
189
+ ```python
190
+ el = self.driver.find_element_by_ios_class_chain(' XCUIElementTypeWindow/XCUIElementTypeButton[3]' )
191
+ self.assertIsNotNone(el)
192
+ ```
193
+
194
+ ```python
195
+ els = self.driver.find_elements_by_ios_class_chain(' XCUIElementTypeWindow/XCUIElementTypeButton' )
196
+ self.assertIsInstance(els, list)
197
+ ```
198
+
178
199
### Finding elements by Accessibility ID
179
200
180
201
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