Skip to content

ScreenCIPage

ScreenCIPage = Omit<Page, "click" | "mouse" | "screenshot" | "waitForTimeout" | LocatorReturnMethodNames> & object

Defined in: types.ts:1118

mouse: ScreenCIMouse

click(selector, options?): Promise<void>

Clicks an element matched by selector with an animated cursor move.

ScreenCI defaults noWaitAfter to true for this action so the rendered click can complete before navigation waits. Pass noWaitAfter: false to keep Playwright’s default waiting behavior.

string

object & CursorActionMoveOptions & object

Promise<void>

getByAltText(…args): ScreenCILocator

…[string | RegExp, object]

ScreenCILocator

getByLabel(…args): ScreenCILocator

…[string | RegExp, object]

ScreenCILocator

getByPlaceholder(…args): ScreenCILocator

…[string | RegExp, object]

ScreenCILocator

getByRole(…args): ScreenCILocator

…["region" | "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "caption" | "cell" | "checkbox" | "code" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "none" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem", object]

ScreenCILocator

getByTestId(…args): ScreenCILocator

…[string | RegExp]

ScreenCILocator

getByText(…args): ScreenCILocator

…[string | RegExp, object]

ScreenCILocator

getByTitle(…args): ScreenCILocator

…[string | RegExp, object]

ScreenCILocator

locator(…args): ScreenCILocator

…[string, object]

ScreenCILocator

screenshot(options?): Promise<Buffer<ArrayBufferLike>>

Captures a screenshot. Inside a video() recording this also writes a branded still as a separate screenshot recording named ”

ScreenCIScreenshotOptions

Promise<Buffer<ArrayBufferLike>>

waitForTimeout(timeout?): Promise<void>

Waits in the recording timeline. Plain screenci test collapses this to 0ms so authoring runs stay fast; screenci record and screenci test --mock-record keep the requested duration.

Use Playwright locator/action waits for application readiness instead of relying on this as a real polling delay.

number

Promise<void>