You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
els =self.driver.find_elements_by_ios_uiautomation('elements()')
105
+
self.assertIsInstance(els, list)
106
+
```
107
+
84
108
85
109
### Finding elements by Android UIAutomator search
86
110
87
111
This allows elements in an Android application to be found using recursive element
88
112
search using the UIAutomator library. Adds the methods `driver.find_element_by_android_uiautomator`
89
113
and `driver.find_elements_by_android_uiautomator`.
114
+
115
+
```python
116
+
el =self.driver.find_element_by_android_uiautomator('new UiSelector().description("Animation")')
117
+
self.assertIsNotNone(el)
118
+
```
119
+
120
+
```python
121
+
els =self.driver.find_elements_by_android_uiautomator('new UiSelector().clickable(true)')
122
+
self.assertIsInstance(els, list)
123
+
```
124
+
125
+
126
+
### Finding elements by Accessibility ID
127
+
128
+
Allows for elements to be found using the "Accessibility ID". The methods take a
129
+
string representing the accessibility id or label attached to a given element, e.g., for iOS the accessibility identifier and for Android the content-description. Adds the methods
130
+
`driver.find_element_by_accessibility_id` and `find_elements_by_accessibility_id`.
131
+
132
+
```python
133
+
el =self.driver.find_element_by_accessibility_id('Animation')
134
+
self.assertIsNotNone(el)
135
+
```
136
+
137
+
```python
138
+
els =self.driver.find_elements_by_accessibility_id('Animation')
0 commit comments