forked from appium/appium-inspector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: generate suggested locators upon selecting element instead of up…
…on retrieving source (appium#1389) * add slight caching for retrieved locator map * remove unused third param for getOptimalXPath calls * add comment to point to next actions * WIP moving xpath calc to getLocators * chore: remove unnecessary filter call * chore: move findElementByPath to utils * chore: remove unused state vars * chore: revert to object for getLocators response * chore: fix getLocators parameter * chore: move getLocators to utils file * start work on the complex locator detection * chore: rename various source variables for clarity * chore: move DOM conversion from areAttrAndValueUnique * chore: add function to retrieve DOM node using path * chore: update docstrings * chore: save DOMParser in a const * fix: calculate optimal xpath only on demand * chore: do not pass local consts as parameters * fix: enable predicate string for XCUIElementTypeApplication * chore: adjust comments for getOptimalClassChain * fix: calculate optimal class chain/predicate only on demand * chore: define NATIVE_APP only once * chore: update more var names * chore: remove dedicated isIOS variable * fix: skip accessibility id strategy in webviews * chore: simplify childNodesOf * chore: lint & format * test: update unit tests * test: add tests for accessibility id and class name * test: add tests for path lookup methods * test: add tests for class chain/predicate + format * chore: split utils file * chore: address review comments * chore: update typedefs * chore: update typedef again
- Loading branch information
Showing
20 changed files
with
1,258 additions
and
1,073 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
Oops, something went wrong.