forked from clj-commons/etaoin
-
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.
API review: docstrings, arglists, publics
Did a sweep through the current Etaoin public API. Changes to public API can be seen as an addendum to clj-commons#430. Consistency - exposed as part of public API (were formerly private) - etaoin.api - get-element-value-el - get-element-property-el - get-element-css-el Maintainability - deleted - etaoin.api (used for pointer move action only, moved into fn) - default-duration - default-origin Maintainability - no longer exposed (now implementation details) My default was to make private, but because some are used from macros this did not always work. For those cases I just marked with :no-doc metadata: - etaoin.api - default-locator - dispatch-driver - find-elements* - format-date - get-pwd - join-path - locator-css - locator-xpath - make-screenshot-file-path - make-url - postmortem-handler - process-log - proxy-env - use-locator - with-exception - with-locator - etaoin.dev - build-request - group-requests - log->request - parse-json - parse-method - process-log - request? - try-parse-int - etaoin.ide.flow - all except for: run-ide-script - etaoin.ide.main - all except for: -main Updated docstrings focusing on: - what is returned when return is important - describing arguments - adjust/corrected markdown - linked to other fns via cljdoc wikilinks - linked to sections in user guide when it seemed helpful - added toc to etaoin.api ns docstring Arglists: - missing arglists explicitly added so that API docs will show proper usage (For def and defmulti) - renamed some arguments where I thought it would make usage clearer Redundant code: - there were some instances of defmethod where :safari and :firefox had identical code. Merged these to use existing internal defmethods macro to get rid of code duplication.
- Loading branch information
Showing
12 changed files
with
1,428 additions
and
1,095 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.