UNPKG

@serenity-js/web

Version:

Serenity/JS Screenplay Pattern library offering a flexible, web driver-agnostic approach for interacting with web-based user interfaces and components, suitable for various testing contexts

25 lines 983 B
import { TinyType } from 'tiny-types'; /** * Describes the [`<option />`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option) * elements to select. * * ## Learn more * * - [`Select`](https://serenity-js.org/api/web/class/Select/) * - [`Selected`](https://serenity-js.org/api/web/class/Selected/) * - [`PageElement.selectOptions`](https://serenity-js.org/api/web/class/PageElement/#selectOptions) * - [`PageElement.selectedOptions`](https://serenity-js.org/api/web/class/PageElement/#selectedOptions) * * @group Models */ export declare class SelectOption extends TinyType { readonly label?: string; readonly value?: string; readonly selected?: boolean; readonly disabled?: boolean; static withLabel(label: string): SelectOption; static withValue(value: string): SelectOption; constructor(label?: string, value?: string, selected?: boolean, disabled?: boolean); toString(): string; } //# sourceMappingURL=SelectOption.d.ts.map