Comments (4)
@ebidel: do you think this might be needed?
from puppeteer.
Certainly for testing with different UAs.
In LH we do a pretty heavy emulation:
- devicemetricsoverride w/ nexus 5 stats
- setvisiblesize with viewport size
- setuseragentoverride
- settouchemulationenabled (for feature detects, etc)
- the extra ontouch handlers enabled via a
addScriptToEvaluateOnLoad
One approach here is to separate emulating screen, touch events, and network UA.
(as throttling and online/offline is already separate)
But yeah I think even casual users will need this. UA spoofing at a minimum, but then screenshots would also necessitate screen overrides.
from puppeteer.
Sweet, there's already Page.setUserAgentOverride, and @pavelfeldman is addressing the rest in #37
from puppeteer.
Device emulation has landed in #72.
from puppeteer.
Related Issues (20)
- [Bug]: If `pipe: true`, if the executable fails to spawn, it will exit without throwing an error. HOT 1
- [Bug]: Chromium linux/x64 builds do not have is_chrome_for_testing build flag HOT 3
- [Bug]: Dockerfile provided at location https://github.com/puppeteer/puppeteer/tree/main/docker does not work HOT 3
- [Bug]: Screenshot of a portion of a page does not clip correctly HOT 7
- [Feature]: Update documentation to run Puppeteer with Docker using Alpine 3.19
- [Feature]: Update documentation to run Puppeteer with Docker using Alpine 3.19 HOT 3
- [Bug]: Unable to use vulkan for hardware acceleration in headless mode HOT 4
- CDP events are not emitted with BiDi HOT 3
- [Bug]: what's the meaning of response.timing().requestTime? HOT 3
- [Feature]: Support new `using` syntax for browser and page HOT 1
- [Bug]: load js fail HOT 2
- [Bug]: Puppeteer Page Proxy Error: useProxyPer[target.constructor.name] is not a function HOT 3
- Docker (Running as root without --no-sandbox is not supported) HOT 2
- [Bug]: Puppeteer Zooms In When Amcharts or Page Overflows HOT 2
- [Bug]: The position of an element is not correct(using BoundingBox() API) HOT 14
- [Bug]: puppeteer loads fencedframe as a mainframe instead of childframe HOT 3
- I want use diffrent cookies value on same site and page HOT 2
- [Bug: Navigation timeout 30000 ms exceeded HOT 4
- How to store resources only HOT 5
- [Feature]: deprecate `Frame.name()`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppeteer.