mirror of
https://github.com/appium/appium.git
synced 2026-10-26 02:29:38 +08:00
ec72948de299faffb8647f9a08e0ee331bce4d3e
* add -image locator strategy and related logic * use appium-support jimp helper * handle find multiple elements by image * update staleness check variable name * ensure that a settings object always exists so we can rely on global settings always existing too * only fix template size if user requests it in settings * add note about implicit wait error handling * only automatically update image element position if user turns on an appropriate setting * add setting to control whether we check for image element staleness * add setting to determine the image element tap strategy (w3c or mjsonwp) * prefer single quotes * add setting to turn off screenshot resizing if not desired * add docstrings (except for cache class which we may not keep) * address additional review comments * add better jsdoc arg info * use lru-cache npm package instead of rolling our own * use new versino of appium-support * make sure the lru cache is checking element size correctly * give better names and tighten up logic around image el tap strategies * add some unit tests for image elements * ensure DeviceSettings has a default no-op update method * check that driver implements action strategies and fall back / throw as appropriate * finish out image element unit tests * have basedriver set noop onSettingsUpdate rather than doing it in DeviceSettings * move route avoidance detection from protocol to driver * handle proxying actions to downstream drivers during image tap * tighten up logic for deciding whether to proxy based on presence of image element * add find by image specs and fix issues that arose in the process * clean up regexes * don't try to be smart and proxy actions for drivers; let them set it up themselves to support image elements * change default match threshold based on experimentation * export which settings are handled by basedriver so downstream drivers can utilize this information * make sure to include a duration for the initial pointerMove action * add docstring to proxyRouteIsAvoided
appium-base-driver
This is the parent class that all appium drivers inherit from, along with a collection of globally-used Appium driver utilities. Each utility is documented in its own README in the code:
- BaseDriver
- The Appium Express Server
- The Mobile JSON Wire Protocol Encapsulation
- The JSONWP Proxy Library
- The JSONWP Status Library
Note: Issue tracking for this repo has been disabled. Please use the main Appium issue tracker instead.
Watch
gulp
Test
gulp once
Description
Cross-platform automation framework for all kinds of apps, built on top of the W3C WebDriver protocol
357 MiB
Languages
TypeScript
94%
JavaScript
5.1%
HTML
0.8%