async function emulateDevice(deviceModel) {
  validate();
  await emulationHandler.emulateDevice(deviceModel);
  descEvent.emit("success", `Device emulation set to ${deviceModel}`);
}
Overrides the values of device screen dimensions according to a predefined list of devices. To provide custom device dimensions, use setViewPort API.

@example
await emulateDevice('iPhone 6')

@param {string} deviceModel - See [device model](https://docs.taiko.dev/devices) for a list of all device models.

@returns {Promise<void>}