There may be times when you’d like to have the page you’re retrieving data from to emulate a specific device, such as an iPhone 6. This can be helpful for dealing with antiscraping measures, however, if you’d like to set a value and call it a day, check out our RENDER assignable keyword.
To specify that you’d like to have the browser rendering data emulate a certain device, ASSIGN the device to the value of DEVICE.
DEVICE <| the_device_you_want_to_emulate |
Let’s say you were interested in having the page render as the iPhone 6, assign that to DEVICE.
DEVICE <| iPhone 6 |
You can provide the name of any device supported by Playwright.
Coming soon.