From ddfb31ce39363a20f8e23661b8eb3d96581fd24e Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 8 Jun 2024 00:41:39 +0530 Subject: [PATCH] docs: handleOverShadowing --- server/src/workflow-management/classes/Generator.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/server/src/workflow-management/classes/Generator.ts b/server/src/workflow-management/classes/Generator.ts index 5ee06273..d9e25378 100644 --- a/server/src/workflow-management/classes/Generator.ts +++ b/server/src/workflow-management/classes/Generator.ts @@ -595,7 +595,15 @@ export class WorkflowGenerator { } - + /** + * General over-shadowing handler. + * Checks for possible over-shadowed pairs and if found, + * adds the pair to the workflow in the correct way. + * @param pair The pair that could be over-shadowing. + * @param page The page to be used for checking the visibility and accessibility of the selectors. + * @private + * @returns {Promise} + */ private handleOverShadowing = async (pair: WhereWhatPair, page: Page, index: number): Promise => { const overShadowing = (await this.IsOverShadowingAction(pair, page)) .filter((p) => p.isOverShadowing);