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

emulate_media_type function #232

Merged
merged 3 commits into from
Aug 12, 2024
Merged

Conversation

Nathan-Mossaad
Copy link
Contributor

The current emulate_media_features doesn't expose the available media types.
This MR adds an emulate_media_type function with an associated MediaTypeParams enum, which contains all possible states.

See:
https://chromedevtools.github.io/devtools-protocol/tot/Emulation/#method-setEmulatedMedia (media is unused in function emulate_media_features)
https://pptr.dev/api/puppeteer.page.emulatemediatype (this is basically the newly implemented function)

@mattsse mattsse merged commit ebff8d7 into mattsse:main Aug 12, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants