Interface: ScreenLocator
@termwright/test / ScreenLocator
Interface: ScreenLocator
Section titled “Interface: ScreenLocator”Defined in: driver/dist/session-DOkKra9W.d.ts:567
Extends
Section titled “Extends”LocatorBase<"screen">
Properties
Section titled “Properties”description
Section titled “description”
readonlydescription:string
Defined in: driver/dist/session-DOkKra9W.d.ts:504
Human-readable form of the query, as it appears in error messages.
Inherited from
Section titled “Inherited from”LocatorBase.description
domain
Section titled “domain”
readonlydomain:"screen"
Defined in: driver/dist/session-DOkKra9W.d.ts:502
Inherited from
Section titled “Inherited from”LocatorBase.domain
Methods
Section titled “Methods”actionability()
Section titled “actionability()”actionability(
action,opts?):Promise<ActionabilityExplanation>
Defined in: driver/dist/session-DOkKra9W.d.ts:575
Parameters
Section titled “Parameters”action
Section titled “action”"click" | "double-click" | "hover"
PointerOptions
Returns
Section titled “Returns”Promise<ActionabilityExplanation>
and(
other):ScreenLocator
Defined in: driver/dist/session-DOkKra9W.d.ts:508
Parameters
Section titled “Parameters”ScreenLocator
Returns
Section titled “Returns”ScreenLocator
Inherited from
Section titled “Inherited from”LocatorBase.and
cellSnapshot()
Section titled “cellSnapshot()”cellSnapshot(
opts?):Promise<LocatorCellSnapshot>
Defined in: driver/dist/session-DOkKra9W.d.ts:532
Atomic cells inside this locator’s qualified rectangle.
Parameters
Section titled “Parameters”LocatorCellSnapshotOptions
Returns
Section titled “Returns”Promise<LocatorCellSnapshot>
Inherited from
Section titled “Inherited from”LocatorBase.cellSnapshot
checkpoint()
Section titled “checkpoint()”checkpoint():
ObservationStamp
Defined in: driver/dist/session-DOkKra9W.d.ts:513
Current committed observation used to arm race-free custom waits.
Returns
Section titled “Returns”ObservationStamp
Inherited from
Section titled “Inherited from”LocatorBase.checkpoint
click()
Section titled “click()”click(
opts?):Promise<ActionReceipt>
Defined in: driver/dist/session-DOkKra9W.d.ts:518
Parameters
Section titled “Parameters”PointerOptions
Returns
Section titled “Returns”Promise<ActionReceipt>
Inherited from
Section titled “Inherited from”LocatorBase.click
count()
Section titled “count()”count():
Promise<number>
Defined in: driver/dist/session-DOkKra9W.d.ts:511
Returns
Section titled “Returns”Promise<number>
Inherited from
Section titled “Inherited from”LocatorBase.count
doubleClick()
Section titled “doubleClick()”doubleClick(
opts?):Promise<ActionReceipt>
Defined in: driver/dist/session-DOkKra9W.d.ts:519
Parameters
Section titled “Parameters”PointerOptions
Returns
Section titled “Returns”Promise<ActionReceipt>
Inherited from
Section titled “Inherited from”LocatorBase.doubleClick
dragTo()
Section titled “dragTo()”dragTo(
target,opts?):Promise<ActionReceipt>
Defined in: driver/dist/session-DOkKra9W.d.ts:521
Parameters
Section titled “Parameters”target
Section titled “target”ScreenLocator
LocatorDragOptions
Returns
Section titled “Returns”Promise<ActionReceipt>
Inherited from
Section titled “Inherited from”LocatorBase.dragTo
evaluateCondition()
Section titled “evaluateCondition()”evaluateCondition(
condition,opts?):Promise<ConditionResult>
Defined in: driver/dist/session-DOkKra9W.d.ts:574
Parameters
Section titled “Parameters”condition
Section titled “condition”ScreenCondition
WaitOptions
Returns
Section titled “Returns”Promise<ConditionResult>
filter()
Section titled “filter()”filter(
options):ScreenLocator
Defined in: driver/dist/session-DOkKra9W.d.ts:570
Parameters
Section titled “Parameters”options
Section titled “options”ScreenLocatorFilterOptions
Returns
Section titled “Returns”ScreenLocator
first()
Section titled “first()”first():
ScreenLocator
Defined in: driver/dist/session-DOkKra9W.d.ts:505
Returns
Section titled “Returns”ScreenLocator
Inherited from
Section titled “Inherited from”LocatorBase.first
geometry()
Section titled “geometry()”geometry():
Promise<LocatorGeometry>
Defined in: driver/dist/session-DOkKra9W.d.ts:524
Atomic, evidence-qualified geometry. Never invents a rectangle.
Returns
Section titled “Returns”Promise<LocatorGeometry>
Inherited from
Section titled “Inherited from”LocatorBase.geometry
getByScreenText()
Section titled “getByScreenText()”getByScreenText(
text,opts?):ScreenLocator
Defined in: driver/dist/session-DOkKra9W.d.ts:569
Parameters
Section titled “Parameters”string | RegExp
ScreenTextLocatorOptions
Returns
Section titled “Returns”ScreenLocator
hitTest()
Section titled “hitTest()”hitTest(
opts?):Promise<PointerHitTest>
Defined in: driver/dist/session-DOkKra9W.d.ts:528
Whether pointer input at the chosen cell reaches this exact target.
Parameters
Section titled “Parameters”position?
Section titled “position?”{ columnOffset: number; rowOffset: number; }
position.columnOffset
Section titled “position.columnOffset”number
position.rowOffset
Section titled “position.rowOffset”number
Returns
Section titled “Returns”Promise<PointerHitTest>
Inherited from
Section titled “Inherited from”LocatorBase.hitTest
hover()
Section titled “hover()”hover(
opts?):Promise<ActionReceipt>
Defined in: driver/dist/session-DOkKra9W.d.ts:520
Parameters
Section titled “Parameters”PointerOptions
Returns
Section titled “Returns”Promise<ActionReceipt>
Inherited from
Section titled “Inherited from”LocatorBase.hover
last()
Section titled “last()”last():
ScreenLocator
Defined in: driver/dist/session-DOkKra9W.d.ts:506
Returns
Section titled “Returns”ScreenLocator
Inherited from
Section titled “Inherited from”LocatorBase.last
nth(
index):ScreenLocator
Defined in: driver/dist/session-DOkKra9W.d.ts:507
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”ScreenLocator
Inherited from
Section titled “Inherited from”LocatorBase.nth
or(
other):ScreenLocator
Defined in: driver/dist/session-DOkKra9W.d.ts:509
Parameters
Section titled “Parameters”ScreenLocator
Returns
Section titled “Returns”ScreenLocator
Inherited from
Section titled “Inherited from”LocatorBase.or
resolve()
Section titled “resolve()”resolve(
opts?):Promise<ResolvedTarget<"screen">>
Defined in: driver/dist/session-DOkKra9W.d.ts:510
Parameters
Section titled “Parameters”WaitOptions
Returns
Section titled “Returns”Promise<ResolvedTarget<"screen">>
Inherited from
Section titled “Inherited from”LocatorBase.resolve
textContent()
Section titled “textContent()”textContent():
Promise<string>
Defined in: driver/dist/session-DOkKra9W.d.ts:533
Returns
Section titled “Returns”Promise<string>
Inherited from
Section titled “Inherited from”LocatorBase.textContent
visibility()
Section titled “visibility()”visibility():
Promise<LocatorVisibility>
Defined in: driver/dist/session-DOkKra9W.d.ts:526
Attached/displayed/viewport facts without collapsing unknown to false.
Returns
Section titled “Returns”Promise<LocatorVisibility>
Inherited from
Section titled “Inherited from”LocatorBase.visibility
waitFor()
Section titled “waitFor()”waitFor(
opts?):Promise<void>
Defined in: driver/dist/session-DOkKra9W.d.ts:571
Parameters
Section titled “Parameters”object & WaitOptions
Returns
Section titled “Returns”Promise<void>
waitForCheckpointChange()
Section titled “waitForCheckpointChange()”waitForCheckpointChange(
options):Promise<ObservationStamp>
Defined in: driver/dist/session-DOkKra9W.d.ts:515
Waits for a newer committed observation without a check/subscribe gap.
Parameters
Section titled “Parameters”options
Section titled “options”object & WaitOptions
Returns
Section titled “Returns”Promise<ObservationStamp>
Inherited from
Section titled “Inherited from”LocatorBase.waitForCheckpointChange
wheel()
Section titled “wheel()”wheel(
opts):Promise<ActionReceipt>
Defined in: driver/dist/session-DOkKra9W.d.ts:522
Parameters
Section titled “Parameters”LocatorWheelOptions
Returns
Section titled “Returns”Promise<ActionReceipt>
Inherited from
Section titled “Inherited from”LocatorBase.wheel
within()
Section titled “within()”within(
parent):ScreenLocator
Defined in: driver/dist/session-DOkKra9W.d.ts:568
Parameters
Section titled “Parameters”parent
Section titled “parent”ScreenLocator
Returns
Section titled “Returns”ScreenLocator