sdk.automation.domclick
Home > @matterway/sdk > Automation > DOMclick
Automation.DOMclick() function
Warning: This API is now obsolete.
- Use
click
instead.
Triggers a mouse click on an element.
Signature:
export declare function DOMclick(page: Page, selector: string): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
page | Page | Puppeteer page object. |
selector | string | Selector for element to be clicked. |
Returns:
Promise<void>
Remarks
Does not send related events, such as mouseenter
. Most of the time, you want to use click
instead.
Example
await click(page, '.submit.button');