Skip to content

ScreenCILocator

ScreenCILocator = Omit<Locator, "click" | "fill" | "check" | "uncheck" | "setChecked" | "tap" | "selectOption" | "selectText" | "dragTo" | LocatorReturnMethodNames | "all" | "page"> & object

Defined in: types.ts:480

all(): Promise<ScreenCILocator[]>

Promise<ScreenCILocator[]>

and(…args): ScreenCILocator

…[Locator]

ScreenCILocator

check(options?): Promise<void>

Checks the checkbox or radio button.

ScreenCI defaults noWaitAfter to true for the underlying click. Pass noWaitAfter: false to keep Playwright’s default waiting behavior.

ScreenCILocatorCheckOptions

Promise<void>

click(options?): Promise<void>

Clicks the element 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.

ScreenCILocatorClickOptions

Promise<void>

describe(…args): ScreenCILocator

…[string]

ScreenCILocator

dragTo(target, options?): Promise<void>

Drags the element to the target locator with animated cursor movement.

The animation consists of:

  1. Cursor moves to the source element (moveDuration, moveEasing).
  2. A brief pause (preDragPause) then a mouseDown.
  3. Cursor drags from source to target (dragDuration, dragEasing).
  4. A mouseUp at the target.

Locator

The locator of the drop target element.

ScreenCILocatorDragToOptions

Promise<void>

fill(value, options?): Promise<void>

Types value character-by-character using pressSequentially.

string

The text to type into the element.

ScreenCILocatorFillOptions

Promise<void>

filter(…args): ScreenCILocator

…[object]

ScreenCILocator

first(): ScreenCILocator

ScreenCILocator

getByAltText(…args): ScreenCILocator

…[string | RegExp, object]

ScreenCILocator

getByLabel(…args): ScreenCILocator

…[string | RegExp, object]

ScreenCILocator

getByPlaceholder(…args): ScreenCILocator

…[string | RegExp, object]

ScreenCILocator

getByRole(…args): ScreenCILocator

…["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" | "region" | "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

hover(options?): Promise<void>

Hovers over the element with an animated cursor move.

ScreenCILocatorHoverOptions

Promise<void>

last(): ScreenCILocator

ScreenCILocator

locator(…args): ScreenCILocator

…[string | Locator, object]

ScreenCILocator

nth(…args): ScreenCILocator

…[number]

ScreenCILocator

or(…args): ScreenCILocator

…[Locator]

ScreenCILocator

page(): ScreenCIPage

ScreenCIPage

pressSequentially(text, options?): Promise<void>

Presses keys one by one as if on a physical keyboard.

string

The text to type.

ScreenCILocatorPressSequentiallyOptions

Promise<void>

selectOption(values, options?): Promise<string[]>

Selects an option in a <select> element.

Note: the native dropdown UI is not rendered. ScreenCI animates the cursor to the select element, clicks it, and then selects the option programmatically, but no dropdown will appear on screen. ScreenCI defaults noWaitAfter to true for the underlying action. Pass noWaitAfter: false to keep Playwright’s default waiting behavior.

string | ElementHandle<Node> | readonly string[] | { } | readonly ElementHandle<Node>[] | readonly object[] | null

The option(s) to select (value, label, index, or element).

ScreenCILocatorSelectOptionOptions

Promise<string[]>

selectText(options?): Promise<void>

Selects all text content of the element with an animated cursor move and triple-click animation.

ScreenCILocatorSelectTextOptions

Promise<void>

setChecked(checked, options?): Promise<void>

Sets the checked state of a checkbox or radio element. Delegates to the instrumented check() or uncheck() based on checked. ScreenCI defaults noWaitAfter to true for the underlying click. Pass noWaitAfter: false to keep Playwright’s default waiting behavior.

boolean

ScreenCILocatorCheckOptions

Promise<void>

tap(options?): Promise<void>

Taps the element (touch event).

ScreenCI defaults noWaitAfter to true for this action so the rendered tap is not delayed by later navigation waits. Pass noWaitAfter: false to keep Playwright’s default waiting behavior.

object & object

Promise<void>

uncheck(options?): Promise<void>

Unchecks the checkbox.

ScreenCI defaults noWaitAfter to true for the underlying click. Pass noWaitAfter: false to keep Playwright’s default waiting behavior.

ScreenCILocatorCheckOptions

Promise<void>