Clicks on an element by Xpath.
Context object.
Xpath selector.
Optional
Also sends related events, such as mouseenter.
mouseenter
await clickByXPath(ctx, '//button[@id= "my-button"]'); Copy
await clickByXPath(ctx, '//button[@id= "my-button"]');
Generated using TypeDoc
Clicks on an element by Xpath.