@probolabs/playwright 0.3.3 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ declare global {
13
13
  };
14
14
  highlightElements: (elements: Array<{
15
15
  css_selector: string;
16
+ iframe_selector: string;
16
17
  index: string;
17
18
  }>) => void;
18
19
  ElementTag: typeof ElementTag;
@@ -37,21 +38,25 @@ interface ProboConfig {
37
38
  enableConsoleLogs?: boolean;
38
39
  debugLevel?: ProboLogLevel;
39
40
  }
41
+ interface RunStepOptions {
42
+ useCache: boolean;
43
+ stepIdFromServer: number | null | undefined;
44
+ }
40
45
  declare class Probo {
41
46
  private highlighter;
42
47
  private apiClient;
43
48
  private readonly enableConsoleLogs;
44
49
  private readonly scenarioName;
45
50
  constructor({ scenarioName, token, apiUrl, enableConsoleLogs, debugLevel }: ProboConfig);
46
- runStep(page: Page, stepPrompt: string, stepIdFromServer?: number | null, // Make optional
47
- useCache?: boolean): Promise<boolean>;
51
+ runStep(page: Page, stepPrompt: string, options?: RunStepOptions): Promise<boolean>;
52
+ private _handleCachedStep;
48
53
  private _handleStepCreation;
49
54
  private setupConsoleLogs;
50
55
  highlightElements(page: Page, elementTag: ElementTagType): Promise<any>;
51
56
  unhighlightElements(page: Page): Promise<void>;
52
- highlightElement(page: Page, element_css_selector: string, element_index: string): Promise<void>;
57
+ highlightElement(page: Page, element_css_selector: string, iframe_selector: string, element_index: string): Promise<void>;
53
58
  screenshot(page: Page): Promise<string>;
54
59
  private _handlePerformAction;
55
60
  }
56
61
 
57
- export { DEMO_TOKEN, Probo, ProboLogLevel };
62
+ export { DEMO_TOKEN, Probo, ProboLogLevel, type RunStepOptions };