-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Description
Device emulation not working with CLI
Context:
- Playwright Version: 1.10.0
- Operating System: Windows 10
- Node.js version:v14.16.1
- Browser: Playwright Default
System:
- OS: Windows 10 10.0.19042
- Memory: 1.74 GB / 5.88 GB
Binaries:
- Node: 14.16.1 - C:\Program Files\nodejs\node.EXE
- npm: 6.14.12 - C:\Program Files\nodejs\npm.CMD
npmPackages:
- playwright: ^1.10.0 => 1.10.0
Code Snippet
I tried to emulate iPhone 11 using CLI but it is not working.
npx playwright open --device="iPhone 11" wikipedia.org
Error
'''
Device descriptor not found: 'iPhone', available devices are:
"Blackberry PlayBook"
"Blackberry PlayBook landscape"
"BlackBerry Z30"
"BlackBerry Z30 landscape"
"Galaxy Note 3"
"Galaxy Note 3 landscape"
"Galaxy Note II"
"Galaxy Note II landscape"
"Galaxy S III"
and so on...
Possible Issue
It seems like it is only accepting the first word of every specified device rather than accepting it as "iPhone 11", it is accepting it as "iPhone".
Metadata
Metadata
Assignees
Labels
No labels