File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/main/java/io/appium/java_client/pagefactory Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,21 @@ There's a special array-style syntax for defining predicates in a Class Chain:
32
32
[`value < 0`]
33
33
```
34
34
35
+ #### Searching Descendents
36
+
37
+ If you replace the backticks (`) around a predicate with dollar signs ($), then
38
+ the Class Chain will match against the children, grandchildren, and other
39
+ descendents of each element.
40
+
41
+ ```
42
+ // Find a cell element with the label 'here'
43
+ XCUIElementTypeCell[`label == 'here'`]
44
+ // Find a cell element which contains SOMETHING ELSE that has the label 'here'
45
+ XCUIElementTypeCell[$label == 'here'$]
46
+ ```
47
+
48
+ #### Handling Quote Marks
49
+
35
50
Most of the time, you can treat pairs of single quotes or double quotes
36
51
interchangably. If you're searching with a string that contains quote marks,
37
52
though, you'll [ want to be careful] ( https://stackoverflow.com/q/14116217 ) .
You can’t perform that action at this time.
0 commit comments