Skip to content

Commit

Permalink
Fix finder more
Browse files Browse the repository at this point in the history
  • Loading branch information
guulp authored Dec 22, 2023
1 parent 021fe32 commit 9c4aa98
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/io/github/ashwith/flutter/FlutterFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public FlutterElement byText(String input) {
public FlutterElement byAncestor(FlutterElement of, FlutterElement matching, boolean matchRoot, boolean firstMatchOnly) {
Map<String, Object> matchIdentifier = new HashMap<>(ImmutableMap.of(
FINDER_TYPE, "Ancestor",
"matchRoot", matchRoot,
"firstMatchOnly", firstMatchOnly
"matchRoot", Boolean.toString(matchRoot),
"firstMatchOnly", Boolean.toString(firstMatchOnly)
));
matchIdentifier.put("of", of.getRawMap());
matchIdentifier.put("matching", matching.getRawMap());
Expand All @@ -100,8 +100,8 @@ public FlutterElement byAncestor(FlutterElement of, FlutterElement matching, boo
public FlutterElement byDescendant(FlutterElement of, FlutterElement matching, boolean matchRoot, boolean firstMatchOnly) {
Map<String, Object> matchIdentifier = new HashMap<>(ImmutableMap.of(
FINDER_TYPE, "Descendant",
"matchRoot", matchRoot,
"firstMatchOnly", firstMatchOnly
"matchRoot", Boolean.toString(matchRoot),
"firstMatchOnly", Boolean.toString(firstMatchOnly)
));
matchIdentifier.put("of", of.getRawMap());
matchIdentifier.put("matching", matching.getRawMap());
Expand Down Expand Up @@ -139,4 +139,4 @@ public FlutterElement bySemanticsLabel(Pattern label) {
public FlutterElement pageBack() {
return new FlutterElement(ImmutableMap.of(FINDER_TYPE, "PageBack"));
}
}
}

0 comments on commit 9c4aa98

Please sign in to comment.