Commit Graph

524 Commits

Author SHA1 Message Date
Dan Graham 373c62de4d Go back to using nodeca/argparse (#10205) 2018-02-16 08:14:03 -05:00
Isaac Murchie 9c994e85c9 Bump appium-ios-driver to 2.0 2018-02-15 08:37:03 -05:00
Dan Graham 9f9f132649 Use appium argparse (#10191) 2018-02-13 10:54:58 -08:00
Isaac A. Murchie 348eacf3d1 Move to minimum node 6 (#10180) 2018-02-12 15:03:11 -05:00
Isaac A. Murchie be2acb207c Update Contributing Docs (#10165)
* Update contributing docs

* Fix some links and examples

* Address comments
2018-02-12 07:58:15 -05:00
Isaac A. Murchie 77fe650dd6 Update android driver version (#10163) 2018-02-08 16:02:28 -05:00
Mykola Mokhnach 8093a35121 Use uia2 backend by default if platform version is greater or equal to 6 (#10073)
* Use uia2 backend by default if platform version is greater or equal to 6

* Allow to force set the backend to UIA1

* Add unit tests

* Tune the log message

* Print a warning message instead of changing the driver type

* Remove redundant imports

* Tune the message

* Address PR comments
2018-01-29 17:14:52 +01:00
Dan Graham 47e8955bf4 Test content-type in errors (#10077) 2018-01-25 13:10:45 -08:00
Isaac Murchie 086c8c3ddd Prepare for v1.8.0-beta 2018-01-17 10:10:53 -05:00
Dan Graham f27d6565d0 W3C Full Implementation (#9972)
* Refactored code from createSession into parseCapsForInnerDriver()
  * parseCapsForInnerDriver() takes jsonwp and w3c capabilities and translates them into objects that can be accepted by the "inner driver" that it proxies to
  * It adds defaultCapabilities to capabilities.firstMatch and jsonwp caps
  * It finds matching caps for W3C and then creates a new W3C capabilities object that only has the valid matching one
  * After parseCapsForInnerDriver() parses the JSONWP and W3C it passes the results along to the inner-driver and it's up to the inner driver to create a W3C or JSONWP session

* Add validation to W3C session creation
  * Call to 'processCapabilities' does validation now so that it will match an object that passes Appium's validation rules (e.g.: platformName, deviceName required; automation name must be valid, etc...)
  * Test that it accepts combo of W3C and JSONWP capabilities
  * Test that it rejects invalid W3C capabilities with 400 error
  * Also added 'createSession' unit test
  * Stripped out unnecessary async/await from driver-specs

* Insert Appium prefixes into W3C caps
  * Previously, Appium just took the W3C capabilities, processed them into a caps object and 
  passed them into the inner driver as

  ```
  {
    alwaysMatch: parsedCaps,
    firstMatch: [{}],
  }
  ```

  * The problem with this is that all of the parsedCaps were unprefixed, and therefore the Inner 
  Driver complained about it

  * Now, it takes the parsedCaps and calls a new method called 'insertAppiumPrefixes' on the 
  parsed caps like this:

  ```
  {
    alwaysMatch: {...insertAppiumPrefixes(parsedCaps)},
    firstMatch: [{}],
  }
  ```

  * Refactored tests that were affected by this change
  * Added tests to test insertAppiumPrefixes function
2018-01-16 10:26:44 -08:00
Jonathan Lipps 48eabd2831 include new uiautomator2 driver 1.x 2018-01-15 12:56:48 -08:00
Dan Graham ed1161f300 Pin fake-driver to 0.2 (#9889) 2018-01-02 15:43:03 -05:00
Isaac A. Murchie 524cee0796 Add e2e-tests to travis config (#9841) 2017-12-27 07:34:08 -05:00
Jonathan Lipps 74cb15ebdc ensure we get 1.x versions of windows driver (#9837) 2017-12-22 07:08:12 -05:00
Isaac Murchie 53431658fb Prepare for 1.7.2-beta4 release 2017-12-18 14:45:45 -05:00
Isaac Murchie 1ac29f9236 Prepare for 1.7.2-beta3 release 2017-12-15 16:33:10 -05:00
Isaac Murchie 136ea4d015 Release 1.7.2-beta2 2017-11-19 11:33:32 -05:00
Isaac Murchie 6515c2bf7e Release 1.7.2-beta 2017-10-03 15:51:04 -04:00
dan@saucelabs.com 5c420a908a Prepare for v1.7.1 2017-09-26 08:58:54 -07:00
Dan Graham 5b36e303a7 Render commands markdown using YML (#9260)
* Render commands markdown using YML

* Made directory 'commands-yml' which contains:
  * .babelrc to transpile the scripts
  * parse.js which renders the markdown
  * template.md which is a handlebars template that the yml gets passed to
  * validator.js which validates the yml data
* The rendering works by translating the yml to js, validating the js and then passing the data to template.md (which uses handlebars)
* The directory `/commands-yml/commands` gets rendered and then copied to `/docs/en/commands` as markdown
* Uses babel-node to run the script
* Uses validatejs to validate the javascript
* Template.yml is just a sample

* Infers the platform and appium support range from driver
  * For example, if you put in 'xcuitest: true' it will infer that platform support is 9.3+ and Appium Version is 1.6.0
2017-09-21 14:12:43 -07:00
Dan Graham 998c8a32b5 Update package.json to v1.7.0 (#9237) 2017-09-19 09:14:48 -07:00
Isaac A. Murchie 94635edeac Update linting (#9123)
* Update linting

* Move minimum node version to 5

* Remove coverage for now

* Fix docs for node version

* Fail for node 4 and below
2017-08-31 07:49:43 -04:00
Isaac Murchie bf3eeb54d7 Prepare for Appium 1.7.0-beta 2017-08-30 08:21:51 -04:00
Mykola Mokhnach 64ccbc1a98 Add basic synchonization to session creation and deletion (#8983)
* Guard sessions and pending drivers lists

* Address review comments

* Improve session deletion

* Perform fast return if the session is not present in the sessions list
2017-08-21 14:16:12 -04:00
Isaac Murchie cd00999f38 V1.6.6-beta.4 2017-08-02 08:57:42 -04:00
Jonathan Lipps 80d37e9cce pull in latest espresso driver 2017-07-27 15:53:48 -07:00
Isaac Murchie ad2d59187d Appium 1.6.6 Beta 3 Release 2017-07-14 14:35:39 -04:00
Dan Graham 09622aea33 Espresso Driver added to appium (#8640) 2017-06-09 11:03:00 -07:00
Isaac A. Murchie f5cca47df7 Prepare to release 1.6.6 BETA (#8547)
* Prepare to release 1.6.6 BETA

* Add info about cleaning up for WDA
2017-05-31 12:08:32 -04:00
Isaac A. Murchie e53a5790f9 Update CHANGELOG and version for 1.6.5 release (#8536) 2017-05-25 14:35:53 -07:00
Dan Graham 0b3441fdff Remove date-utils library and use node-dateformat (#8328)
* Removed date-utils and removed require
* Replaced call to date.toFormat(...) with dateformat(date, '...')
2017-04-26 13:03:31 -04:00
Isaac Murchie ba4e53ab10 Revert GCC change in Travis 2017-04-24 17:55:11 -04:00
Mykola Mokhnach c04c8e4758 Add --enable-heapdump feature (#8176)
* Add possibility to take snapshots of node process memory heap

* Move heapdump to optional dependencies
2017-04-18 12:06:39 -04:00
Isaac A. Murchie a80f39a9f0 Update version and changelog for 1.6.5 beta (#8237) 2017-04-12 13:57:08 -04:00
Isaac A. Murchie d8427c4706 Update CHANGELOG for release of 1.6.4 (#8155) 2017-04-07 12:45:59 -04:00
Jonathan Lipps f9434e0e76 bump to 1.6.4 beta 2 2017-03-28 16:32:39 -07:00
Dan Cuellar 9af79b2b81 Add MacDriver (#8046)
* Add MacDriver

* Add MacDriver to version map

* Add some notes about Mac

* Update README.md

* Add section about mac apps.

* Move information to running on OS X page
2017-03-16 16:27:19 -07:00
Isaac Murchie 90d62dd7dd Move to logger from appium-support 2017-02-28 15:09:49 -05:00
Isaac Murchie d2cc95ca43 Bump version for 1.6.4-beta 2017-02-01 10:06:58 -05:00
Jonathan Lipps ec7de82a9d ensure esling-plugin-promise is available 2016-12-06 17:18:39 -08:00
Jonathan Lipps 014f1e0199 bump version for 1.6.3 2016-12-06 17:01:25 -08:00
Jonathan Lipps 269b8060f8 change semver refs in package.json to be more transparent 2016-12-06 17:01:25 -08:00
Jonathan Lipps b22454bd11 bump version for 1.6.2 2016-12-06 17:01:25 -08:00
Isaac Murchie 19f95c8a3a Prepare for release of 1.6.0 2016-10-07 15:57:03 -04:00
Isaac A. Murchie ec33e13a4e Merge pull request #6961 from appium/isaac-auth
Move authorize-ios to a global program only
2016-10-07 12:51:28 -04:00
Isaac A. Murchie f6c81a4fa1 Merge pull request #6960 from sravanmedarapu/master
Updated appium-uiautomator2-driver dependency version syntax in package.json
2016-10-07 12:38:44 -04:00
Isaac Murchie 16be2d075a Move authorize-ios to a global program only 2016-10-07 12:01:41 -04:00
Sravan Medrapu d16d93e475 Updated appium-uiautomator2-driver dependency version syntax in package.json 2016-10-07 20:53:16 +05:30
Isaac Murchie 71d6516c09 v1.6.0-beta3 2016-10-04 10:43:17 -04:00
Sravan Medrapu 8813cbdf1d Added UiAutomator2 Driver 2016-10-01 23:50:47 +05:30