Open javmurillo opened 6 months ago
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"
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
As you can see both the given resolution and the custom-user-agent is not being applied.
Environment (please complete the following information):
Thank you.
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](https://github.com/GoogleChrome/lighthouse-ci/assets/11700912/c0b98ba1-33d7-4863-bfcd-13aa3ef97763)
As you can see both the given resolution and the custom-user-agent is not being applied.
Environment (please complete the following information):
Thank you.