38 Commits
Author SHA1 Message Date
Mykola Mokhnach 1a91bec967 Support pre-W3C element screenshot endpoint (#154) 2017-12-15 16:03:06 -05:00
Dan Graham 090d94795a Add W3C /actions endpoint (#146) 2017-11-21 04:54:39 -08:00
Dan Graham 4d2a5bd000 w3c routes (#147)
* Add aliased W3C routes
* Implement getTimeouts command
* getTimeouts returns an object containing all the timeouts and their values as key-value pairings
* Added routeHandler too
* Added w3c routes
2017-11-21 04:54:39 -08:00
Dan Graham 308e560ca1 W3C Error Formatting (#145)
* Remember protocol requested in createSession
  * Also renamed 'processCaps' to 'processCapabilities'
  * Checks the parameters in 'createSession' and determines if it's W3C or MJSONWP
* Add W3C error format
  * Add W3C status codes to errors
  * When deciding error format to return in mjsonwp.js, check format and then return eitherJSONWP or W3C format
2017-11-21 04:54:39 -08:00
Stu Duffy 6bda0705b7 Small correction to URI scheme validation (#151) 2017-11-16 07:23:55 -05:00
Mykola Mokhnach 8481b9ac7c Add 'enabled' parameter to toggle_touch_id_enrollment endpoint (#130)
* Add 'enabled' parameter to toggle_touch_id_enrollment endpoint

* Update the hash
2017-08-16 14:35:52 -04:00
Isaac A. Murchie 01e9914b66 Update linting and add coverage (#131) 2017-08-15 08:53:47 -04:00
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
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
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
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
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
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
rkavalap 0e8b1d966e Increase length in _truncate for proxy requests for better debugging 2016-11-10 09:36:54 -08: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
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
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
Sravan Medrapu 5323a51a0e Refactored mjsonwp to throw error for non zero status codes 2016-07-12 12:44:05 +05:30
Isaac Murchie 7d1d2fae63 Begin adding W3C route alternatives 2016-07-06 08:15:58 -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 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