Start Chrome emulation from command line Start Chrome emulation from command line google-chrome google-chrome

Start Chrome emulation from command line


This is currently not possible in Chrome.

It's a feature I've been wanting myself too so I've gone ahead and filed a feature request for it at the following link:

https://code.google.com/p/chromium/issues/detail?id=373169&thanks=373169&ts=1400050662

I'm crossing my fingers but it wouldn't hurt if you and other people interested in this went and left a comment on the thread too. The more people asking for it, the higher the chance of it being implemented. And it does seem like it would be trivial to implement since it currently only takes a couple of mouse clicks to enter emulation mode.


Selenium allows users to emulate Chrome on a mobile device using code like this:

Map<String, String> mobileEmulation = new HashMap<>();mobileEmulation.put("deviceName", "Nexus 5");ChromeOptions chromeOptions = new ChromeOptions();chromeOptions.setExperimentalOption("mobileEmulation", mobileEmulation);WebDriver driver = new ChromeDriver(chromeOptions);