From 11afd5c230d92f4cf74e5d5b662b6a385e7e4b8e Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 8 Jun 2024 00:08:51 +0530 Subject: [PATCH] chore: onClick description --- server/src/workflow-management/classes/Generator.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/src/workflow-management/classes/Generator.ts b/server/src/workflow-management/classes/Generator.ts index e33fe0d6..bf20825d 100644 --- a/server/src/workflow-management/classes/Generator.ts +++ b/server/src/workflow-management/classes/Generator.ts @@ -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} + */ 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);