Jonathan Lipps ec72948de2 add -image locator strategy and related logic (#235)
* 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
2018-07-30 13:17:54 -07:00
2016-07-12 09:48:01 -07:00
2018-03-21 11:11:52 -04:00
2016-10-26 14:19:14 -07:00

appium-base-driver

NPM version Downloads Dependency Status devDependency Status

Build Status Coverage Status Greenkeeper badge

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:

Note: Issue tracking for this repo has been disabled. Please use the main Appium issue tracker instead.

Watch

gulp

Test

gulp once
S
Description
Cross-platform automation framework for all kinds of apps, built on top of the W3C WebDriver protocol
Readme Apache-2.0
357 MiB
Languages
TypeScript 94%
JavaScript 5.1%
HTML 0.8%