playwright-pom-materials
Version:
Playwright POM materials
17 lines • 767 B
TypeScript
import { Locator } from '@playwright/test';
import { LocatorPredicate, RetryOptions } from '../helpers/playwright';
import { Displayable } from './Displayable';
export type OperableOptions = {
disabledPredicate?: LocatorPredicate;
};
export declare class Operable extends Displayable {
protected disabledPredicate: LocatorPredicate;
constructor(locator: Locator, options?: OperableOptions);
isDisabled(): Promise<boolean>;
isEnabled(): Promise<boolean>;
waitForBeingEnabled(options?: RetryOptions): Promise<void>;
waitForBeingEnabledWith(fn: LocatorPredicate, options?: RetryOptions): Promise<void>;
shouldBeEnabled(options?: RetryOptions): Promise<void>;
shouldBeDisabled(): Promise<void>;
}
//# sourceMappingURL=Operable.d.ts.map