Button
Clicks the button element.
click(): Promise<void>;
Forcefully clicks the button element.
forceClick(): Promise<void>;
Double clicks the button element.
doubleClick(forceClick?: boolean): Promise<void>;
Right clicks the button element.
rightClick(forceClick?: boolean): Promise<void>;
Clicks the button element at the specified coordinates.
@param x - The x-coordinate.
@param y - The y-coordinate.
clickAt(x: number, y: number, forceClick?: boolean): Promise<void>;
Clicks the center of the button element.
clickCenter(forceClick?: boolean): Promise<void>;
Clicks all instances of the button element.
clickAll(forceClick?: boolean): Promise<void>;
Clicks the first instance of the button element.
clickFirst(forceClick?: boolean): Promise<void>;
Clicks the last instance of the button element.
clickLast(forceClick?: boolean): Promise<void>;
Clicks and holds the button element.
clickAndHold(): Promise<void>;
Clicks the button element that contains the specified text.
@param text - The text to match.
clickByText(text: string, forceClick?: boolean): Promise<void>;
Clicks the button element at the specified index.
@param index - The index of the element to click.
clickByIndex(index: number, forceClick?: boolean): Promise<void>;
Clicks the button element with an offset.
@param x - The x-offset.
@param y - The y-offset.
clickWithOffset(x: number, y: number, forceClick?: boolean): Promise<void>;
Focuses and clicks the button element.
focusAndClick(): Promise<void>;
Asserts that the button element contains the specified text.
@param text - The text to assert.
assertText(text: string): Promise<void>;
Asserts that the button element has the specified color.
@param colour - The color to assert.
assertColor(colour: string): Promise<void>;
Asserts that the button element has the specified CSS property and value.
@param property - The CSS property to assert.
@param value - The value of the CSS property to assert.
assertCssProperty(property: string, value: string): Promise<void>;
Scrolls to the button element.
scrollToElement(): Promise<void>;
Comments
Post a Comment