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

Allow User-Agent manipulation on (chrome) emulated devices #242

Open
wurzelkuchen opened this issue Mar 25, 2024 · 0 comments
Open

Allow User-Agent manipulation on (chrome) emulated devices #242

wurzelkuchen opened this issue Mar 25, 2024 · 0 comments

Comments

@wurzelkuchen
Copy link
Contributor

wurzelkuchen commented Mar 25, 2024

Currently if we use an emulated device profile in the chrome, we can not set a custom user agent.
Setting the a user agent via the -user-agent=... browser argument flag is overwritten by the user agent of the profile.

Since we need to set user agents even for emulated devices we need a way work around this.

One way would be to NOT use the emulation profile names, but to define our own mobile device with resolution, pixel ratio and user agent.
Another option would be to use the devTools protocol and send Emulation.setDeviceMetricsOverride with the specific values.

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