304 Commits
Author SHA1 Message Date
Mykola Mokhnach f74d12dcc7 fix: Properly log request errors (#348) 2019-08-19 19:39:01 +02:00
Kazuaki Matsuo 58222d35f9 accept text for setValueImmediate and replaceValue as W3C (#347) 2019-08-16 10:20:53 +09:00
Mykola Mokhnach f64d116e2c Update response handling for proxyReqRes call (#344) 2019-08-10 19:29:51 +02:00
Alexis Gauthiez 9c0931d28c Handle Content-Type with parameter (#341) 2019-08-05 21:31:19 +02:00
Isaac A. Murchie 4bcd9c76fb Allow CORS for receiving async responses (#342) 2019-08-02 06:51:43 -04:00
Mykola Mokhnach 2039cebb03 Add protocol conversion for setFrame call (#340) 2019-07-30 14:30:36 +02:00
Mykola Mokhnach 4472331cc0 Improve the logic of proxyReqRes method (#337) 2019-07-19 20:03:12 +02:00
Mykola Mokhnach ed16a689d3 Update the logic that determines the session protocol (#336) 2019-07-18 19:15:14 +02:00
Mykola Mokhnach f1dd550eeb Add a workaround to POST /window W3C call (#335) 2019-07-18 07:00:00 +02:00
Bruno Alassia 3efdad8cb9 feat: Add parseCapsArray to base driver (#333) 2019-07-17 09:41:01 -07:00
Mykola Mokhnach 70fa8319f9 Optimize memory usage by proxy class (#334) 2019-07-03 22:41:00 +02: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
Dan-Maor b7b0a72b24 added keepalive option to JWProxy (#325) 2019-05-13 08:24:22 -04:00
Isaac A. Murchie b188ee9b20 Only get message from error (#324) 2019-05-07 16:37:12 -04:00
Kazuaki Matsuo 25ac169436 fix handling 0 in gsmSignal (#321)
* fix handling 0 in gsmSignal

* use hasValue
2019-05-01 01:43:07 +09:00
Isaac A. Murchie d214a0d1f2 Be more explicit about unrecognized caps (#317) 2019-04-09 13:02:46 -04:00
Dan Graham 6416438405 fix: Make proxy convert /property to /attribute (#311) 2019-04-08 11:08:54 -07: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 2fd5db2a34 add some logging to help follow proxy protocol translation logic 2019-04-04 07:53:31 -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
Khanh Do 757e029fad Fixed typo signalStrength (#308)
* Fixed typo signalStrength

* Update hash

* Added backward-compatible

* Updated hash & fixed unit test
2019-03-06 23:20:11 +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 0c8ef9391f Fix /actions body while doing protocol translation (#302) 2019-02-14 12:58:58 -08:00
Mykola Mokhnach 6288fb2784 Address the case where setValue contains non-specced stuff (#299) 2019-01-29 15:55:05 +01:00
Mykola Mokhnach a969967a26 Apply command timeout only if queuing is enabled (#298) 2019-01-28 20:04:39 +01:00
Mykola Mokhnach 7b163dcb4d Handle setValue API call conversion between protocols (#297) 2019-01-27 08:37:45 +01:00
Jonathan Lipps 521229e36c add user-agent to list of cors headers (#296) 2019-01-08 11:45:56 -08:00
greenkeeper[bot] 4eab674f92 Update eslint-config-appium to the latest version 🚀 (#295)
* chore(package): update eslint-config-appium to version 4.0.1

* chore: fix linting
2019-01-07 13:11:57 -06:00
Kazuaki Matsuo a98f22607e add POST for system_time in order to set payload (#294) 2019-01-07 09:26:10 +01:00
Mykola Mokhnach fcacb0205d Tune the list of allowed headers for CORS (#293) 2018-12-28 22:55:43 +01:00
Mykola Mokhnach ee17aef91c Fix timeout arguments conversion (#292) 2018-12-27 19:26:04 +01:00
Jonathan Lipps 8d699e0359 rename the jsonwp proxy logger so it's less confusing in the logs (#291) 2018-12-10 15:00:59 -08:00
Dan Graham 644208fe60 Copy W3C/Element keys instead of renaming them (#290) 2018-12-10 13:24:36 -08:00
Mykola Mokhnach df80b7cd2b Make sure the app is not cleaned up if relative path is provided (#289) 2018-12-04 18:07:52 +01:00
Mykola Mokhnach 06094f2500 Consider getting file extension from the url if response headers are not useful (#288) 2018-11-30 18:14:30 +01:00
Dan Graham 6f565760df Do not use static yet. Still experimental. (#286) 2018-11-22 13:51:01 -08:00
Jonathan Lipps f66dadcd6b make allowing CORS conditional (#285)
* make allowing CORS conditional
It turns out blindly allowing CORS could be a security hazard (who knew)
See https://github.com/w3c/webdriver/pull/1362 for the conversation that led to this realization.
This change makes the cross domain middleware conditional (defaulting to the current behavior).
This way Appium can pass in 'false' based on a flag, for better server security.

* actually include function parameter we can use from appium
2018-11-21 16:46:53 -08:00
greenkeeper[bot] 4291f7cef7 Update lru-cache to the latest version 🚀 (#284)
* fix(package): update lru-cache to version 5.0.0

* Fix call to LRU
2018-11-21 08:14:07 -05:00
Jonathan Lipps f86b4c5685 allow correct downloading of zipped apps without content type header (#282) 2018-11-14 07:55:42 -08:00
Mykola Mokhnach cf0e95baf8 Automatically fix relative application paths (#276) 2018-11-02 10:02:20 +01:00
Mykola Mokhnach 3141e831cb Properly synchronize applications caching (#274) 2018-10-22 16:10:35 +02:00
Mykola Mokhnach 9657712c90 Remove samba support (#273) 2018-10-19 15:43:16 -07:00