Commit Graph
83 Commits
Author SHA1 Message Date
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
Jonathan Lipps d75bde2a0e add event timing framework to base driver 2017-03-03 13:41:02 -08: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 24842637b1 update hash 2017-02-01 22:44:45 +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 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
Isaac Murchie e1f1883363 Add capabilities to create session 2016-10-28 09:10:29 +02: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 Murchie 955bdda86e Fix server failure test 2016-09-09 08:48:39 -04: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
Rafael Chavez 3fc88e0ffd added rotation routes 2016-07-19 12:49:03 -07:00
Isaac Murchie 0df402b1b2 Add linting and pre-commit hooks 2016-07-12 09:48:01 -07:00
Isaac Murchie 2a7bcc1668 Add test for driver not throwing error 2016-07-12 07:50:45 -07:00
Isaac Murchie b883d8601b Add basic getStatus method 2016-07-08 09:21:29 -07:00
Isaac Murchie 7d1d2fae63 Begin adding W3C route alternatives 2016-07-06 08:15:58 -07:00
Isaac Murchie e44ed397f6 Add ability to manage delegated drivers 2016-07-01 09:15:33 -07:00
Isaac Murchie 6086ae0b29 Make sure the server is closed when we call close 2016-06-22 08:16:36 -07:00
Isaac Murchie 19c1680930 Allow data: scheme for protractor tests 2016-06-20 14:05:02 -07:00
rafael.chavez c3071eb9db status is not always successful. 2016-05-19 16:25:01 -07:00
Jonathan Lipps 0514c251cf code changes, es6ification, and tests for jsonwp-status 2016-05-06 08:42:28 -07:00
Jonathan Lipps fb1ce61f38 code updates for jwproxy merge 2016-05-06 08:42:28 -07:00
Jonathan Lipps ea45d22269 copy over initial jsonwp-proxy files 2016-05-06 08:42:28 -07:00
Jonathan Lipps 12c8145bc0 bring appium-express into basedriver 2016-05-05 17:25:08 -07:00
Jonathan Lipps 48113db62a merge node-mobile-json-wire protocol project into basedriver (and bump package to denote breaking changes) 2016-05-04 21:28:25 -07:00
Isaac Murchie 6ed1f31ccb Add timeouts methods 2016-04-13 18:00:23 -04:00
Isaac Murchie f7fd185f8b Parse number caps 2016-03-18 08:04:30 -07:00
Isaac Murchie 24cc2cdb61 Move fix caps function from appium driver 2016-03-16 15:07:39 -07:00
Jonathan Lipps d5e18eb5e6 allow null/undefined cap values for string types whose presence is not reuqired 2015-12-02 17:21:15 -08:00
Isaac Murchie ebaaea45d5 Update boolean cap validation 2015-12-01 15:14:24 -08:00
Isaac Murchie 8aa5fc3748 Allow booleans to be strings 2015-12-01 08:34:02 -08:00
Isaac Murchie b798ecf19f Remove error handling from proxy methods 2015-11-17 12:39:43 -08:00
Isaac Murchie 97f278fe08 Update protocol package 2015-11-17 12:20:19 -08:00
Isaac Murchie 1e56ab8542 Add proxy helpers 2015-11-03 10:14:16 -08:00
Isaac Murchie f4195229f9 Fix express import 2015-10-15 12:17:15 -07:00