chore: onClick description

This commit is contained in:
karishmas6
2024-06-08 00:08:51 +05:30
parent ec7a0936fe
commit 11afd5c230

View File

@@ -200,7 +200,12 @@ export class WorkflowGenerator {
logger.log('info',`Workflow emitted`);
};
/**
* Generates a pair for the click event.
* @param coordinates The coordinates of the click event.
* @param page The page to use for obtaining the needed data.
* @returns {Promise<void>}
*/
public onClick = async (coordinates: Coordinates, page: Page) => {
let where: WhereWhatPair["where"] = { url: this.getBestUrl(page.url()) };
const selector = await this.generateSelector(page, coordinates, ActionType.Click);