Appwright provides a set of configuration options that you can use to customize the test environment and thus the behavior of the tests.
Device providers make Appium compatible mobile devices available to Appwright. These providers are supported:
local-device
emulator
browserstack
lambdatest
BrowserStack App Automate can be used to provide remote devices to Appwright.
These environment variables are required for the BrowserStack
- BROWSERSTACK_USERNAME
- BROWSERSTACK_ACCESS_KEY
BrowserStack also requires name
and osVersion
of the device to be set in the projects in appwright config file.
LambdaTest Real Device Cloud can be used to provide remote devices to Appwright.
These environment variables are required for the LambdaTest
- LAMBDATEST_USERNAME
- LAMBDATEST_ACCESS_KEY
LambdaTest also requires name
and osVersion
of the device to be set in the projects in appwright config file.
To run tests on the Android emulator, ensure the following installations are available. If not, follow these steps:
- Install Android Studio: If not installed, download and install it from here.
- Set Android SDK location: Open Android Studio, copy the Android SDK location, and set the
ANDROID_HOME
environment variable to the same path. - Check Java Installation: Verify if Java is installed by running
java -version
. If it's not installed:- Install Java using Homebrew:
brew install java
. - After installation, run the symlink command provided at the end of the installation process.
- Install Java using Homebrew:
To check for available emulators, run the following command:
$ANDROID_HOME/emulator/emulator --list-avds
To run tests on the iOS Simulator, ensure the following installations are available. If not, follow these steps:
- Install Xcode: If not installed, download and install it from here.
- Download iOS Simulator: While installing Xcode, you will be prompted to select the platform to develop for. Ensure that iOS is selected.
To check for available iOS simulators, run the following command:
xcrun simctl list