Skip to main content

Class: SliderDriver

Defined in: packages/component-driver-fluent-v9/src/components/SliderDriver.ts:46

Driver for the Fluent v9 Slider component.

DOM audit (@fluentui/react-components@9.74.3): the data-testid/locator you put on <Slider> forwards straight to a REAL native <input class="fui-Slider__input" type="range"> โ€” Fluent's own slot docs call this the slider's PRIMARY slot ("all native properties specified directly on <Slider> will be applied to this slot"), confirmed against the rendered DOM: min/max/step/required/aria-label/value/disabled all land on it as plain native attributes/properties, exactly HTMLRangeInputDriver's existing contract โ€” so this driver extends it wholesale (native getValue/setValue via Interactor.getInputValue/setRangeValue, plus isDisabled, already apply unchanged) and adds only what's Fluent-specific. The visible rail/thumb render as separate SIBLING <div class="fui-Slider__rail">/ <div class="fui-Slider__thumb"> elements with no interactive semantics of their own (no role, no tabindex โ€” purely CSS-positioned off the input's live value via a CSS custom property); the package's own type declarations describe the thumb slot as "containing role='slider'", but the rendered DOM has no such attribute anywhere โ€” the accessible slider semantics come for free from the native <input type="range">'s implicit ARIA mapping, not from any div. role/aria-value* are therefore never read here (unlike the pure- ARIA Radix/Astryx sliders, which have no native input to fall back on).

Fluent only stamps the min/max/step attributes when the matching prop is explicitly passed โ€” a <Slider> rendered with none of them has NEITHER attribute in the DOM, even though Fluent's own documented defaults (min={0}, max={100}, step={1}) still govern the rendered/clamped value identically (matching the native <input type="range"> spec's own defaults). getMin, getMax, and getStep fall back to those same defaults instead of surfacing NaN/null for an omitted prop that still has real, defined behavior.

Scope: single-thumb only โ€” Fluent v9 ships no multi-thumb/range variant of Slider (SliderProps.value/defaultValue is a single number, never an array), so there is no multi-thumb gap to record here.

Extending HTMLRangeInputDriver also inherits its isReadonly(). Fluent's Slider has no documented readOnly prop, and the native readonly attribute has no defined effect on type="range" per the HTML spec (the same restriction CheckboxDriver notes for type="checkbox"), so that method only reflects an aria-readonly a caller sets directly โ€” inherited, not a genuine Fluent Slider capability.

Extendsโ€‹

  • HTMLRangeInputDriver

Implementsโ€‹

  • IRequirableDriver

Constructorsโ€‹

Constructorโ€‹

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

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

Parametersโ€‹

locatorโ€‹

PartLocator

interactorโ€‹

Interactor

option?โ€‹

Partial<IComponentDriverOption<{ }>>

Returnsโ€‹

SliderDriver

Inherited fromโ€‹

HTMLRangeInputDriver.constructor

Accessorsโ€‹

driverNameโ€‹

Get Signatureโ€‹

get driverName(): string

Defined in: packages/component-driver-fluent-v9/src/components/SliderDriver.ts:96

Identifier for this driver.

Returnsโ€‹

string

Overridesโ€‹

HTMLRangeInputDriver.driverName

Methodsโ€‹

getLabel()โ€‹

getLabel(): Promise<Optional<string>>

Defined in: packages/component-driver-fluent-v9/src/components/SliderDriver.ts:87

The slider's accessible name, read from a directly-set aria-label on the input, or undefined when none is present. Fluent's Slider has no label prop of its own (unlike Checkbox/Radio/Switch) โ€” a caller either sets aria-label directly (what this reads) or wraps the slider in a Field, whose own driver owns that label read instead.

Returnsโ€‹

Promise<Optional<string>>


getMax()โ€‹

getMax(): Promise<number>

Defined in: packages/component-driver-fluent-v9/src/components/SliderDriver.ts:61

The maximum value of the slider (the input's native max attribute), falling back to Fluent's documented default of 100 when the max prop was never passed (see class doc).

Returnsโ€‹

Promise<number>


getMin()โ€‹

getMin(): Promise<number>

Defined in: packages/component-driver-fluent-v9/src/components/SliderDriver.ts:52

The minimum value of the slider (the input's native min attribute), falling back to Fluent's documented default of 0 when the min prop was never passed (see class doc).

Returnsโ€‹

Promise<number>


getStep()โ€‹

getStep(): Promise<number>

Defined in: packages/component-driver-fluent-v9/src/components/SliderDriver.ts:71

The slider's step increment (the input's native step attribute), falling back to Fluent's documented default of 1 when the step prop was never passed (see class doc). Fluent's step has no "unset"/free-movement variant (unlike some other design systems' sliders), so this never returns null.

Returnsโ€‹

Promise<number>


isRequired()โ€‹

isRequired(): Promise<boolean>

Defined in: packages/component-driver-fluent-v9/src/components/SliderDriver.ts:76

Whether the slider is marked required (native required attribute).

Returnsโ€‹

Promise<boolean>

Implementation ofโ€‹

IRequirableDriver.isRequired

Inherited members (25)

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โ€‹

HTMLRangeInputDriver.commutableOption


interactorโ€‹

readonly interactor: Interactor

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

Inherited fromโ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.exists


focus()โ€‹

focus(option?): Promise<void>

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

Parametersโ€‹
option?โ€‹

Partial<FocusOption>

Returnsโ€‹

Promise<void>

Inherited fromโ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.getText


getValue()โ€‹

getValue(): Promise<number>

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

Read the current value of the range input.

Throws ElementNotFoundError when the element is absent, rather than reporting absence in the return value. A range's value is a number, which has no spare inhabitant for "nothing found" โ€” the sibling drivers can say Nullable<string> because null is a legitimate form value for them, whereas this read previously returned Number.parseFloat('') โ€” NaN โ€” so every comparison against a missing slider was silently false. See ADR-006 ยง7.

Returnsโ€‹

Promise<number>

Throwsโ€‹

If the range input is not found.

Inherited fromโ€‹

HTMLRangeInputDriver.getValue


hover()โ€‹

hover(option?): Promise<void>

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

Parametersโ€‹
option?โ€‹

Partial<HoverOption>

Returnsโ€‹

Promise<void>

Inherited fromโ€‹

HTMLRangeInputDriver.hover


isDisabled()โ€‹

isDisabled(): Promise<boolean>

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

Check whether the range input is disabled.

Returnsโ€‹

Promise<boolean>

Inherited fromโ€‹

HTMLRangeInputDriver.isDisabled


isReadonly()โ€‹

isReadonly(): Promise<boolean>

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

Check whether the range input is read only.

Returnsโ€‹

Promise<boolean>

Inherited fromโ€‹

HTMLRangeInputDriver.isReadonly


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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.scrollIntoView


setValue()โ€‹

setValue(value): Promise<boolean>

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

Set the value of the range input. The browser snaps an off-step target to the nearest valid step; jsdom stores it verbatim. Pass a step-aligned value for assertions that must hold in both environments.

Parametersโ€‹
valueโ€‹

number

Returnsโ€‹

Promise<boolean>

Inherited fromโ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.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โ€‹

HTMLRangeInputDriver.scrollBy