Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enable mobile emulation#292

Draft
duncan-bayne wants to merge 6 commits intorubycdp:main from
radiopaedia:216-mobile-emulation
Draft

Enable mobile emulation #292
duncan-bayne wants to merge 6 commits intorubycdp:main from
radiopaedia:216-mobile-emulation

Conversation

@duncan-bayne
Copy link

@duncan-bayne duncan-bayne commented Mar 21, 2025
edited
Loading

🚨 WIP - do not merge 🚨

Currently, when creating a Cuprite driver, it's not possible to specify that it should have mobile emulation enabled.

This PR adds that functionality.

Remember to revert 5117a90 once rubycdp/ferrum#527 is merged.

@duncan-bayne duncan-bayne force-pushed the 216-mobile-emulation branch 3 times, most recently from d2de7e2 to 410be86 Compare March 27, 2025 12:26
We need to expose the mobile setting in the Ferrum API as well. Until
that's merged, use a fork of Ferrum that exposes it.
This tests for mobile emulation by:
* Checking that text controlled by a CSS media query is / isn't
visible.
* Checking that touch input is enabled / disabled.
These were (a) trying to use a non-existent session, and (b) trying to
set both `mobile: true` and a resolution, which is now disallowed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /