Skip to content

Conversation

duncan-bayne
Copy link

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

🚨 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
@duncan-bayne duncan-bayne force-pushed the 216-mobile-emulation branch from 410be86 to cc67c32 Compare May 14, 2025 01:41
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 cc67c32 to d2405cd Compare May 14, 2025 01:57
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.

1 participant