The common web consensus seems to be that if you see a name in your chrome emulator, you can use it as-is in your protractor config ... so I tried Apple iPad
:
{
browserName: 'chrome',
chromeOptions: {
mobileEmulation: {
deviceName: 'Apple iPad'
}
}
}
But I had to muck around until trial & error yielded the correct deviceName to be: Apple iPad 3 / 4
Now I've searched here: https://developer.chrome.com/devtools/docs/device-mode#enable-device-mode and here: https://sites.google.com/a/chromium.org/chromedriver/mobile-emulation but I can't find a list of all the valid deviceNames. Any ideas where to get it?
On https://code.google.com/p/chromium/codesearch I found: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/devtools/front_end/emulated_devices/module.json&q=%22Apple%20iPad%22&sq=package:chromium&type=cs&l=643
But that's not really the source code that matters.
Maybe the source code for chrome webdriver somewhere else may have an enumerated list but I couldn't find it, any help is appreciated!