Can I set useragent like puppeteer?
See original GitHub issueI found this plugin while developing E2E server using puppeteer, So I considering replace it with this plugin.
But, I can’t find page.setUserAgent
function like puppeteer. My company use app using webview, So we add to the flag in useragent to identify it is an app.
So, Can I set useragent or add useragent use page object? If I can not add useragent, Are there any plans to add an useragent?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to set User-Agent header with Puppeteer JS and not fail
We don't need to start Puppeteer. We can open devtools and go to “Network conditions” tab. There, set the User-Agent to Internet Explorer...
Read more >Modify Puppeteer User Agent - Brian Childress
If we change the string in Puppeteer, we can “appear” as if we're a different user or device. New User-Agent: 1, "Mozilla/5.0 (Macintosh;...
Read more >puppeteer.Page.setUserAgent JavaScript and Node.js code ...
Specifies the User-Agent used in this page. Most used puppeteer functions. launch. The method launches a browser instance with given arguments. The browser...
Read more >Puppeteer browser useragent list - Stack Overflow
setUserAgent(randomAgent); will be just fine. const browser = await puppeteer.getBrowserInstance(port); const randomReferer = referers[Math.
Read more >Setting a user agent – Browserless Docs
If you're using our APIs like /screenshot, /content, /pdf, or /scrape, you can also set the user agent in the body of your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Playwright’s cornerstone is a “browser context” - all the setup goes through it. You can create a new browser context with a given user agent - and all pages inside of it will inherit it:
Check out docs for all the info.
It works just fine for me:
Please open a new issue with failing code snippet if it fails for you.