sdk.automation.clickbyxpath
Home > @matterway/sdk > Automation > clickByXPath
Automation.clickByXPath variable
Clicks on an element by Xpath.
Signature:
clickByXPath: (ctx: Context, selector: string) => Promise<void>
Remarks
Also sends related events, such as mouseenter
.
Example
await clickByXPath(ctx, '//button[@id= "my-button"]');