Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 1.62 KB

safari-ios.md

File metadata and controls

73 lines (51 loc) · 1.62 KB

Safari on iOS

To run the tests with Safari on iOS, follow these steps:

  1. Install Xcode from the Mac App Store.

  2. Install the Xcode Command Line Tools:

    xcode-select --install
  3. Install Node.JS and Carthage via Homebrew:

    brew install node carthage
  4. Make sure the necessary Appium dependencies for iOS testing are installed:

    npx appium-doctor --ios
  5. Install Appium as global NPM package:

    npm install -g appium
  6. Add the example host to your /etc/hosts file:

    printf '127.0.0.1\t%s\n' example | sudo tee -a /etc/hosts
  7. Start appium with the provided helper script:

    bin/appium.sh
  8. Run the tests with Safari on iOS:

    docker-compose run --rm wdio conf/safari-ios.js

    To run the tests in landscape orientation, provide the ORIENTATION environment variable:

    ORIENTATION=LANDSCAPE docker-compose run --rm wdio conf/safari-ios.js

    To use a different iOS device than defined in the config, provide the DEVICE_NAME environment variable:

    DEVICE_NAME='iPad Pro (11-inch) (3rd generation)' \
     docker-compose run --rm wdio conf/safari-ios.js

    To use a different iOS version than defined in the config, provide the PLATFORM_VERSION environment variable:

    PLATFORM_VERSION=15.0 docker-compose run --rm wdio conf/safari-ios.js