admin管理员组文章数量:1278854
The mon 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: and here: /chromedriver/mobile-emulation but I can't find a list of all the valid deviceNames. Any ideas where to get it?
On I found: .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!
The mon 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./devtools/docs/device-mode#enable-device-mode and here: https://sites.google./a/chromium/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./p/chromium/codesearch I found: https://code.google./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!
Share Improve this question edited Jul 28, 2015 at 16:15 alecxe 474k127 gold badges1.1k silver badges1.2k bronze badges asked Jul 28, 2015 at 15:55 pulkitsinghalpulkitsinghal 4,08413 gold badges49 silver badges85 bronze badges 1- Found: gist.github./devinmancuso/… but I can't rely on that to stay up to date so once again if someone can point me to a more permanent location for a source loopkup, I'd appreciate it. – pulkitsinghal Commented Jul 28, 2015 at 17:53
2 Answers
Reset to default 7So I found some sources but they seemed to referencing links that didn't exist anymore. This seems to be the best result I could find?
https://code.google./p/chromium/codesearch#chromium/src/third_party/WebKit/Source/devtools/front_end/emulation/OverridesUI.js&l=338
EDIT: This list seems like the master list https://code.google./p/chromium/codesearch#chromium/src/chrome/test/chromedriver/chrome/mobile_device_list
This code contains supported devices:
https://cs.chromium/chromium/src/chrome/test/chromedriver/chrome/mobile_device_list?type=cs&q=%22Apple+iPhone+6%22&sq=package:chromium&l=12
For the moment it contains:
Laptop with touch
BlackBerry Z30
Google Nexus 6
Google Nexus 7
Google Nexus 4
Google Nexus 5
Apple iPad
Laptop with HiDPI screen
Samsung Galaxy Note II
Nokia N9
Samsung Galaxy S4
Nokia Lumia 520
BlackBerry PlayBook
Apple iPhone 5
Apple iPhone 4
Apple iPhone 6
LG Optimus L70
Apple iPhone 6 Plus
Apple iPad Mini
Amazon Kindle Fire HDX
Samsung Galaxy S III
Laptop with MDPI screen
Samsung Galaxy Note 3
Google Nexus 10
本文标签: javascriptWhat are valid deviceNames for Chrome emulation testing with ProtractorStack Overflow
版权声明:本文标题:javascript - What are valid deviceNames for Chrome emulation testing with Protractor? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741290494a2370521.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论