Files
appium/sample-code/javascript-wd
dependabot-preview[bot] 782526c5b1 chore(deps-dev): bump mocha in /sample-code/javascript-wd (#14438)
Bumps [mocha](https://github.com/mochajs/mocha) from 7.2.0 to 8.0.1.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v7.2.0...v8.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-11 23:29:51 +09:00
..
2019-05-23 09:37:40 -04:00

Javascript WD Client Sample Code

Setup

  • Must have NodeJS (6+) and NPM installed (https://nodejs.org/en/)
  • Install dependencies by running npm install

Running Tests

  • To run all of the tests, run npm test
  • To run individual tests, run $(npm bin)/mocha test/path/to/test.js

Troubleshooting

  • Original error: '12.1' does not exist in the list of simctl SDKs. Only the following Simulator SDK versions are available on your system: x.y
    • By default, these example tests expect IOS version 12.1
    • If 12.1 isn't available on your system, set the version by setting environment variable IOS_PLATFORM_VERSION (e.g., IOS_PLATFORM_VERSION=11.2 $(npm bin)/mocha -t 6000000 test/path/to/test.js), or install the iOS 12.1 SDK with Xcode.