Make it possible to set browsertime.chrome.mobileEmulation.* options
See original GitHub issueCurrently it’s not possible to overwrite the hardcoded deviceName='iPhone 6'
(reason is that in analyzeUrl()
in plugins/browsertime/analyzer.js
chromeIphoneEmulationOptions
containing the defaults comes after btOptions.chrome
).
Additionally, it’s also not possible to unset the default deviceName
, and use other possibly conflicting mobileEmulation options like userAgent
(if deviceName
and userAgent
are both set, then the error 'deviceName' must be used alone
appears).
If this was possible, then the current limitation of setting --mobile
overriding --browsertime.userAgent
could be workarounded.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
How to configure Browsertime - Sitespeed.io
You have the following options when running Browsertime within docker (run docker run sitespeedio/browsertime --help to get the list on your command line):....
Read more >WebDriver for Chrome - Mobile Emulation
Chrome allows users to emulate Chrome on a mobile device (e.g. a “Nexus 7” tablet, or an “iPhone 5”) from the desktop version...
Read more >How to configure Browsertime
You have the following options when running sitespeed.io within docker (run docker run sitespeedio/browsertime --help to get the list on ...
Read more >browsertime - npm
Browsertime supports Firefox and Chrome on desktop. ... It's easiest to run our ready made Docker container to be able to record a...
Read more >browsertime | Yarn - Package Manager
Browsertime - Your browser, your page, your scripts! Run Docker Unit tests Windows Edge OSX Safari Linux browsers Downloads total Stars.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I released 21.3.0 earlier today that fixes so that --userAgent also will be used for emulated devices.
Hi @barryperez in https://github.com/sitespeedio/browsertime/pull/1688 I’m adding so you can append what you want to the user agent, let me do a follow up in browsertime and also fix so that if you set the --userAgent its automatically set for mobile emulation, then I can fix it in sitespeed.io. Hope to fix it the coming weekend.