Skip to main content

Class: ComboboxDriver

Defined in: packages/component-driver-fluent-v9/src/components/ComboboxDriver.ts:74

Driver for the Fluent v9 Combobox (@fluentui/react-combobox, re-exported by @fluentui/react-components), composed with Option/OptionGroup children.

DOM audit (@fluentui/react-components@9.74.3): the data-testid/locator you put on <Combobox> forwards straight to a REAL native <input role="combobox" type="text"> — the component root IS the input, exactly like Input's own precedent (see the package README) — so this driver extends HTMLTextInputDriver wholesale for getValue/setValue/ isDisabled/isReadonly/isRequired/isError, all read/written on that same native element. setValue drives the FREEFORM typed text; selecting an option below also mirrors that option's text onto the same input value (verified against rendered DOM — Fluent's own onChange/selectOption both write the identical uncontrolled value state), so getValue() reflects either path uniformly with no override needed.

Listbox portal — trigger-anchored + byLinkedElement, the same technique MenuDriver and component-driver-radix-v1's PopoverDriver use (see their class docs): the popup listbox (role="listbox", class fui-Listbox fui-Combobox__listbox) mounts into a cloned FluentProvider on document.body — a sibling of the render root, not a descendant — ONLY while open. Fluent links it back to the trigger input via aria-controls pointing at the listbox's id, but — UNLIKE Menu's always-present trigger id — aria-controls here is ABSENT while closed (confirmed by DOM audit: the attribute is omitted entirely, not merely empty), so resolving listboxLocator throws while closed; isOpen treats that failure as "not open" instead of letting it throw (the same wall component-driver-radix-v1's PopoverDriver.exists() documents for its own aria-controls link). fui-Combobox__listbox is Combobox-specific (Dropdown stamps the distinct fui-Dropdown__listbox on the same underlying Listbox component — DOM audit), but instance disambiguation here comes from the id link itself, not the class, so two simultaneously open Comboboxes each resolve their own listbox correctly regardless.

Options are enumerated through OptionGroup wrappers: a grouped Combobox renders <div role="listbox"><div role="group"> (the OptionGroup__label span, then the Option divs, as the group's own children) </div></div> — DOM audit. Options are direct children of the GROUP, not of the listbox itself, when grouped. childListHelper's groupSelector recursion ('[role="group"]') descends through that wrapper transparently — the label span at the group's first position matches neither the option selector nor the group selector, so the walk simply steps past it — so getOptionCount/getOptionLabels/ selectByLabel count and resolve options correctly whether the scene groups them or not.

No portable selectByValue: Option's value prop is NEVER reflected to the DOM — confirmed by DOM audit (an <Option value="x"> renders no attribute carrying "x" anywhere; only the visible text ever renders, since Fluent's useOptionBase_unstable keeps value in React context only and the intrinsic-props filter for a <div> strips it before render). The visible label is therefore the ONLY per-option identity a driver can read — the same "label-only identity" limitation component-driver-radix-v1 documents for Radix Select.Item (#923) — so this driver exposes selectByLabel only.

Scope limit — single-select only: in multiselect mode Fluent changes every Option's role from "option"/aria-selected to "menuitemcheckbox"/aria-checked entirely (DOM audit of useOptionBase_unstable), which this driver's [role="option"] selectors do not match. Driving a multiselect Combobox is out of scope here — it would need an array-shaped selection API, not this single-value one.

Extends​

  • HTMLTextInputDriver

Constructors​

Constructor​

new ComboboxDriver(locator, interactor, option?): ComboboxDriver

Defined in: packages/component-driver-html/dist/index.d.mts:295

Create a text input driver.

Parameters​

locator​

PartLocator

interactor​

Interactor

option?​

Partial<IComponentDriverOption<{ }>>

Returns​

ComboboxDriver

Inherited from​

HTMLTextInputDriver.constructor

Accessors​

driverName​

Get Signature​

get driverName(): string

Defined in: packages/component-driver-fluent-v9/src/components/ComboboxDriver.ts:190

Identifier for this driver.

Returns​

string

Overrides​

HTMLTextInputDriver.driverName

Methods​

close()​

close(): Promise<void>

Defined in: packages/component-driver-fluent-v9/src/components/ComboboxDriver.ts:110

Close the listbox by clicking the input, if open.

Returns​

Promise<void>


getOptionByLabel()​

getOptionByLabel(label): Promise<Optional<ComboboxOptionDriver>>

Defined in: packages/component-driver-fluent-v9/src/components/ComboboxDriver.ts:152

The option whose visible label matches label, or undefined when absent (e.g. no option has that text, or the listbox is empty). Opens the listbox first — Fluent only mounts options while open.

Parameters​

label​

string

Returns​

Promise<Optional<ComboboxOptionDriver>>


getOptionCount()​

getOptionCount(): Promise<number>

Defined in: packages/component-driver-fluent-v9/src/components/ComboboxDriver.ts:121

The number of options in the listbox (descends through OptionGroup wrappers — see class doc). Opens the listbox first: Fluent only mounts it while open.

Returns​

Promise<number>


getOptionLabels()​

getOptionLabels(): Promise<string[]>

Defined in: packages/component-driver-fluent-v9/src/components/ComboboxDriver.ts:135

The visible label of every option, in document order (descends through OptionGroup wrappers — see class doc). Opens the listbox first.

Returns​

Promise<string[]>


isOpen()​

isOpen(): Promise<boolean>

Defined in: packages/component-driver-fluent-v9/src/components/ComboboxDriver.ts:94

Whether the popup listbox is mounted. aria-controls (the link listboxLocator resolves through) is absent while closed, so the underlying query cannot even be built — that failure is treated as "not open" rather than left to throw (mirrors component-driver-radix-v1's PopoverDriver.exists()).

Returns​

Promise<boolean>


open()​

open(): Promise<void>

Defined in: packages/component-driver-fluent-v9/src/components/ComboboxDriver.ts:103

Open the listbox by clicking the input, if not already open (Fluent toggles open state on every click of the trigger).

Returns​

Promise<void>


selectByLabel()​

selectByLabel(label): Promise<void>

Defined in: packages/component-driver-fluent-v9/src/components/ComboboxDriver.ts:169

Click the option whose visible label matches label, opening the listbox first. Fluent closes the listbox and mirrors the option's text onto the input's value once selected (verified against rendered DOM) — no additional close() call needed here.

Parameters​

label​

string

Returns​

Promise<void>

Throws​

when no such option is mounted.

Inherited members (27)

Properties​

commutableOption​

readonly commutableOption: CommutableComponentDriverOption

Defined in: packages/core/dist/index.d.mts:1356

The component-agnostic slice of the constructor option that is safe to share across the whole driver tree — everything the constructor received EXCEPT the component-specific parts, which each driver owns for itself. Parent drivers pass this straight to the constructors of children they create dynamically (see the list helpers). See CommutableComponentDriverOption.

Inherited from​

HTMLTextInputDriver.commutableOption


interactor​

readonly interactor: Interactor

Defined in: packages/core/dist/index.d.mts:1346

Inherited from​

HTMLTextInputDriver.interactor

Accessors​

locator​

Get Signature​

get locator(): PartLocator

Defined in: packages/core/dist/index.d.mts:1414

Return the locator of the component

Returns​

PartLocator

Inherited from​

HTMLTextInputDriver.locator


parts​

Get Signature​

get parts(): ScenePartDriver<T>

Defined in: packages/core/dist/index.d.mts:1410

Return driver instance of all the named parts

Returns​

ScenePartDriver<T>

Inherited from​

HTMLTextInputDriver.parts

Methods​

click()​

click(option?): Promise<void>

Defined in: packages/core/dist/index.d.mts:1492

Parameters​
option?​

Partial<ClickOption>

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.click


exists()​

exists(): Promise<boolean>

Defined in: packages/core/dist/index.d.mts:1491

Whether the component exists/attached to the DOM

Returns​

Promise<boolean>

true if the component is attached to the DOM, false otherwise

Inherited from​

HTMLTextInputDriver.exists


focus()​

focus(option?): Promise<void>

Defined in: packages/core/dist/index.d.mts:1501

Parameters​
option?​

Partial<FocusOption>

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.focus


getAttribute()​

getAttribute(attributeName): Promise<Optional<string>>

Defined in: packages/core/dist/index.d.mts:1486

Parameters​
attributeName​

string

Returns​

Promise<Optional<string>>

Inherited from​

HTMLTextInputDriver.getAttribute


getText()​

getText(): Promise<Optional<string>>

Defined in: packages/core/dist/index.d.mts:1485

Get the combined text content of the component

Returns​

Promise<Optional<string>>

If the component exists and has content, it should return the text or otherwise undefined

Inherited from​

HTMLTextInputDriver.getText


getValue()​

getValue(): Promise<string | null>

Defined in: packages/component-driver-html/dist/index.d.mts:299

Read the value of the input element.

Returns​

Promise<string | null>

Inherited from​

HTMLTextInputDriver.getValue


hover()​

hover(option?): Promise<void>

Defined in: packages/core/dist/index.d.mts:1493

Parameters​
option?​

Partial<HoverOption>

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.hover


isDisabled()​

isDisabled(): Promise<boolean>

Defined in: packages/component-driver-html/dist/index.d.mts:311

Check whether the text input is disabled.

Returns​

Promise<boolean>

Inherited from​

HTMLTextInputDriver.isDisabled


isError()​

isError(): Promise<boolean>

Defined in: packages/component-driver-html/dist/index.d.mts:324

Check whether the text input is in an invalid/error state (signalled by aria-invalid="true").

Returns​

Promise<boolean>

Inherited from​

HTMLTextInputDriver.isError


isReadonly()​

isReadonly(): Promise<boolean>

Defined in: packages/component-driver-html/dist/index.d.mts:315

Check whether the text input is read only.

Returns​

Promise<boolean>

Inherited from​

HTMLTextInputDriver.isReadonly


isRequired()​

isRequired(): Promise<boolean>

Defined in: packages/component-driver-html/dist/index.d.mts:319

Check whether the text input is marked required.

Returns​

Promise<boolean>

Inherited from​

HTMLTextInputDriver.isRequired


isVisible()​

isVisible(): Promise<boolean>

Defined in: packages/core/dist/index.d.mts:1576

Whether the component is visible. Visibility is defined that the component does not have the CSS property display: none, visibility: hidden, or opacity: 0. However this does not check whether the component is within the viewport.

Returns​

Promise<boolean>

true if the component is visible, false otherwise

Inherited from​

HTMLTextInputDriver.isVisible


pressKey()​

pressKey(key, option?): Promise<void>

Defined in: packages/core/dist/index.d.mts:1508

Dispatch a keyboard key press on the component. See Interactor.pressKey for the full contract, including modifier-key delivery via PressKeyOption.

Parameters​
key​

string

A KeyboardEvent.key value, e.g. 'Escape', 'Backspace', 'Enter'

option?​

Partial<PressKeyOption>

Modifier flags and other per-press options — see PressKeyOption

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.pressKey


runtimeCssSelector()​

runtimeCssSelector(): Promise<string>

Defined in: packages/core/dist/index.d.mts:1641

Get the runtime CSS selector of the component. This is useful for debugging and testing purposes.

Returns​

Promise<string>

The runtime CSS selector of the component

Inherited from​

HTMLTextInputDriver.runtimeCssSelector


scrollIntoView()​

scrollIntoView(): Promise<void>

Defined in: packages/core/dist/index.d.mts:1529

Scroll the component into the viewport. See Interactor.scrollIntoView.

jsdom has no layout engine, so the scroll is a no-op there and behavioral assertions (visibility, offset) are E2E-only.

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.scrollIntoView


setValue()​

setValue(value): Promise<boolean>

Defined in: packages/component-driver-html/dist/index.d.mts:307

Set the value of the input, if the input is date, the value should be in the format of 'yyyy-MM-dd'. If the input is time, the value should be in the format of 'HH:mm'. If the input is datetime-local, the value should be in the format of 'yyyy-MM-ddTHH:mm'.

Parameters​
value​

string | null

Value to be set.

Returns​

Promise<boolean>

Inherited from​

HTMLTextInputDriver.setValue


typeText()​

typeText(text): Promise<void>

Defined in: packages/core/dist/index.d.mts:1514

Type text into the component as real per-character keystrokes, inserting at the current caret without clearing. See Interactor.typeText.

Parameters​
text​

string

The literal text to type, one keystroke per character

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.typeText


waitUntil()​

waitUntil<T>(option): Promise<T>

Defined in: packages/core/dist/index.d.mts:1596

Type Parameters​
T​

T

Parameters​
option​

WaitUntilOption<T>

Returns​

Promise<T>

Inherited from​

HTMLTextInputDriver.waitUntil


waitUntilComponentState()​

waitUntilComponentState(option?): Promise<void>

Defined in: packages/core/dist/index.d.mts:1595

Wait until the component is in the expected state such as the component's visibility or existence. If the component has not reached the expected state within the timeout, it will throw an error.

By default it waits until the component is attached to the DOM within 30 seconds.

Parameters​
option?​

Partial<Readonly<WaitForOption>>

The option to configure the wait behavior

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.waitUntilComponentState


waitUntilVisible()​

waitUntilVisible(timeoutMs?): Promise<void>

Defined in: packages/core/dist/index.d.mts:1583

Wait until the component is attached and becomes visible to the DOM.

Parameters​
timeoutMs?​

number

The number of milliseconds to wait before timing out. Defaults to defaultWaitForOption.timeoutMs so this wait shares a single flake-tolerance source with waitUntilComponentState (#1057).

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.waitUntilVisible


within()​

within<ContentT>(parts): ScenePartDriver<ContentT>

Defined in: packages/core/dist/index.d.mts:1468

Driver instances for a caller-supplied interior scene, resolved against this component's ComponentDriver.interiorLocator.

The call-time counterpart to ComponentDriver.parts: parts is the chrome the driver author hardcodes, this is the interior the scene author owns — a dialog's body, a popover's panel, a toast's action area. A PartLocator resolves lazily and queries nothing here, so this is synchronous and safe to call before the interior has mounted.

This replaced an earlier ContainerDriver base whose content option required the same scene to be named twice — once as a type argument, once in the driver option — plus a laundering constructor in every subclass (ADR-019). Named within rather than getContent because leaf drivers already own that name for reading a component's own text (a badge's content, a tooltip's content), and a base-class member cannot collide with them.

Interior children are constructed with an empty option, exactly as content parts always have been: an interior belongs to the scene, so it inherits no driver-specific configuration from its host. This differs deliberately from ComponentDriver.parts, whose children do inherit the host's option.

Type Parameters​
ContentT​

ContentT extends ScenePart

Parameters​
parts​

ContentT

The interior scene to resolve against this component's interior

Returns​

ScenePartDriver<ContentT>

One driver instance per named part

Inherited from​

HTMLTextInputDriver.within


overriddenParentLocator()​

static overriddenParentLocator(_option?): Optional<PartLocator>

Defined in: packages/core/dist/index.d.mts:1393

Portal hook: where to re-root this driver's locator when its component renders outside the parent's DOM (a modal, popup, drawer). Return the PartLocator that locates the component from the document root, or undefined (the default) for normal in-tree components whose locator chains from the parent.

This is static because it is per-class metadata read off the constructor before any instance exists — which makes the "no instance state" constraint structural rather than a documented caution. Override with static override.

option is the fully-merged constructor option the driver is about to receive (the same value passed to the driver's own constructor) — a purely static, per-invocation input, not instance state — so a driver whose portalling is conditional on how its scene configures it (e.g. an overlay that can render teleported OR in-tree, such as PrimeVue's appendTo="self") can branch on a flag there instead of always re-rooting. Ignore it to keep unconditional portal behavior.

Parameters​
_option?​

Partial<IComponentDriverOption<any>>

Returns​

Optional<PartLocator>

Inherited from​

HTMLTextInputDriver.overriddenParentLocator


overrideLocatorRelativePosition()​

static overrideLocatorRelativePosition(_option?): Optional<LocatorRelativePosition>

Defined in: packages/core/dist/index.d.mts:1406

Portal hook: the locator relative position to apply when the component's real DOM is a sibling/elsewhere rather than a descendant (e.g. a MUI dialog rendered at the document root, located by a "Same"-level selector). Return undefined (the default) to keep the natural position declared by the ScenePart.

Static for the same reason as ComponentDriver.overriddenParentLocator: it is class-level metadata read before construction. Override with static override.

See ComponentDriver.overriddenParentLocator for what option carries and why accepting it does not reintroduce instance state.

Parameters​
_option?​

Partial<IComponentDriverOption<any>>

Returns​

Optional<LocatorRelativePosition>

Inherited from​

HTMLTextInputDriver.overrideLocatorRelativePosition

Protected members (18)

Accessors​

interiorLocator​

Get Signature​

get protected interiorLocator(): PartLocator

Defined in: packages/core/dist/index.d.mts:1442

The element ComponentDriver.within resolves an interior scene against — "inside this component", as this driver defines inside. Defaults to ComponentDriver.locator, which is already correct wherever a driver's own locator resolves to the surface holding caller content (Radix/Reka anchor at Dialog.Content, Fluent at DialogSurface).

Override it when the driver's locator resolves to a wrapper instead. MUI's Dialog, Drawer and Menu are the shipped cases: their locator is the portal-rendered Modal root, whose children are the backdrop, two focus-trap sentinels and a positioning container. Un-narrowed, an interior there reaches MUI's own chrome, and a 'Child'-relative interior part resolves to .MuiBackdrop-root rather than to anything the scene wrote — silently, since a locator that matches the wrong element raises nothing.

An override only helps where that chrome is ancestral to the caller's content. Where a design system interleaves chrome beside it — Fluent's focus-trap sentinels are siblings of the dialog body — no anchor separates the two, and the default stands (ADR-019's rollout-width audit).

An override MUST resolve to an element containing everything the caller supplied. For a slotted component that means the surface, never one slot: MUI spreads caller content across DialogTitle/DialogContent/DialogActions as siblings, so narrowing to .MuiDialogContent-root would drop the action buttons scenes click. Over-narrowing fails the same silent way it fixes — the part just stops resolving (ADR-019).

Returns​

PartLocator

Inherited from​

HTMLTextInputDriver.interiorLocator

Methods​

activate()​

protected activate(): Promise<void>

Defined in: packages/core/dist/index.d.mts:1522

Activate the component without relying on pointer geometry. See Interactor.activate.

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.activate


awaitPostcondition()​

protected awaitPostcondition(postcondition, probeFn, option?): Promise<void>

Defined in: packages/core/dist/index.d.mts:1628

Hold an action open until its own postcondition holds, so the action does not resolve while the DOM it promised is still arriving.

Why actions, not reads or assertions. An interactor settles the framework's scheduler after a write (React act(), Vue nextTick(), Angular whenStable()) and then treats the DOM as final. A component that defers its own DOM work onto a host timer — a setTimeout to re-register a select's options, to restore a picker's section spans — lands after that settle, so the next single-shot read observes a transient state that is neither the old value nor the new one. Making reads retry cannot fix this (a read does not know what it is waiting for, and negative reads must stay fast); making every mutation drain a fixed extra macrotask is a sleep at framework scale. The action is the only layer that knows what it promised, so the action is where the wait belongs.

Probing uses waitUntil's escalating intervals, so a postcondition that already holds costs one probe and no delay.

Parameters​
postcondition​

string

Human-readable description of the awaited state, used verbatim in PostconditionNotMetError. Phrase it as the state that must arrive, not the action taken.

probeFn​

() => boolean | Promise<boolean>

Returns true once the postcondition holds. Keep it cheap — it runs repeatedly.

option?​
timeoutMs?​

number

Defaults to defaultWaitForOption.timeoutMs so every wait in the library shares one flake-tolerance source (#1057).

Returns​

Promise<void>

Throws​

If the postcondition never holds. Failing here is deliberate: an action that cannot keep its promise is a real defect, and reporting it at the action gives a far better diagnostic than the downstream assertion mismatch it would otherwise become.

Inherited from​

HTMLTextInputDriver.awaitPostcondition


contextMenu()​

protected contextMenu(): Promise<void>

Defined in: packages/core/dist/index.d.mts:1518

Dispatch a right-click / contextmenu event on the component. See Interactor.contextMenu.

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.contextMenu


drag()​

protected drag(delta): Promise<void>

Defined in: packages/core/dist/index.d.mts:1560

Drag this component by the given pixel delta from its center. See Interactor.drag.

Prefer a keyboard-driven setValue over a true drag in real drivers — these drag primitives exist only for cases keyboard cannot express (e.g. panning a Lightbox, reordering a column). jsdom has no layout engine, so the positional outcome of the drag is E2E-only there.

Parameters​
delta​

Point

Pixel offset to drag by

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.drag


dragTo()​

protected dragTo(target): Promise<void>

Defined in: packages/core/dist/index.d.mts:1549

Drag this component and drop it onto another component. See Interactor.dragTo.

Prefer a keyboard-driven setValue over a true drag in real drivers — these drag primitives exist only for cases keyboard cannot express (e.g. panning a Lightbox, reordering a column). jsdom has no layout engine, so the positional outcome of the drag is E2E-only there.

Parameters​
target​

ComponentDriver<any>

Another driver whose root element is the drop target

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.dragTo


enforcePartExistence()​

protected enforcePartExistence(partName): Promise<void>

Defined in: packages/core/dist/index.d.mts:1474

Check the specified parts' existences, and throw MissingPartError if any of the part is found not existence. Existence is defined by the part's existence in the DOM regardless of its visibility on the screen

Parameters​
partName​

readonly never[]

Single or array of the names of the parts to be enforced

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.enforcePartExistence


getBoundingRect()​

protected getBoundingRect(): Promise<BoundingRect>

Defined in: packages/core/dist/index.d.mts:1567

Get this component's bounding rectangle. See Interactor.getBoundingRect.

jsdom has no layout engine, so every coordinate and dimension is 0 there; real geometry is E2E-only.

Returns​

Promise<BoundingRect>

Inherited from​

HTMLTextInputDriver.getBoundingRect


getMissingPartNames()​

protected getMissingPartNames(partName): Promise<readonly never[]>

Defined in: packages/core/dist/index.d.mts:1480

Get the names of parts not in the DOM

Parameters​
partName​

readonly never[]

Single or array of the names of the parts to be examined

Returns​

Promise<readonly never[]>

Inherited from​

HTMLTextInputDriver.getMissingPartNames


innerHTML()​

protected innerHTML(): Promise<string>

Defined in: packages/core/dist/index.d.mts:1635

Get the inner HTML of the component

Returns​

Promise<string>

The inner HTML of the component

Inherited from​

HTMLTextInputDriver.innerHTML


mouseDown()​

protected mouseDown(option?): Promise<void>

Defined in: packages/core/dist/index.d.mts:1495

Parameters​
option?​

Partial<MouseDownOption>

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.mouseDown


mouseEnter()​

protected mouseEnter(option?): Promise<void>

Defined in: packages/core/dist/index.d.mts:1499

Parameters​
option?​

Partial<MouseEnterOption>

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.mouseEnter


mouseLeave()​

protected mouseLeave(option?): Promise<void>

Defined in: packages/core/dist/index.d.mts:1500

Parameters​
option?​

Partial<MouseLeaveOption>

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.mouseLeave


mouseMove()​

protected mouseMove(option?): Promise<void>

Defined in: packages/core/dist/index.d.mts:1494

Parameters​
option?​

Partial<MouseMoveOption>

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.mouseMove


mouseOut()​

protected mouseOut(option?): Promise<void>

Defined in: packages/core/dist/index.d.mts:1498

Parameters​
option?​

Partial<MouseOutOption>

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.mouseOut


mouseOver()​

protected mouseOver(option?): Promise<void>

Defined in: packages/core/dist/index.d.mts:1497

Parameters​
option?​

Partial<HoverOption>

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.mouseOver


mouseUp()​

protected mouseUp(option?): Promise<void>

Defined in: packages/core/dist/index.d.mts:1496

Parameters​
option?​

Partial<MouseUpOption>

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.mouseUp


scrollBy()​

protected scrollBy(delta): Promise<void>

Defined in: packages/core/dist/index.d.mts:1538

Scroll the component by the given pixel delta. See Interactor.scrollBy.

jsdom has no layout engine, so the scroll is a no-op there and behavioral assertions (resulting offset) are E2E-only.

Parameters​
delta​

Point

Pixel offset to scroll by

Returns​

Promise<void>

Inherited from​

HTMLTextInputDriver.scrollBy