Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Map<String, String> mobileEmulation = new HashMap<>();
  2.  
  3. mobileEmulation.put("deviceName", "Nexus 5");
  4.  
  5.  
  6. ChromeOptions chromeOptions = new ChromeOptions();
  7. chromeOptions.setExperimentalOption("mobileEmulation", mobileEmulation);
  8.  
  9. WebDriver driver = new ChromeDriver(chromeOptions)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement