automation_model 1.0.63 → 1.0.64

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.
Files changed (59) hide show
  1. package/.github/workflows/npm-publish.yml +38 -0
  2. package/.vscode/launch.json +30 -0
  3. package/README.md +3 -0
  4. package/ai_config.json +53 -0
  5. package/build/auto_page.d.ts +5 -0
  6. package/build/auto_page.js +56 -0
  7. package/build/auto_page.js.map +1 -0
  8. package/build/browser_manager.d.ts +28 -0
  9. package/build/browser_manager.js +72 -0
  10. package/build/browser_manager.js.map +1 -0
  11. package/build/environment.d.ts +23 -0
  12. package/build/environment.js +12 -0
  13. package/build/environment.js.map +1 -0
  14. package/build/index.js +7 -0
  15. package/build/index.js.map +1 -0
  16. package/build/init_browser.d.ts +7 -0
  17. package/build/init_browser.js +59 -0
  18. package/build/init_browser.js.map +1 -0
  19. package/build/locator.d.ts +15 -0
  20. package/build/locator.js +172 -0
  21. package/build/locator.js.map +1 -0
  22. package/build/stable_browser.d.ts +26 -0
  23. package/build/stable_browser.js +526 -0
  24. package/build/stable_browser.js.map +1 -0
  25. package/build/table_analyze.d.ts +3 -0
  26. package/build/table_analyze.js +64 -0
  27. package/build/table_analyze.js.map +1 -0
  28. package/build/test_context.d.ts +13 -0
  29. package/build/test_context.js +12 -0
  30. package/build/test_context.js.map +1 -0
  31. package/env.json +3 -0
  32. package/package.json +14 -11
  33. package/{bin/auto_page.js → src/auto_page.ts} +58 -57
  34. package/{bin/browser_manager.js → src/browser_manager.ts} +87 -78
  35. package/src/environment.ts +24 -0
  36. package/{bin/index.js → src/index.ts} +6 -6
  37. package/src/init_browser.ts +65 -0
  38. package/{bin/locator.js → src/locator.ts} +173 -159
  39. package/{bin/stable_browser.js → src/stable_browser.ts} +523 -520
  40. package/{bin/table_analyze.js → src/table_analyze.ts} +69 -61
  41. package/src/test_context.ts +16 -0
  42. package/tests/create_new_repository.test.js +62 -0
  43. package/tests/debug.test.js +41 -0
  44. package/tests/gmail_login.test.js +39 -0
  45. package/tests/launch_page.test.js +32 -0
  46. package/tests/navigate_to_new_repository_page.test.js +45 -0
  47. package/tsconfig.json +110 -0
  48. package/bin/auto_page.d.ts +0 -3
  49. package/bin/browser_manager.d.ts +0 -16
  50. package/bin/environment.d.ts +0 -4
  51. package/bin/environment.js +0 -9
  52. package/bin/init_browser.d.ts +0 -3
  53. package/bin/init_browser.js +0 -61
  54. package/bin/locator.d.ts +0 -21
  55. package/bin/stable_browser.d.ts +0 -61
  56. package/bin/table_analyze.d.ts +0 -1
  57. package/bin/test_context.d.ts +0 -6
  58. package/bin/test_context.js +0 -9
  59. /package/{bin → build}/index.d.ts +0 -0
@@ -1,61 +0,0 @@
1
- export class StableBrowser {
2
- constructor(browser: any, page: any, logger: any);
3
- browser: any;
4
- page: any;
5
- logger: any;
6
- goto(url: any): Promise<void>;
7
- _fixUsingParams(text: any, _params: any): any;
8
- _getLocator(locator: any, scope: any, _params: any): any;
9
- _locateElementByText(scope: any, text1: any, tag1: any, regex?: boolean, _params?: null): Promise<any>;
10
- _collectLocatorInformation(selectorHierarchy: any, index: number | undefined, scope: any, foundLocators: any, _params: any): Promise<void>;
11
- _locate(selectors: any, info: any, _params: any, timeout?: number): Promise<any>;
12
- click(selector: any, _params?: null, options?: {}, world?: null): Promise<{
13
- log: any[];
14
- operation: string;
15
- selector: any;
16
- }>;
17
- selectOption(selector: any, values: any, _params?: null, options?: {}, world?: null): Promise<{
18
- log: any[];
19
- operation: string;
20
- selector: any;
21
- }>;
22
- fill(selector: any, value: any, enter?: boolean, _params?: null, options?: {}, world?: null): Promise<{
23
- log: any[];
24
- operation: string;
25
- selector: any;
26
- value: any;
27
- }>;
28
- getText(selector: any, _params?: null, options?: {}, info?: {}, world?: null): Promise<any>;
29
- containsPattern(selector: any, pattern: any, text: any, _params?: null, options?: {}, world?: null): Promise<{
30
- log: any[];
31
- operation: string;
32
- selector: any;
33
- value: any;
34
- pattern: any;
35
- foundText: any;
36
- }>;
37
- containsText(selector: any, text: any, _params?: null, options?: {}, world?: null): Promise<{
38
- log: any[];
39
- operation: string;
40
- selector: any;
41
- value: any;
42
- foundText: any;
43
- }>;
44
- _screenShot(options?: {}, world?: null): Promise<void>;
45
- verifyElementExistInPage(selector: any, _params?: null, options?: {}, world?: null): Promise<{
46
- log: any[];
47
- operation: string;
48
- selector: any;
49
- }>;
50
- analyzeTable(selector: any, query: any, operator: any, value: any, _params?: null, options?: {}, world?: null): Promise<{
51
- log: any[];
52
- operation: string;
53
- selector: any;
54
- query: any;
55
- query_fixed: any;
56
- operator: any;
57
- value: any;
58
- }>;
59
- waitForPageLoad(options?: {}, world?: null): Promise<void>;
60
- _reportToWorld(world: any, properties?: {}): void;
61
- }
@@ -1 +0,0 @@
1
- export function getTableCells(page: any, element: any, tableSelector: any, info?: {}): Promise<any>;
@@ -1,6 +0,0 @@
1
- export class TestContext {
2
- browser: any;
3
- playContext: any;
4
- page: any;
5
- environment: any;
6
- }
@@ -1,9 +0,0 @@
1
- class TestContext {
2
- constructor() {
3
- this.browser = null;
4
- this.playContext = null;
5
- this.page = null;
6
- this.environment = null;
7
- }
8
- }
9
- export { TestContext };
File without changes