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 ability to override userAgent in scenario where using Playwright as engine #1591

Open
graemecoates opened this issue Jan 23, 2025 · 0 comments

Comments

@graemecoates
Copy link

It would be helpful to be able to supply a custom User-Agent string to allow for a custom userAgent string to be supplied during the setup of the browserContext (see: https://playwright.dev/docs/emulation#user-agent). Many applications of this (eg checking for behaviour where UA is scanned for old/unexpected UA strings, custom UA strings to avoid adding to Google Analytics/Tag accesses, etc).

It looks like most of the work is done for this change within #1398 (bar resolving merge conflicts) - I had tested a similar solution locally. Can this be reviewed/merged in please?

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