Set up Playwright with Perfecto – iOS

To integrate Playwright with Perfecto for iOS testing, follow the prerequisites and setup steps below for your preferred programming language. iOS Playwright support is generally available for real devices running iOS 18 and later through the Node.js SDK (JavaScript and TypeScript), .NET SDK (C#), Python, and Java SDKs. 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:

  • Status: Generally available as of release 26.12 on real iOS devices running iOS 18 and later provisioned through Perfecto cloud

  • Supported Playwright version: Playwright 1.62 and newer. Pinning to the exact version is required. Other Playwright versions are not supported and will not connect.

  • Available SDKs: Node.js SDK (JavaScript and TypeScript), .NET SDK (C#), Python SDK, and Java SDK.

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

Prerequisites

  • A real iOS device provisioned on your Perfecto cloud

  • 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