Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Map<String, String> mobileEmulation = new HashMap<>();
- mobileEmulation.put("deviceName", "Nexus 5");
- ChromeOptions chromeOptions = new ChromeOptions();
- chromeOptions.setExperimentalOption("mobileEmulation", mobileEmulation);
- WebDriver driver = new ChromeDriver(chromeOptions)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement