143 Commits
Author SHA1 Message Date
Bruno Alassia 8cd54941a3 Add new endpoints (#129)
* add routes for new emulator methods

* add networkSpeed method

* update hash
2017-08-08 16:47:25 -04:00
Jonathan Lipps e2032ebeba warn when a setting does not exist (#127)
* commit npm 5 package-lock

* warn if someone attempts to set a setting which has no default (fix appium/appium#3585)
2017-07-19 07:36:16 -04:00
cool-firer f72c61c071 exchange deleteSession and curCommandCancellable (#126)
session should be closed firstly if some unexpected happens, so the following request can be responsed immediately.
2017-07-19 07:35:48 -04:00
Isaac A. Murchie 3bffc168b8 Allow downloaded app urls to have query strings (#125)
* Allow downloaded app urls to have query strings

* Readjust some of the work
2017-07-07 07:24:59 -04:00
Jonathan Lipps acd890bb20 fix bug in DeviceSettings where we could mutate external object 2017-06-15 14:35:33 -07:00
Isaac A. Murchie 190a896d9c Add route to get current package (#123) 2017-06-15 07:07:25 -04:00
Jonathan Lipps 1991379a00 allow both 'value' and 'text' params for setValue (#121)
* allow both 'value' and 'text' params for setValue

this introduces a 'makeArgs' option for the spec which allows handling of more complex scenarios.

* clarify some variable names and add fuller commentary
2017-05-30 11:13:17 -04:00
Mykola Mokhnach dd084953b8 Add warning message for erroneous responses to make debugging easier (#119) 2017-05-16 09:47:09 -07:00
Dan Graham 0bf5acbd52 Removed adm-zip (#118)
* Added a test for unzipFile (which uses adm-zip)
* Tested that it worked with adm-zip and then failed once adm-zip was taken out
* Replaced 'adm-zip' with zip.extractAllTo from appium-supprt
2017-04-26 17:55:46 -07:00
Dan Graham 9d1b2cedae Implemented capabilities spec (#117)
* Update  hash

* Add validateCapabilities and parseCapabilities

* Added merge capabilities

* Moved capabilities into it's own file

* Added capabilities as a possible required param

* Can pass desiredCapabilities or capabilities into createSession

* Remove 'required' desiredCapabilities

* desiredCapabilities isn't required any more because we can provide capabilities as well
* Will need to  update validation logic in 'driver.createSession' to do the validation there instead

* Code cleanup

* Skip presence constraint in parseCapabilities

* We don't need to check that items are present until after we've formed the matched capabilities

* Added validation function to routes

* Function 'validate' takes params as an arg and then returns a message if the validation fails
* Uses this to validate that either "capabilities" or "desiredCapabilities" was provided

* Renamed capabilities to caps

* Move caps required validator from process to parse

* Removed InvalidParametersError

* Update BadParametersError so that if a message is added as the 3rd argument it shows a different error message

* Made validation re-usable
2017-04-07 15:12:12 -07:00
Isaac A. Murchie 1a34f6b989 Fix casing on record screen endpoints (#115) 2017-03-29 13:00:15 -04:00
heeseon hwang 363fdacbf7 record the screen while testing (#114)
* record the screen while testing

* Update routes-specs.js
2017-03-23 07:31:18 -04:00
Dan Graham 684ca3621b Add toggle_touch_id_enrollment endpoint (#112)
* Add toggle_touch_id_enrollment endpoint

* Update  hash
2017-03-22 18:54:12 -04:00
Dan Cuellar 3b07636377 Make Mac an accepted platform 2017-03-16 09:22:27 +00:00
Jonathan Lipps 9a7c6de17d ensure we log events in a debug fashion at least 2017-03-03 14:37:38 -08:00
Jonathan Lipps d75bde2a0e add event timing framework to base driver 2017-03-03 13:41:02 -08:00
Mykola Mokhnach d5ffe5773a Add proxy method to verify whether it has a request in progress and to cancel active requests (#105) 2017-02-21 08:49:43 -05:00
Mykola Mokhnach a6e522d619 Add helper method for matching endpoints and method names to command names (#104) 2017-02-15 07:39:07 -05:00
Kazuaki MATSUO d62d336357 update required an optional parameters for getting performance 2017-02-01 08:47:49 +09:00
Jonathan Lipps 0ad8e49b8e error out if someone tries to use both fullReset and noReset together 2017-01-31 14:17:36 -08:00
Max Hawkins 4b62dac30b Default to application/json when no Content-Type is supplied
The webdriver spec specifies that requests where the method is POST
should be parsed as JSON (see https://www.w3.org/TR/webdriver/#processing-model step 6).

Appium is too restrictive. It only parses as JSON if the application/json
Content-Type is provided, making it incompatible with some Webdriver clients
that follow the spec but don't send a Content-Type header.

This commit makes Appium less restrictive by defaulting to the application/json
Content-Type if none is provided.
2017-01-21 14:46:11 -06:00
Isaac Murchie bb1f869ca9 Add configurable request timeout to proxy 2017-01-04 12:48:22 -05:00
Isaac A. Murchie eb5abb8878 Merge pull request #97 from appium/isaac-logger
Remove logger, and start using one from appium-support
2016-12-21 15:20:56 -05:00
Isaac Murchie 1de1af6b0c Remove logger, and start using one from appium-support 2016-12-20 12:55:23 -05:00
Isaac Murchie 65807af9fc Do not keep adding sessionId and id to optional parameters 2016-12-20 10:37:23 -05:00
Jonathan Lipps 55fa89153e Merge pull request #93 from appium/isaac-logger
Move appium-logger into base driver
2016-11-24 11:01:40 -08:00
Isaac Murchie d2c5caafd4 Move appium-logger into base driver 2016-11-23 09:15:38 -08:00
황희선 0fd67e4efb add apis to read capability data 2016-11-19 03:09:49 +09:00
Isaac A. Murchie f09b0eb2de Merge pull request #88 from midopa/fix-zip-urls
Fix handling non-ZIP files
2016-11-14 14:41:21 -05:00
Sam Park 71be0dad1a Add routes and docs for device commands
For: https://github.com/appium/appium-android-driver/pull/192
2016-11-14 10:50:29 -08:00
Sam Park 40a9538321 Fix handling non-ZIP files
APK files were not being installed because they were being written to a file without an "apk" extension. So added back the appExt suffix logic. If it's given and the downloaded file is not a ZIP file, then everything behaves normally. If the downloaded file is a ZIP file, then regardless of what we thought initially, it will be unzipped and placed into another temp location.
2016-11-11 23:21:02 -08:00
rkavalap 0e8b1d966e Increase length in _truncate for proxy requests for better debugging 2016-11-10 09:36:54 -08:00
Sam Park 44650f926a Handle zip files from URLs
Sometimes you can't tell the file type from a URL. Let URL minimizers or
if there are parameters, etc. So just check the content type of the
response. If it's a zip file, ensure it gets unzipped in subsequent
logic. Otherwise, assume it's an app file.
2016-11-05 13:01:25 -07:00
Isaac A. Murchie d20dfc9687 Merge pull request #84 from appium/isaac-tmpdir
Make use of os.tmpdir instead of os.tmpDir
2016-10-31 18:55:47 -07:00
Isaac Murchie 5f84cc8cf1 Make use of os.tmpdir instead of os.tmpDir 2016-10-31 12:07:03 -07:00
Isaac Murchie e1f1883363 Add capabilities to create session 2016-10-28 09:10:29 +02:00
Isaac Murchie 6f289078cd Fix truncate length 2016-10-19 12:18:48 -04:00
Isaac Murchie 76efb2428f Proper length handling 2016-10-17 14:04:44 -04:00
Isaac Murchie 6be9493240 Extent the length of the proxy req/res we log 2016-10-14 09:13:57 -04:00
Isaac Murchie 3368192456 Use keep-alive connection for proxying 2016-09-30 15:17:53 -04:00
Isaac A. Murchie 7af4333f9e Merge pull request #75 from yaphatak/copyfromwindowsshare
Copy from WindowsNetworkShare
2016-09-16 12:35:50 -04:00
Yatin Phatak 9b746ae23a Copy from WindowsNetworkShare
addressing comments

calling mountNetwrokShare once

addressing comments

addressing comments
2016-09-14 13:24:11 -07:00
Isaac Murchie 931ea9f06d Give a long timeout on proxy 2016-09-14 12:31:34 -04:00
Ali Kia 725d12ec2d adding fingerprint to routes 2016-09-12 10:32:09 +08:00
Isaac A. Murchie 8bd05f3e76 Merge pull request #73 from wfanforever/master
adding rect routes
2016-09-09 14:05:10 -04:00
Wen Fan d4e5b45544 adding new endpoint 2016-09-09 10:21:20 -07:00
Isaac A. Murchie c6062c559c Merge pull request #66 from sravanmedarapu/master
Implemented throwing ProxyRequestError
2016-09-09 08:33:48 -04:00
Sravan Medrapu c5026bf227 Implemented throwing ProxyRequestError
ProxyRequestError will be thrown for all unsuccessfull proxy requests, ProxyRequestError will contain the actual error route cause information(`jsonwp`)
2016-09-09 16:17:24 +05:30
Isaac Murchie 7e9403c488 Allow guinea pig delay to be in query 2016-08-11 08:59:03 -07:00
Rafael Chavez 3fc88e0ffd added rotation routes 2016-07-19 12:49:03 -07:00