Uses of Class
net.serenitybdd.screenplay.playwright.interactions.EmulateDevice
Packages that use EmulateDevice
-
Uses of EmulateDevice in net.serenitybdd.screenplay.playwright.interactions
Methods in net.serenitybdd.screenplay.playwright.interactions that return EmulateDeviceModifier and TypeMethodDescriptionEmulateDevice.asMobile()Mark as a mobile device (enables mobile-specific behaviors).static EmulateDeviceEmulateDevice.desktop()Standard desktop viewport (1280x720).static EmulateDeviceEmulateDevice.desktop4K()4K desktop viewport (3840x2160).static EmulateDeviceEmulateDevice.desktopHD()HD desktop viewport (1920x1080).static EmulateDeviceEmulateDevice.galaxyS21()Emulate Samsung Galaxy S21 viewport.static EmulateDeviceEmulateDevice.galaxyTabS7()Emulate Samsung Galaxy Tab S7 viewport.static EmulateDeviceEmulateDevice.iPad()Emulate iPad viewport.static EmulateDeviceEmulateDevice.iPadPro()Emulate iPad Pro 11" viewport.static EmulateDeviceEmulateDevice.iPhone12()Emulate iPhone 12 / 12 Pro viewport.static EmulateDeviceEmulateDevice.iPhone14Pro()Emulate iPhone 14 Pro viewport.static EmulateDeviceEmulateDevice.iPhoneSE()Emulate iPhone SE viewport.static EmulateDeviceEmulateDevice.laptop()Laptop viewport (1366x768).static EmulateDeviceEmulateDevice.macBookPro14()MacBook Pro 14" viewport (1512x982).static EmulateDeviceEmulateDevice.pixel5()Emulate Google Pixel 5 viewport.static EmulateDeviceEmulateDevice.pixel7()Emulate Google Pixel 7 viewport.EmulateDevice.withDeviceScaleFactor(double factor) Set the device scale factor (pixel density).EmulateDevice.withTouch()Enable touch events.static EmulateDeviceEmulateDevice.withViewport(int width, int height) Set a custom viewport size.