A mobile-responsive website must be tested at viewport 375×812 (iPhone 14). How can a desktop Selenium test simulate this without a real device?
-
A
Use ChromeOptions to set '--window-size=375,812' and add a mobile emulation device metrics override
-
B
Call driver.manage().window().maximize() then crop screenshots
-
C
Use driver.switchTo().frame() to shrink the viewport
-
D
Set DesiredCapabilities platform to 'iOS'