From 9eb4ec398aee764d539b117c2b956c16904d645a Mon Sep 17 00:00:00 2001 From: RohitR311 Date: Sat, 4 Jan 2025 09:13:17 +0530 Subject: [PATCH] feat: add iframe selector type for selectors --- server/src/types/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/src/types/index.ts b/server/src/types/index.ts index f2e327ef..a2673d1d 100644 --- a/server/src/types/index.ts +++ b/server/src/types/index.ts @@ -129,6 +129,11 @@ export interface BaseActionInfo { hasOnlyText: boolean; } +interface IframeSelector { + full: string; + isIframe: boolean; +} + /** * Holds all the possible css selectors that has been found for an element. * @category Types @@ -143,6 +148,7 @@ export interface Selectors { hrefSelector: string|null; accessibilitySelector: string|null; formSelector: string|null; + iframeSelector: IframeSelector|null; } /** @@ -156,7 +162,7 @@ export interface BaseAction extends BaseActionInfo{ associatedActions: ActionType[]; inputType: string | undefined; value: string | undefined; - selectors: { [key: string]: string | null }; + selectors: Selectors; timestamp: number; isPassword: boolean; /**