Version: 1.10.0
Android
Playwright has experimental support for Android automation. You can access android namespace via:
An example of the Android automation script would be:
Note that since you don't need Playwright to install web browsers when testing Android, you can omit browser download via setting the following environment variable when installing Playwright:
#
android.devices()- returns: <Promise<Array<AndroidDevice>>>
Returns the list of detected Android devices.
#
android.setDefaultTimeout(timeout)timeout
<number> Maximum time in milliseconds
This setting will change the default maximum time for all the methods accepting timeout
option.