Skip to content

Enable mobile emulation#292

Open
duncan-bayne wants to merge 7 commits into
rubycdp:mainfrom
radiopaedia:216-mobile-emulation
Open

Enable mobile emulation#292
duncan-bayne wants to merge 7 commits into
rubycdp:mainfrom
radiopaedia:216-mobile-emulation

Conversation

@duncan-bayne

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

Copy link
Copy Markdown
Contributor

🚨 Needs rubycdp/ferrum#527 before merging. 🚨

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
@duncan-bayne duncan-bayne force-pushed the 216-mobile-emulation branch 2 times, most recently from cc67c32 to d2405cd Compare May 14, 2025 01:57
@duncan-bayne duncan-bayne force-pushed the 216-mobile-emulation branch from d2405cd to 7312657 Compare May 4, 2026 05:42
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.
@duncan-bayne duncan-bayne force-pushed the 216-mobile-emulation branch from cbcfb69 to b4e8fef Compare May 4, 2026 05:57
@duncan-bayne duncan-bayne marked this pull request as ready for review May 13, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant