Hi, I have some tests written in Playwright. The tests are for a website (NOT a mobile app). I would like to run them on different real devices. So far, I have been using Browserstack, but unfortunately, it’s not possible to run them on iOS (iPhone). Does LambdaTest have a solution for this issue?
1 Like
Hi Aleksandra,
Playwright does not have direct support to execute tests on real mobile devices. However, it has experimental support for Android automation. You can refer to the link below:
For real iOS devices it doesn’t have this feasibility.
However, Playwright comes with a registry of device parameters using playwright.devices for selected desktop, tablet and mobile devices.
Below is the sample script link for the same.
For Android: playwright-sample/playwright-android-real-device.js at main · LambdaTest/playwright-sample · GitHub
For iOS: playwright-sample/playwright-single-on-iphone.js at main · LambdaTest/playwright-sample · GitHub