question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make it possible to set browsertime.chrome.mobileEmulation.* options

See original GitHub issue

Currently 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:open
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
soulgalorecommented, Jan 1, 2022

I released 21.3.0 earlier today that fixes so that --userAgent also will be used for emulated devices.

1reaction
soulgalorecommented, Dec 30, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found