testcafe-browser-provider-idevices

TestCafe browser provider plugin for iOS

Usage no npm install needed!

<script type="module">
  import testcafeBrowserProviderIdevices from 'https://cdn.skypack.dev/testcafe-browser-provider-idevices';
</script>

README

testcafe-browser-provider-idevices

NPM Version

This is the iOS Simulator browser provider plugin for TestCafe.

It allows you to launch the iOS simulator for automated testing in Mobile Safari. It uses node-simctl to interface with the Simulator.

Install

npm install --save-dev testcafe-browser-provider-idevices

Usage

You can determine the available browser aliases by running

testcafe -b idevices

When you run tests from the command line, use the alias when specifying browsers:

testcafe idevices:device:os 'path/to/test/file.js'

where device is something like:

  • iPhone 8
  • iPad Pro (11-inch) (2nd generation)
  • iPad Simulator
  • iPhone Simulator

and os is something like:

  • iOS 14.4

os is optional - if you exclude it then the most recent OS version will be chosen.

Author

gcfeng (https://github.com/gcfeng/testcafe-browser-provider-idevices)