What are valid deviceNames for Chrome emulation testing with Protractor?

前端 未结 2 790
长情又很酷
长情又很酷 2021-02-06 08:43

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:

相关标签:
2条回答
  • 2021-02-06 08:56

    So 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.com/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.com/p/chromium/codesearch#chromium/src/chrome/test/chromedriver/chrome/mobile_device_list.cc

    0 讨论(0)
  • 2021-02-06 08:59

    This code contains supported devices:

    https://cs.chromium.org/chromium/src/chrome/test/chromedriver/chrome/mobile_device_list.cc?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
    
    0 讨论(0)
提交回复
热议问题