Set up Playwright with Perfecto – iOS (BETA)

To integrate Playwright with Perfecto for iOS testing, follow the prerequisites and setup steps below for your preferred programming language. iOS Playwright support is currently in BETA and available only through the Node.js SDK (JavaScript and TypeScript). For information on known limitations and unsupported features, see Playwright known limitations.

For information on Playwright overview and prerequisites, see Playwright.

This document includes references to a third-party product, Playwright. The user interface and usage of third-party products are subject to change without notice. For the latest published information about Playwright, see the Playwright documentation.

Restrictions

The following restrictions apply to iOS Playwright BETA:

  • Status: BETA, available on real iOS devices only (iOS 18+) provisioned through Perfecto cloud

  • Supported Playwright version: Playwright 1.62 only. Pinning to exact version is required (see Install dependencies). Other Playwright versions are not supported and will not connect.

  • Available platforms: Node.js SDK only (JavaScript and TypeScript). Java is not supported for iOS testing.

  • Cloud configuration: Must specify cloud name in WebSocket URL.

  • Feature gate: Feature must be enabled for your Perfecto cloud/cradle.

Prerequisites

  • A real iOS device provisioned on your Perfecto cloud with iOS Playwright feature setting enabled

  • A Perfecto securityToken

  • The device's deviceName (UDID), for example 00001234-0005ACB12331120E

Mandatory capabilities

Capability Value
platformName 'iOS'
securityToken your Perfecto security token
deviceName target device's UDID

Configuration requirement

The cloud name must be specified in the WebSocket URL used to connect:

Copy
wss://{cloudName}.perfectomobile.com/websocket?<encoded capabilities>

Setup steps

Click a language to expand the steps.

What's next

Integrate Playwright with Perfecto Smart Reporting