137 Commits
Author SHA1 Message Date
Dan Graham 028ac1563c fix: allow prefixed standard capabilities (#425)
* fix: allow prefixed standard capabilities

* PR Fix

* Add test for duplicates
2020-08-19 21:16:30 -07:00
Mykola Mokhnach d946ba1846 fix: Enforce UTF-8 encoding on extracted file names for .ipa archives (#419) 2020-07-05 12:47:14 +02:00
Mykola Mokhnach 3566c7772d fix: Make sure getLogTypes returns a promise (#414) 2020-05-28 07:44:15 +02:00
Mykola Mokhnach f4a20fbe8b chore: Tune the target folder name for an extracted app 2020-05-26 08:27:09 +02:00
Mykola Mokhnach faf0fb2a7c refactor: Move common constants to a separate file to avoid unnecessary cross-imports (#411) 2020-05-20 20:06:04 +02:00
Mykola Mokhnach 4b735996b2 chore: Switch to axios in App download (#407) 2020-05-04 07:24:52 +02:00
Isaac A. Murchie d396dbf823 chore: fix linting issues (#403)
* chore: fix linting issues

* fix: address review
2020-03-31 15:43:13 -04:00
Mykola Mokhnach c7e3a4b072 feat: Consider the content of Cache-Control header for application caching (#397) 2020-03-26 14:42:24 +01:00
Kazuaki Matsuo d8f3c83f0c feat: add score attribute for image element (#396)
* feat: add score

* add doc

* bump support

* fix docstring
2020-03-22 00:40:01 +09:00
Mykola Mokhnach 9c6f9b6dde chore: Use file name sanitizer imported from appium-support (#394) 2020-03-18 20:29:31 +01:00
jsa34 6e3b87aed6 fix: Add button to actions payload (#395) 2020-03-18 20:29:16 +01:00
Mykola Mokhnach 33d4b189ec refactor: Simplify the logic of unzipApp helper (#392) 2020-03-16 14:59:28 +01:00
Mykola Mokhnach 77a03506a6 chore: Add width/height verification to avoid OOM on image resize (#393) 2020-03-16 14:59:01 +01:00
Mykola Mokhnach d0ac39d8fc chore: Import uuid from appium-suuport (#391) 2020-03-14 07:28:04 +01:00
Isaac A. Murchie e230434d14 refactor: use util.pluralize (#386) 2020-02-07 10:23:10 -05:00
Isaac A. Murchie a8e47a8c3d refactor: just a little more visibility into unprefixed caps (#381) 2020-01-06 12:38:24 -05:00
Mykola Mokhnach a6a8ece782 chore: Tune logging for applications cache items disposal (#380) 2020-01-04 22:40:32 +01:00
Isaac A. Murchie 8624a8061f refactor: move to new timing API (#377) 2019-12-19 11:28:28 -05:00
Mykola Mokhnach 87a69337bb chore: Import rimrafSync from appium-support (#376) 2019-12-17 17:39:42 +01:00
Mykola Mokhnach 29fcd5d5c1 fix: Perform synchronous removal of applications cache (#375) 2019-12-16 18:12:29 +01:00
Mykola Mokhnach 0183e4d9b3 refactor: Change the applications caching logic (#374) 2019-12-13 20:15:24 +01:00
Mykola Mokhnach 4e47102f56 refactor: Change the setting update validation, so we don't print unnecessary warnings (#372) 2019-12-09 15:58:41 +01:00
Isaac A. Murchie 3479210e3d fix: when parsing cap array, pass array through (#373) 2019-12-07 11:36:22 -06:00
Mykola Mokhnach da0f5f3ed0 fix: make sure the listener gets removed after the command executor is completed (#371) 2019-11-26 21:15:29 +01:00
Mykola Mokhnach 1931e778ad refactor: Prefer event emitting to promises cancelation (#370)
BREAKING CHANGE: The current refactoring is breaking and changes `onUnexpectedShutdown` property to a function, which accepts a handler that is invoked by the driver when it gets shut down unexpectedly
2019-11-25 19:01:38 +01:00
Kazuaki Matsuo 260af285ac feat: add filtering log events with type (related to #365) (#368)
* add filtering with type

* use reduce, add converting to array

* make anonymous
2019-11-13 16:44:36 +09:00
Jonathan Lipps 09a7bf81c9 feat: add ability to retrieve log events as a new api route (#365) 2019-11-05 16:38:30 -08:00
Jonathan Lipps e434762c31 feat: add new route to allow logging of custom events (#364) 2019-11-04 19:56:31 -08:00
Mykola Mokhnach e9eb77f74e fix: Make device name non required (#363) 2019-10-19 21:21:38 +02:00
Mykola Mokhnach 753ef55cec refactor: Reuse walkDir implementation from appium-support module (#361) 2019-10-17 14:58:46 +02:00
Mykola Mokhnach 445b180f77 refactor: Replace custom commands queue implementation with async lock (#362) 2019-10-16 18:34:52 +02:00
Isaac A. Murchie da44da41dd fix: remove redundant log line on cached app found (#354) 2019-09-04 13:46:22 -04:00
Jonathan Lipps cc8b879da2 feat: stop hardcoding /wd/hub and make route prefix configurable [BREAKING CHANGE] (#346) 2019-08-27 09:23:10 -07:00
Mykola Mokhnach fc24958bbb chore: Export isStandardCap method (#349) 2019-08-21 12:48:20 +02:00
Alexis Gauthiez 9c0931d28c Handle Content-Type with parameter (#341) 2019-08-05 21:31:19 +02:00
Bruno Alassia 3efdad8cb9 feat: Add parseCapsArray to base driver (#333) 2019-07-17 09:41:01 -07:00
Jonathan Lipps 23d6ecf949 Add endpoint that receives a webdriver script for batch command execution (#328)
* add executeDriverScript route, command, tests

* allow driver scripts to write and collect console logs

* ensure driver script protocol is set to same protocol as driver, and also includes all appium commands

* implement isFeatureEnabled to check for insecure feature

* add tests for isFeatureEnabled

* update feature flag name to match style of other flags

* add ensureFeatureEnabled method for use by other drivers

* move driver script execution into a child process so we can kill it if necessary

* use this.opts.address instead of this.opts.host

* ensure driver script timeout is a number in the child proc as well

* ensure we get webdriverio without issues
2019-06-25 12:12:27 -07:00
Siddartha Pradhan 69dde698d6 Better message for creating session with W3C (#331) 2019-06-17 20:25:58 +02:00
Kazuaki Matsuo e3caf43337 add getting result image by find by image (#327)
* add getMatchedImageResult and return the result if it is true

* add tests

* tweak error case
2019-05-29 13:00:17 +09:00
Isaac A. Murchie d214a0d1f2 Be more explicit about unrecognized caps (#317) 2019-04-09 13:02:46 -04:00
Mykola Mokhnach 73b69f2ef9 Use proper Error object when throwing download failures (#316) 2019-04-08 10:36:08 -07:00
Jonathan Lipps 98e11b68e4 factor out image element registration to helper function (#312)
...so the function can be used by other drivers / plugins
2019-04-08 09:05:50 -07:00
Jonathan Lipps 009602ce56 add isArray to the cap validation strategies 2019-04-04 07:52:40 -07:00
Isaac A. Murchie b0d7e2e77b Update bluebird (#310)
* Upgrade bluebird

* Remove catch for CancellationError

* Make image command cancellable too
2019-03-26 15:58:11 -04:00
Isaac A. Murchie 5b12eebcf0 Add function names (#309) 2019-03-21 14:38:22 -04:00
Kazuaki Matsuo b38ef751f4 Fix template scale in find element by image (#307)
* add imageTemplateDefaultScale to scale arbitrary scale every time by default

* put all of template scaling into one method

* increase test cases to cover all situations

* define gnoreDefaultImageTemplateScale for click

* add a comment

* tweak comments

* fix typo, default value, docstring

* fix review

* fix ratio potential issue

* use const instead of let

* tweak a comment about scale factor

* remove _, tweak NaN comparison

* use math.round to compare two float

* rename float round constant

* fix typo

* update imgObj

* fix comments
2019-03-20 09:00:02 +09:00
Kazuaki Matsuo 3ec8e5675f Fix find element wrong coordinate (#306)
* fix wrong coordinate for android and ios

* separate fixScaleTemplateImage

* add fixScaleTemplateImage as a settings

* take care of both landscape and portrate

* rename to fixTemplateImageScale

* rename ratio to scale

* does not scale if the arg is non number

* rename preference name, default value

* remove comment outted lines

* add null filter as safer way
2019-03-01 10:23:09 +09:00
Isaac A. Murchie 5425101d0c Remove generic string->boolean warning (#305) 2019-02-20 10:03:19 -05:00
Mykola Mokhnach 8d7da14d06 Fix application type handling for urls with parameters (#303) 2019-02-18 19:13:44 +01:00
Mykola Mokhnach a969967a26 Apply command timeout only if queuing is enabled (#298) 2019-01-28 20:04:39 +01:00