Commit Graph

6381 Commits

Author SHA1 Message Date
Isaac A. Murchie
f7264d848e Add new chromedriver caps to docs (#10448) 2018-04-03 05:08:02 -04:00
Isaac Murchie
ed6dd6566b Update docs 2018-03-30 11:17:25 -04:00
Andres Galindo
048ca4be43 Added support for hub protocol (#10434) 2018-03-28 15:57:48 -04:00
Isaac A. Murchie
e51db2de68 Update Chromedriver docs (#10436)
* Update Chromedriver docs

Chromedriver 2.37 is out so add its minimum Chrome version to the table.

* Typo

* Add 2.5 and 2.6 mapping
2018-03-28 15:57:31 -04:00
Isaac A. Murchie
f452ffb76c Fix the build (#10437) 2018-03-28 15:57:13 -04:00
Dan Graham
b4d27a4281 Pass protocol in execute command (#10362)
* Make it so executeCommand returns protocol and value/error
  * This is so that base driver can read the protocol and serve the response (base driver doesn't know what the protocol of the inner drivers are)
  * Added tests to confirm that it falls back to MJSONWP if an inner driver is not ready and handles concurrent MJSONWP and W3C sessions
  * Updated unit tests to match the new format
2018-03-27 14:39:48 -07:00
Jonathan Lipps
e4799bb88e Merge pull request #10406 from janpio/patch-1
[Docs] Add Apache Cordova to introduction
2018-03-23 06:22:24 -07:00
Jan Piotrowski
8f5e2bad99 [Docs] Add Apache Cordova to introductions 2018-03-23 11:57:26 +01:00
Mykola Mokhnach
0774ffcefc Attach server instance to each driver being created (#10400) 2018-03-23 07:39:15 +01:00
Jonathan Lipps
01eae28622 Merge pull request #10398 from appium/isaac-source-docs
Add source docs to table of contents
2018-03-22 15:57:34 -07:00
Isaac Murchie
c6fc626ccc Add source docs to table of contents 2018-03-22 10:16:01 -04:00
Mykola Mokhnach
5fb4348ed7 Alter performance documentation (#10367) 2018-03-21 08:26:52 -04:00
Mykola Mokhnach
4dcd49b41a Add documentation for performance tools available for iOS (#10348)
* Add documentation for performance tools available for iOS

* Fix grammar
2018-03-14 13:48:33 +01:00
Jonathan Lipps
30e7b45bdc Merge pull request #10335 from saikrishna321/master
added uiAutomator2 caps
2018-03-12 02:43:44 -07:00
saikrishna321
345f117f24 added uiAutomator2 caps 2018-03-12 14:55:19 +05:30
Jonathan Lipps
add9cfe6ad Merge pull request #10314 from appium/isaac-cd
Add v2.36 to chromedriver docs
2018-03-07 11:30:30 -08:00
Isaac Murchie
7d5b5b9ace Add v2.36 to chromedriver docs 2018-03-07 13:04:16 -05:00
Kazuaki Matsuo
b0a48a3e83 add network related commands for Ruby (#10251)
* add network related commands for Ruby

* set client_support true
2018-02-27 01:16:01 +09:00
Kazuaki Matsuo
84710b2d75 add commands of power ac and power capacity (#10253) 2018-02-24 14:24:47 +09:00
Dan Graham
70e31115f5 Doc fix (#10234) 2018-02-21 13:48:27 -08:00
trixo
18733e0588 docs update (#10231) 2018-02-21 10:30:35 -05:00
Dan Graham
373c62de4d Go back to using nodeca/argparse (#10205) 2018-02-16 08:14:03 -05:00
Dan Graham
9650d66a67 Fix customSSLCert documentation error (#10155)
Should be Sim only, not Sim/Emu
2018-02-15 08:41:50 -05:00
Isaac Murchie
9c994e85c9 Bump appium-ios-driver to 2.0 2018-02-15 08:37:03 -05:00
Kazuaki Matsuo
829aafcd25 Update settings.md (#10196)
* Update settings.md

* fix review
2018-02-15 07:32:52 -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
Dan Graham
1c6aa98a53 Fix outdated test (#10162) 2018-02-08 15:06:48 -05:00
Nick Fox
b9d56049a3 Update migrating-to-xcuitest.md (#10112) 2018-02-01 11:52:49 -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
Dan Graham
35135a6ee5 Remove unnecessary 'finally' block (#10076)
* Shouldn't have had finally block because then it does two checks to fall back to MJSONWP
* Also fixed outdated tests
2018-01-25 12:45:02 -08:00
Dan Graham
050db9880a Fall back to MJSONWP if W3C is invalid (#10034)
* If processCapabilities throws error, then log a warning that it was invalid and log the message and fall back to using jsonwpCaps
2018-01-18 18:07:56 -08:00
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