@gravitywiz/playwright-plugin-gravity-wiz
Version:
Playwright plugin for testing WordPress and Gravity Wiz plugins
22 lines • 795 B
TypeScript
import type { Page } from '@playwright/test';
export interface ValueAndLabel {
value: string;
label: string;
}
export declare class ElementUtils {
private page;
constructor(page: Page);
/**
* Extracts the value and label (inner text) of the array of elements.
*/
toValuesAndLabels(selector: string, trim?: boolean): Promise<ValueAndLabel[]>;
/**
* Checks if the given selector's elements match another selector's elements.
*/
matchesOtherInputs(selector: string, otherSelector: string): Promise<boolean>;
/**
* Checks if the given selector's elements DO NOT match another selector's elements.
*/
doesNotMatchOtherInputs(selector: string, otherSelector: string): Promise<boolean>;
}
//# sourceMappingURL=element-utils.d.ts.map