You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: