@cbxss/eoka 0.1.0-beta.10 → 0.1.0-beta.12

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.
@@ -0,0 +1,90 @@
1
+ export const catalogMethods = ["back", "captcha.datadome", "captcha.detect", "captcha.inject", "captcha.turnstile", "clear_cookies", "click", "click_shadow", "clone_from", "console", "content", "cookies", "delete_cookie", "dialog.accept", "dialog.dismiss", "double_click", "download.cancel", "download.get", "download.list", "download.start", "download.wait", "dump_storage", "emulate", "errors", "eval", "exec", "exists", "fake_camera", "fetch", "fill", "find", "forward", "frame_eval", "frames", "get_attribute", "get_text", "headers", "hover", "info", "intercept.add", "intercept.list", "intercept.log", "intercept.remove", "js.allow", "js.block", "js.list", "js.mode", "js.remove", "key", "key.down", "key.up", "load_state", "mouse.down", "mouse.move", "mouse.up", "network.clear", "network.export", "network.log", "network.record.start", "network.record.status", "network.record.stop", "network.show", "network.wait", "observe", "open", "release_all_inputs", "reload", "save_state", "screenshot", "scroll", "select", "set_cookie", "set_storage", "snapshot", "spa.info", "spa.navigate", "storage", "text", "wait", "wasm.find", "wasm.info", "wasm.read", "wasm.write"];
2
+ /** Every catalog operation as a method bound to one page. */
3
+ export function catalogOperations(page) {
4
+ const call = (method, input, options) => page.invoke(method, { ...input, pageId: page.id }, options);
5
+ return {
6
+ back: (input = {}, options) => call("back", input, options),
7
+ captchaDatadome: (input = {}, options) => call("captcha.datadome", input, options),
8
+ captchaDetect: (input = {}, options) => call("captcha.detect", input, options),
9
+ captchaInject: (input, options) => call("captcha.inject", input, options),
10
+ captchaTurnstile: (input = {}, options) => call("captcha.turnstile", input, options),
11
+ clearCookies: (input = {}, options) => call("clear_cookies", input, options),
12
+ click: (input, options) => call("click", input, options),
13
+ clickShadow: (input, options) => call("click_shadow", input, options),
14
+ cloneFrom: (input, options) => call("clone_from", input, options),
15
+ console: (input = {}, options) => call("console", input, options),
16
+ content: (input = {}, options) => call("content", input, options),
17
+ cookies: (input = {}, options) => call("cookies", input, options),
18
+ deleteCookie: (input, options) => call("delete_cookie", input, options),
19
+ dialogAccept: (input = {}, options) => call("dialog.accept", input, options),
20
+ dialogDismiss: (input = {}, options) => call("dialog.dismiss", input, options),
21
+ doubleClick: (input, options) => call("double_click", input, options),
22
+ downloadCancel: (input, options) => call("download.cancel", input, options),
23
+ downloadGet: (input, options) => call("download.get", input, options),
24
+ downloadList: (input = {}, options) => call("download.list", input, options),
25
+ downloadStart: (input, options) => call("download.start", input, options),
26
+ downloadWait: (input, options) => call("download.wait", input, options),
27
+ dumpStorage: (input = {}, options) => call("dump_storage", input, options),
28
+ emulate: (input = {}, options) => call("emulate", input, options),
29
+ errors: (input = {}, options) => call("errors", input, options),
30
+ eval: (input = {}, options) => call("eval", input, options),
31
+ exec: (input = {}, options) => call("exec", input, options),
32
+ exists: (input, options) => call("exists", input, options),
33
+ fakeCamera: (input, options) => call("fake_camera", input, options),
34
+ fetch: (input, options) => call("fetch", input, options),
35
+ fill: (input, options) => call("fill", input, options),
36
+ find: (input, options) => call("find", input, options),
37
+ forward: (input = {}, options) => call("forward", input, options),
38
+ frameEval: (input, options) => call("frame_eval", input, options),
39
+ frames: (input = {}, options) => call("frames", input, options),
40
+ getAttribute: (input, options) => call("get_attribute", input, options),
41
+ getText: (input, options) => call("get_text", input, options),
42
+ headers: (input, options) => call("headers", input, options),
43
+ hover: (input, options) => call("hover", input, options),
44
+ info: (input = {}, options) => call("info", input, options),
45
+ interceptAdd: (input, options) => call("intercept.add", input, options),
46
+ interceptList: (input = {}, options) => call("intercept.list", input, options),
47
+ interceptLog: (input = {}, options) => call("intercept.log", input, options),
48
+ interceptRemove: (input, options) => call("intercept.remove", input, options),
49
+ jsAllow: (input, options) => call("js.allow", input, options),
50
+ jsBlock: (input, options) => call("js.block", input, options),
51
+ jsList: (input = {}, options) => call("js.list", input, options),
52
+ jsMode: (input, options) => call("js.mode", input, options),
53
+ jsRemove: (input, options) => call("js.remove", input, options),
54
+ key: (input, options) => call("key", input, options),
55
+ keyDown: (input, options) => call("key.down", input, options),
56
+ keyUp: (input, options) => call("key.up", input, options),
57
+ loadState: (input, options) => call("load_state", input, options),
58
+ mouseDown: (input, options) => call("mouse.down", input, options),
59
+ mouseMove: (input, options) => call("mouse.move", input, options),
60
+ mouseUp: (input, options) => call("mouse.up", input, options),
61
+ networkClear: (input = {}, options) => call("network.clear", input, options),
62
+ networkExport: (input, options) => call("network.export", input, options),
63
+ networkLog: (input = {}, options) => call("network.log", input, options),
64
+ networkRecordStart: (input = {}, options) => call("network.record.start", input, options),
65
+ networkRecordStatus: (input = {}, options) => call("network.record.status", input, options),
66
+ networkRecordStop: (input = {}, options) => call("network.record.stop", input, options),
67
+ networkShow: (input, options) => call("network.show", input, options),
68
+ networkWait: (input = {}, options) => call("network.wait", input, options),
69
+ observe: (input = {}, options) => call("observe", input, options),
70
+ open: (input, options) => call("open", input, options),
71
+ releaseAllInputs: (input = {}, options) => call("release_all_inputs", input, options),
72
+ reload: (input = {}, options) => call("reload", input, options),
73
+ saveState: (input, options) => call("save_state", input, options),
74
+ screenshot: (input = {}, options) => call("screenshot", input, options),
75
+ scroll: (input, options) => call("scroll", input, options),
76
+ select: (input, options) => call("select", input, options),
77
+ setCookie: (input, options) => call("set_cookie", input, options),
78
+ setStorage: (input, options) => call("set_storage", input, options),
79
+ snapshot: (input = {}, options) => call("snapshot", input, options),
80
+ spaInfo: (input = {}, options) => call("spa.info", input, options),
81
+ spaNavigate: (input, options) => call("spa.navigate", input, options),
82
+ storage: (input = {}, options) => call("storage", input, options),
83
+ text: (input = {}, options) => call("text", input, options),
84
+ wait: (input = {}, options) => call("wait", input, options),
85
+ wasmFind: (input, options) => call("wasm.find", input, options),
86
+ wasmInfo: (input = {}, options) => call("wasm.info", input, options),
87
+ wasmRead: (input, options) => call("wasm.read", input, options),
88
+ wasmWrite: (input, options) => call("wasm.write", input, options),
89
+ };
90
+ }