Commit Graph

6346 Commits

Author SHA1 Message Date
Dan Graham
ee569cbed1 Use MJSONWP if dcaps have extraneous params (#10019)
* Update `parseCapsForInnerDriver` so that now if it finds extraneous keys in `jsonwpCaps`, fall back to using MJSONWP instead of W3C
* After getting processed caps, check the protocol again because if `processedW3CCapabilities` was set to null, it should be JWP
* Removed tests that tested for capabilities being merged together (those are no longer needed)
* Added tests (unit test and e2e test) that check that creation of a new session will fall back to JSONWP when there are extraneous keys
2018-01-18 13:02:09 -08:00
Isaac A. Murchie
ac8be0076c Get rid of arrow functions in mocha aparatus (#10013) 2018-01-17 15:34:50 -05:00
Isaac A. Murchie
909694b39d Add 2.34 and 2.35 to Chromedriver compatibility doc (#10012) 2018-01-17 13:57:42 -05:00
Isaac Murchie
086c8c3ddd Prepare for v1.8.0-beta v1.8.0-beta 2018-01-17 10:10:53 -05:00
Isaac Murchie
8e551ab985 Stop making package-lock.json file 2018-01-17 10:04:34 -05:00
Dan Graham
fb7280da32 No hardcoded automation names (#10002) 2018-01-17 07:48:30 -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
Isaac A. Murchie
270c6b7679 Update release docs to handle dependencies better (#9913) 2018-01-05 10:03:09 -05:00
Dan Graham
36cc935fc5 Revert "Create session and basic interactions samples (#9907)" (#9915)
This reverts commit 061e264800.
2018-01-04 13:52:30 -08:00
Dan Graham
061e264800 Create session and basic interactions samples (#9907)
* Add apps; add create session test
* Android create session tests
* iOS basic interactions test
* Basic web session tests (iOS and Android)
2018-01-04 13:48:24 -08:00
Isaac Murchie
fd24eb9853 CHANGELOG for v1.7.2 2018-01-03 08:43:38 -05:00
Isaac A. Murchie
0d36044ada Wire mobile app management doc into the rest (#9888)
* Wire mobile app management doc into the rest

* Add rendered markup
2018-01-02 16:39:17 -05:00
Dan Graham
ed1161f300 Pin fake-driver to 0.2 (#9889) 2018-01-02 15:43:03 -05:00
Mykola Mokhnach
c571dedd03 Add documentation for application management endpoints (#9831)
* Add documentation for application management endpoints

* Update launchApp arguments

* Address grammar issues
2018-01-02 10:14:03 -05:00
Dan Graham
b666c3353c Force MJSONWP protocol (#9869)
* The 'executeCommand' on appium-base-driver checks the protocol by looking for the w3c 'capabilities' object
* Right now it's finding it and then appium is merging capabilities into desiredCapabilities so we're getting a case of 'createSession' misidentified as W3C
* Fix for next release is just to monkey-patch the method that determines the protocol to return MJSONWP
2018-01-02 09:40:28 -05:00
Mykola Mokhnach
fd0a0dc234 Add documentation for mobile:shell feature (#9803)
* Add documentation for mobile:shell feature

* Replace line break with space
2017-12-28 20:44:09 +01:00
Kazuaki Matsuo
15974203d2 Fix the number of systemPort (#9815)
* Fix the number of systemPort

* fix systemPort description
2017-12-27 10:09:33 -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
Dan Graham
f62a2a2875 Merge W3C caps into JSONWP desiredCapabilities (#9824) 2017-12-20 15:13:49 -08:00
Isaac A. Murchie
1b1d9dbf3f Add printPageSourceOnFindFailure to caps list (#9829) 2017-12-20 13:18:57 -05:00
Isaac Murchie
53431658fb Prepare for 1.7.2-beta4 release 2017-12-18 14:45:45 -05:00
Kazuaki Matsuo
21d7502dc3 add systemPort related description (#9806)
* add systemPort related description

* address adjusting the port to avoid conflict

* apply the reviewed point
2017-12-18 23:47:56 +09:00
Isaac Murchie
1ac29f9236 Prepare for 1.7.2-beta3 release 2017-12-15 16:33:10 -05:00
Dan Graham
a8911ba51c Support w3c createSession (#9791)
* In 'createSession', process w3c caps using 'processCapabilities' method exposed by base-driver
* Add tests that run W3C requests on server to verify that it's accepting w3c format
2017-12-15 09:24:28 -08:00
Mykola Mokhnach
760d31165d Merge pull request #9790 from mykola-mokhnach/insecure_arg
Add relaxed security command line flag
2017-12-14 15:43:12 +01:00
Mykola Mokhnach
b8199b8472 Remove redundant variable 2017-12-14 14:26:02 +01:00
Mykola Mokhnach
af8fed6186 tune logging 2017-12-14 14:24:36 +01:00
Mykola Mokhnach
1e47e1b0a9 Address review comments 2017-12-14 14:22:19 +01:00
Mykola Mokhnach
dca6708fe6 Add relaxed security command line flag 2017-12-13 20:49:45 +01:00
Kazuaki Matsuo
08a26a6a91 add limitation for language caps (#9772)
* add limitation for language caps

* apply the review
2017-12-12 07:30:25 -05:00
Isaac Murchie
84893bcb1b Add index for API docs 2017-12-05 08:11:13 -05:00
Isaac A. Murchie
355980b6b2 Make the CONTRIBUTING link in the PR template point to the right place (#9732) 2017-12-04 08:08:35 -05:00
Isaac A. Murchie
f33a11c99a Update documentation (#9731) 2017-12-02 07:35:41 -05:00
Kazuaki Matsuo
ceb8acd4df Update commands for the Ruby client (#9662)
* context, activity. app, files, interactions

* update commands
2017-11-21 10:46:00 +00:00
Isaac Murchie
136ea4d015 Release 1.7.2-beta2 2017-11-19 11:33:32 -05:00
Isaac A. Murchie
80e82b9e91 Fix settings docs (#9657) 2017-11-19 11:24:41 -05:00
Kazuaki Matsuo
49be47577f add allowInvisibleElements (#9622) 2017-11-14 14:50:42 -05:00
Isaac Murchie
b1e7b34f5c Add new doc to toc 2017-11-08 09:37:28 -05:00
Arseniy Rozov
cfee87a5ba Add docs for multiple xcode versions installed (#9603)
* Add docs for multiple xcode versions installed

* Fix typos in doc file: multiple-xcode-versions.md

* Fix doc style: multiple-xcode-versions.md
2017-11-08 09:32:26 -05:00
Isaac Murchie
3d7dd1e857 Fix logging of caps 2017-11-06 09:21:59 -05:00
Dan Graham
3ec103fb23 Fix broken links (#9542) 2017-10-30 16:08:29 -07:00
Wei Gu
433a453903 Fix synchrous issue: appium may call session check even after session is deleted (#9550) 2017-10-30 14:42:26 -04:00
Dan Graham
b41e66a78b Fixed multiple documentation problems (#9502)
* Fixed multiple documentation problems

* PR fixes

* PR fixes

* PR fixes

* PR fix. Bad link
2017-10-30 09:15:55 -04:00
Dan Graham
a4dd79b814 Moved /basics up to root folder (#9501)
* Moving markdown files to basics folder caused some links to break (including on Appium Desktop)
* Moving them up one place instead
2017-10-23 15:28:48 -07:00
Isaac A. Murchie
55760b7b9e Normalize documentation names to kebab-case (#9487) 2017-10-18 16:19:46 -04:00
Dan Graham
9327133036 Fix docs (#9477)
* Fix strikethrough for Chinese docs

* Reorganize menus
2017-10-18 15:44:08 -04:00
Dan Graham
40f8b4590a Fix strikethrough for Chinese docs (#9475) 2017-10-17 14:53:50 -07:00
Isaac A. Murchie
f8f02ad79d Fix strikethrough in docs (#9473) 2017-10-17 14:11:41 -04:00