-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: added support for childOf selector * added support to find element from specific ViewHierarchy * every childOf element can have its own childOf element * we are recusilvely searching parent ViewHierarchy to find child from it * feat: return parentparentViewHierarchy.root in place of absolute root node in case of exception * fix: correct ViewHierarchy created from element returned * refactor: pr comments resolved * formatting issues fixed, * added viewHierarchy as a parameter to findElementWithTimeout and passes its value as null for existing support * removed findElementFromViewHierarchyWithTimeout as its functionality is added to findElementWithTimeout * fix: fixed missing viewHierarchy in parameter issue * test: added tests to test chilOf selector * fix: id typo in child_of_selector.yaml fixed * refactor: pr comments resolved * made viewviewHierarchy's default value null in findElementWithTimeout. * removed null from function call of findElementWithTimeout. * if parentViewHierarchy is present using it to create exceprion --------- Co-authored-by: Sandeep Joshi <[email protected]> Co-authored-by: Sandeep Kumar Joshi <[email protected]>
- Loading branch information
1 parent
743e62a
commit 4eca23f
Showing
7 changed files
with
115 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
maestro-test/src/test/resources/114_child_of_selector.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
appId: com.example.app | ||
--- | ||
- assertVisible: | ||
text: "child_id" | ||
childOf: | ||
text: "parent_id_1" | ||
- assertNotVisible: | ||
text: "child_id" | ||
childOf: | ||
text: "parent_id_3" |