externalInteractionObjectOptions
Index
Properties
Properties
externaloptionalmobile
When true, the interaction object uses mobile-specific locators and interaction flows
(e.g., opening a bottom sheet before accessing filters, rather than interacting with
an always-visible filter bar).
Typically derived from the viewport width in a Playwright Test fixture:
const viewport = page.viewportSize();
const options = { mobile: viewport ? viewport.width <= 768 : false };
Options for configuring an InteractionObject.