Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't send a custom user agent generating a Lighthouse report #1003

Open
javmurillo opened this issue Jan 4, 2024 · 0 comments
Open

Can't send a custom user agent generating a Lighthouse report #1003

javmurillo opened this issue Jan 4, 2024 · 0 comments

Comments

@javmurillo
Copy link

Describe the bug
Can't send a custom user agent because device emulation cannot be disabled, or at least I have no found way to do this.

To Reproduce
Running lhci collect --url https://github.com/ -n 1 --disable-device-emulation --chrome-flags="--user-agent='Mozilla/5.0 (Linux; Android 11; moto g power (2022)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36 custom-user-agent' --window-size=360,640"

Expected behavior
I expected to see the custom-user-agent string in the Lighthouse report.

Logs/Screenshots
image
image

As you can see both the given resolution and the custom-user-agent is not being applied.

Environment (please complete the following information):

  • Node: 20.10.0
  • LHCI: 0.13.0

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant