Skip to main content

externalInteractionObjectOptions

Options for configuring an InteractionObject.

Index

Properties

Properties

externaloptionalmobile

mobile?: boolean

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 };
Page Options