I've looked around quite a bit and haven't been able to find a way to launch Chrome from the command line emulating a device (for instance the iPhone 5). The only thing I've seen is an unanswered stack overflow
question.
My use case for this is that I'm using the Karma test runner as maintained by the Angular team and would like to do unit tests inside of common mobile devices. In order to automate opening the browser in emulation mode, I need a way to open Chrome from the command line with a specified mode. I'm using windows, so for example, a command like
C:\\chrome-directory\chrome.exe --emulation-mode=iphone5
As far as I can tell this option does not exist but I would love to be told I'm wrong. Any info on this?
Thanks,
-Scott