pul*_*hal 6 javascript selenium google-chrome selenium-chromedriver protractor
常见的网络共识似乎是,如果你在chrome模拟器中看到一个名字,你可以在你的量角器配置中使用它...所以我试过Apple iPad:
{
browserName: 'chrome',
chromeOptions: {
mobileEmulation: {
deviceName: 'Apple iPad'
}
}
}
Run Code Online (Sandbox Code Playgroud)
但是我不得不捣乱,直到试验和错误产生了正确的deviceName: Apple iPad 3 / 4
现在我在这里搜索:https://developer.chrome.com/devtools/docs/device-mode#enable-device-mode and here:https://sites.google.com/a/chromium.org/chromedriver/mobile-emulation 但我找不到所有有效deviceNames的列表.有什么想法可以搞定吗?
在https://code.google.com/p/chromium/codesearch上,我发现: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
但这并不是真正重要的源代码.
也许其他地方的chrome webdriver的源代码可能有一个枚举列表,但我找不到它,任何帮助表示赞赏!
所以我找到了一些来源,但他们似乎引用了不再存在的链接.这似乎是我能找到的最好结果?
编辑: 此列表似乎是主列表 https://code.google.com/p/chromium/codesearch#chromium/src/chrome/test/chromedriver/chrome/mobile_device_list.cc
| 归档时间: |
|
| 查看次数: |
3592 次 |
| 最近记录: |