easytouch-linux 1.0.7 → 1.0.17

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 (337) hide show
  1. package/LICENSE.txt +201 -0
  2. package/README.md +33 -314
  3. package/SKILL.md +366 -0
  4. package/bin/arm64/et +0 -0
  5. package/bin/et.js +60 -0
  6. package/bin/x64/et +0 -0
  7. package/package.json +19 -37
  8. package/.playwright/node/LICENSE +0 -2607
  9. package/.playwright/node/linux-x64/node +0 -0
  10. package/.playwright/package/README.md +0 -3
  11. package/.playwright/package/ThirdPartyNotices.txt +0 -1602
  12. package/.playwright/package/api.json +0 -1
  13. package/.playwright/package/bin/install_media_pack.ps1 +0 -5
  14. package/.playwright/package/bin/reinstall_chrome_beta_linux.sh +0 -42
  15. package/.playwright/package/bin/reinstall_chrome_beta_mac.sh +0 -13
  16. package/.playwright/package/bin/reinstall_chrome_beta_win.ps1 +0 -24
  17. package/.playwright/package/bin/reinstall_chrome_stable_linux.sh +0 -42
  18. package/.playwright/package/bin/reinstall_chrome_stable_mac.sh +0 -12
  19. package/.playwright/package/bin/reinstall_chrome_stable_win.ps1 +0 -24
  20. package/.playwright/package/bin/reinstall_msedge_beta_linux.sh +0 -48
  21. package/.playwright/package/bin/reinstall_msedge_beta_mac.sh +0 -11
  22. package/.playwright/package/bin/reinstall_msedge_beta_win.ps1 +0 -23
  23. package/.playwright/package/bin/reinstall_msedge_dev_linux.sh +0 -48
  24. package/.playwright/package/bin/reinstall_msedge_dev_mac.sh +0 -11
  25. package/.playwright/package/bin/reinstall_msedge_dev_win.ps1 +0 -23
  26. package/.playwright/package/bin/reinstall_msedge_stable_linux.sh +0 -48
  27. package/.playwright/package/bin/reinstall_msedge_stable_mac.sh +0 -11
  28. package/.playwright/package/bin/reinstall_msedge_stable_win.ps1 +0 -24
  29. package/.playwright/package/browsers.json +0 -66
  30. package/.playwright/package/cli.js +0 -18
  31. package/.playwright/package/index.d.ts +0 -17
  32. package/.playwright/package/index.js +0 -33
  33. package/.playwright/package/index.mjs +0 -28
  34. package/.playwright/package/lib/androidServerImpl.js +0 -69
  35. package/.playwright/package/lib/browserServerImpl.js +0 -92
  36. package/.playwright/package/lib/cli/driver.js +0 -95
  37. package/.playwright/package/lib/cli/program.js +0 -583
  38. package/.playwright/package/lib/cli/programWithTestStub.js +0 -67
  39. package/.playwright/package/lib/client/accessibility.js +0 -50
  40. package/.playwright/package/lib/client/android.js +0 -473
  41. package/.playwright/package/lib/client/api.js +0 -285
  42. package/.playwright/package/lib/client/artifact.js +0 -79
  43. package/.playwright/package/lib/client/browser.js +0 -145
  44. package/.playwright/package/lib/client/browserContext.js +0 -559
  45. package/.playwright/package/lib/client/browserType.js +0 -241
  46. package/.playwright/package/lib/client/cdpSession.js +0 -53
  47. package/.playwright/package/lib/client/channelOwner.js +0 -215
  48. package/.playwright/package/lib/client/clientHelper.js +0 -57
  49. package/.playwright/package/lib/client/clientInstrumentation.js +0 -52
  50. package/.playwright/package/lib/client/clock.js +0 -68
  51. package/.playwright/package/lib/client/connection.js +0 -333
  52. package/.playwright/package/lib/client/consoleMessage.js +0 -55
  53. package/.playwright/package/lib/client/coverage.js +0 -41
  54. package/.playwright/package/lib/client/dialog.js +0 -57
  55. package/.playwright/package/lib/client/download.js +0 -62
  56. package/.playwright/package/lib/client/electron.js +0 -135
  57. package/.playwright/package/lib/client/elementHandle.js +0 -321
  58. package/.playwright/package/lib/client/errors.js +0 -77
  59. package/.playwright/package/lib/client/eventEmitter.js +0 -314
  60. package/.playwright/package/lib/client/events.js +0 -94
  61. package/.playwright/package/lib/client/fetch.js +0 -391
  62. package/.playwright/package/lib/client/fileChooser.js +0 -45
  63. package/.playwright/package/lib/client/frame.js +0 -504
  64. package/.playwright/package/lib/client/harRouter.js +0 -99
  65. package/.playwright/package/lib/client/input.js +0 -111
  66. package/.playwright/package/lib/client/jsHandle.js +0 -121
  67. package/.playwright/package/lib/client/jsonPipe.js +0 -35
  68. package/.playwright/package/lib/client/localUtils.js +0 -36
  69. package/.playwright/package/lib/client/locator.js +0 -448
  70. package/.playwright/package/lib/client/network.js +0 -769
  71. package/.playwright/package/lib/client/page.js +0 -748
  72. package/.playwright/package/lib/client/playwright.js +0 -80
  73. package/.playwright/package/lib/client/selectors.js +0 -67
  74. package/.playwright/package/lib/client/stream.js +0 -54
  75. package/.playwright/package/lib/client/tracing.js +0 -147
  76. package/.playwright/package/lib/client/types.js +0 -24
  77. package/.playwright/package/lib/client/video.js +0 -51
  78. package/.playwright/package/lib/client/waiter.js +0 -162
  79. package/.playwright/package/lib/client/webError.js +0 -37
  80. package/.playwright/package/lib/client/worker.js +0 -71
  81. package/.playwright/package/lib/client/writableStream.js +0 -54
  82. package/.playwright/package/lib/common/socksProxy.js +0 -569
  83. package/.playwright/package/lib/common/timeoutSettings.js +0 -73
  84. package/.playwright/package/lib/common/types.js +0 -5
  85. package/.playwright/package/lib/generated/clockSource.js +0 -7
  86. package/.playwright/package/lib/generated/consoleApiSource.js +0 -7
  87. package/.playwright/package/lib/generated/injectedScriptSource.js +0 -7
  88. package/.playwright/package/lib/generated/pollingRecorderSource.js +0 -7
  89. package/.playwright/package/lib/generated/utilityScriptSource.js +0 -7
  90. package/.playwright/package/lib/generated/webSocketMockSource.js +0 -7
  91. package/.playwright/package/lib/image_tools/colorUtils.js +0 -98
  92. package/.playwright/package/lib/image_tools/compare.js +0 -108
  93. package/.playwright/package/lib/image_tools/imageChannel.js +0 -70
  94. package/.playwright/package/lib/image_tools/stats.js +0 -102
  95. package/.playwright/package/lib/inProcessFactory.js +0 -56
  96. package/.playwright/package/lib/inprocess.js +0 -20
  97. package/.playwright/package/lib/outofprocess.js +0 -67
  98. package/.playwright/package/lib/protocol/debug.js +0 -27
  99. package/.playwright/package/lib/protocol/serializers.js +0 -173
  100. package/.playwright/package/lib/protocol/transport.js +0 -82
  101. package/.playwright/package/lib/protocol/validator.js +0 -2780
  102. package/.playwright/package/lib/protocol/validatorPrimitives.js +0 -139
  103. package/.playwright/package/lib/remote/playwrightConnection.js +0 -275
  104. package/.playwright/package/lib/remote/playwrightServer.js +0 -111
  105. package/.playwright/package/lib/server/accessibility.js +0 -62
  106. package/.playwright/package/lib/server/android/android.js +0 -441
  107. package/.playwright/package/lib/server/android/backendAdb.js +0 -172
  108. package/.playwright/package/lib/server/artifact.js +0 -104
  109. package/.playwright/package/lib/server/bidi/bidiBrowser.js +0 -314
  110. package/.playwright/package/lib/server/bidi/bidiChromium.js +0 -124
  111. package/.playwright/package/lib/server/bidi/bidiConnection.js +0 -204
  112. package/.playwright/package/lib/server/bidi/bidiExecutionContext.js +0 -175
  113. package/.playwright/package/lib/server/bidi/bidiFirefox.js +0 -104
  114. package/.playwright/package/lib/server/bidi/bidiInput.js +0 -160
  115. package/.playwright/package/lib/server/bidi/bidiNetworkManager.js +0 -337
  116. package/.playwright/package/lib/server/bidi/bidiOverCdp.js +0 -103
  117. package/.playwright/package/lib/server/bidi/bidiPage.js +0 -518
  118. package/.playwright/package/lib/server/bidi/bidiPdf.js +0 -140
  119. package/.playwright/package/lib/server/bidi/third_party/bidiDeserializer.js +0 -93
  120. package/.playwright/package/lib/server/bidi/third_party/bidiKeyboard.js +0 -240
  121. package/.playwright/package/lib/server/bidi/third_party/bidiProtocol.js +0 -139
  122. package/.playwright/package/lib/server/bidi/third_party/bidiSerializer.js +0 -144
  123. package/.playwright/package/lib/server/bidi/third_party/firefoxPrefs.js +0 -221
  124. package/.playwright/package/lib/server/browser.js +0 -148
  125. package/.playwright/package/lib/server/browserContext.js +0 -675
  126. package/.playwright/package/lib/server/browserType.js +0 -338
  127. package/.playwright/package/lib/server/chromium/appIcon.png +0 -0
  128. package/.playwright/package/lib/server/chromium/chromium.js +0 -354
  129. package/.playwright/package/lib/server/chromium/chromiumSwitches.js +0 -46
  130. package/.playwright/package/lib/server/chromium/crAccessibility.js +0 -237
  131. package/.playwright/package/lib/server/chromium/crBrowser.js +0 -516
  132. package/.playwright/package/lib/server/chromium/crConnection.js +0 -228
  133. package/.playwright/package/lib/server/chromium/crCoverage.js +0 -246
  134. package/.playwright/package/lib/server/chromium/crDevTools.js +0 -104
  135. package/.playwright/package/lib/server/chromium/crDragDrop.js +0 -143
  136. package/.playwright/package/lib/server/chromium/crExecutionContext.js +0 -132
  137. package/.playwright/package/lib/server/chromium/crInput.js +0 -182
  138. package/.playwright/package/lib/server/chromium/crNetworkManager.js +0 -767
  139. package/.playwright/package/lib/server/chromium/crPage.js +0 -1122
  140. package/.playwright/package/lib/server/chromium/crPdf.js +0 -153
  141. package/.playwright/package/lib/server/chromium/crProtocolHelper.js +0 -133
  142. package/.playwright/package/lib/server/chromium/crServiceWorker.js +0 -112
  143. package/.playwright/package/lib/server/chromium/defaultFontFamilies.js +0 -145
  144. package/.playwright/package/lib/server/chromium/videoRecorder.js +0 -155
  145. package/.playwright/package/lib/server/clock.js +0 -125
  146. package/.playwright/package/lib/server/codegen/csharp.js +0 -304
  147. package/.playwright/package/lib/server/codegen/java.js +0 -243
  148. package/.playwright/package/lib/server/codegen/javascript.js +0 -253
  149. package/.playwright/package/lib/server/codegen/jsonl.js +0 -47
  150. package/.playwright/package/lib/server/codegen/language.js +0 -88
  151. package/.playwright/package/lib/server/codegen/languages.js +0 -30
  152. package/.playwright/package/lib/server/codegen/python.js +0 -262
  153. package/.playwright/package/lib/server/codegen/types.js +0 -5
  154. package/.playwright/package/lib/server/console.js +0 -57
  155. package/.playwright/package/lib/server/cookieStore.js +0 -185
  156. package/.playwright/package/lib/server/debugController.js +0 -212
  157. package/.playwright/package/lib/server/debugger.js +0 -132
  158. package/.playwright/package/lib/server/deviceDescriptors.js +0 -26
  159. package/.playwright/package/lib/server/deviceDescriptorsSource.json +0 -1669
  160. package/.playwright/package/lib/server/dialog.js +0 -71
  161. package/.playwright/package/lib/server/dispatchers/androidDispatcher.js +0 -204
  162. package/.playwright/package/lib/server/dispatchers/artifactDispatcher.js +0 -118
  163. package/.playwright/package/lib/server/dispatchers/browserContextDispatcher.js +0 -357
  164. package/.playwright/package/lib/server/dispatchers/browserDispatcher.js +0 -170
  165. package/.playwright/package/lib/server/dispatchers/browserTypeDispatcher.js +0 -55
  166. package/.playwright/package/lib/server/dispatchers/cdpSessionDispatcher.js +0 -48
  167. package/.playwright/package/lib/server/dispatchers/debugControllerDispatcher.js +0 -105
  168. package/.playwright/package/lib/server/dispatchers/dialogDispatcher.js +0 -44
  169. package/.playwright/package/lib/server/dispatchers/dispatcher.js +0 -395
  170. package/.playwright/package/lib/server/dispatchers/electronDispatcher.js +0 -93
  171. package/.playwright/package/lib/server/dispatchers/elementHandlerDispatcher.js +0 -228
  172. package/.playwright/package/lib/server/dispatchers/frameDispatcher.js +0 -294
  173. package/.playwright/package/lib/server/dispatchers/jsHandleDispatcher.js +0 -97
  174. package/.playwright/package/lib/server/dispatchers/jsonPipeDispatcher.js +0 -59
  175. package/.playwright/package/lib/server/dispatchers/localUtilsDispatcher.js +0 -413
  176. package/.playwright/package/lib/server/dispatchers/networkDispatchers.js +0 -221
  177. package/.playwright/package/lib/server/dispatchers/pageDispatcher.js +0 -367
  178. package/.playwright/package/lib/server/dispatchers/playwrightDispatcher.js +0 -107
  179. package/.playwright/package/lib/server/dispatchers/selectorsDispatcher.js +0 -36
  180. package/.playwright/package/lib/server/dispatchers/streamDispatcher.js +0 -62
  181. package/.playwright/package/lib/server/dispatchers/tracingDispatcher.js +0 -64
  182. package/.playwright/package/lib/server/dispatchers/webSocketRouteDispatcher.js +0 -188
  183. package/.playwright/package/lib/server/dispatchers/writableStreamDispatcher.js +0 -58
  184. package/.playwright/package/lib/server/dom.js +0 -893
  185. package/.playwright/package/lib/server/download.js +0 -60
  186. package/.playwright/package/lib/server/electron/electron.js +0 -296
  187. package/.playwright/package/lib/server/electron/loader.js +0 -57
  188. package/.playwright/package/lib/server/errors.js +0 -68
  189. package/.playwright/package/lib/server/fetch.js +0 -663
  190. package/.playwright/package/lib/server/fileChooser.js +0 -42
  191. package/.playwright/package/lib/server/fileUploadUtils.js +0 -75
  192. package/.playwright/package/lib/server/firefox/ffAccessibility.js +0 -216
  193. package/.playwright/package/lib/server/firefox/ffBrowser.js +0 -462
  194. package/.playwright/package/lib/server/firefox/ffConnection.js +0 -168
  195. package/.playwright/package/lib/server/firefox/ffExecutionContext.js +0 -123
  196. package/.playwright/package/lib/server/firefox/ffInput.js +0 -161
  197. package/.playwright/package/lib/server/firefox/ffNetworkManager.js +0 -233
  198. package/.playwright/package/lib/server/firefox/ffPage.js +0 -544
  199. package/.playwright/package/lib/server/firefox/firefox.js +0 -99
  200. package/.playwright/package/lib/server/formData.js +0 -75
  201. package/.playwright/package/lib/server/frameSelectors.js +0 -171
  202. package/.playwright/package/lib/server/frames.js +0 -1663
  203. package/.playwright/package/lib/server/har/harRecorder.js +0 -139
  204. package/.playwright/package/lib/server/har/harTracer.js +0 -542
  205. package/.playwright/package/lib/server/helper.js +0 -103
  206. package/.playwright/package/lib/server/index.js +0 -108
  207. package/.playwright/package/lib/server/input.js +0 -309
  208. package/.playwright/package/lib/server/instrumentation.js +0 -70
  209. package/.playwright/package/lib/server/isomorphic/utilityScriptSerializers.js +0 -226
  210. package/.playwright/package/lib/server/javascript.js +0 -293
  211. package/.playwright/package/lib/server/launchApp.js +0 -91
  212. package/.playwright/package/lib/server/macEditingCommands.js +0 -139
  213. package/.playwright/package/lib/server/network.js +0 -617
  214. package/.playwright/package/lib/server/page.js +0 -863
  215. package/.playwright/package/lib/server/pipeTransport.js +0 -85
  216. package/.playwright/package/lib/server/playwright.js +0 -88
  217. package/.playwright/package/lib/server/progress.js +0 -99
  218. package/.playwright/package/lib/server/protocolError.js +0 -49
  219. package/.playwright/package/lib/server/recorder/chat.js +0 -177
  220. package/.playwright/package/lib/server/recorder/contextRecorder.js +0 -290
  221. package/.playwright/package/lib/server/recorder/recorderApp.js +0 -187
  222. package/.playwright/package/lib/server/recorder/recorderCollection.js +0 -104
  223. package/.playwright/package/lib/server/recorder/recorderFrontend.js +0 -5
  224. package/.playwright/package/lib/server/recorder/recorderRunner.js +0 -159
  225. package/.playwright/package/lib/server/recorder/recorderUtils.js +0 -89
  226. package/.playwright/package/lib/server/recorder/throttledFile.js +0 -46
  227. package/.playwright/package/lib/server/recorder.js +0 -367
  228. package/.playwright/package/lib/server/registry/browserFetcher.js +0 -168
  229. package/.playwright/package/lib/server/registry/dependencies.js +0 -322
  230. package/.playwright/package/lib/server/registry/index.js +0 -1165
  231. package/.playwright/package/lib/server/registry/nativeDeps.js +0 -496
  232. package/.playwright/package/lib/server/registry/oopDownloadBrowserMain.js +0 -138
  233. package/.playwright/package/lib/server/screenshotter.js +0 -348
  234. package/.playwright/package/lib/server/selectors.js +0 -73
  235. package/.playwright/package/lib/server/socksClientCertificatesInterceptor.js +0 -340
  236. package/.playwright/package/lib/server/socksInterceptor.js +0 -100
  237. package/.playwright/package/lib/server/trace/recorder/snapshotter.js +0 -161
  238. package/.playwright/package/lib/server/trace/recorder/snapshotterInjected.js +0 -518
  239. package/.playwright/package/lib/server/trace/recorder/tracing.js +0 -596
  240. package/.playwright/package/lib/server/trace/test/inMemorySnapshotter.js +0 -93
  241. package/.playwright/package/lib/server/trace/viewer/traceViewer.js +0 -219
  242. package/.playwright/package/lib/server/transport.js +0 -192
  243. package/.playwright/package/lib/server/types.js +0 -24
  244. package/.playwright/package/lib/server/usKeyboardLayout.js +0 -555
  245. package/.playwright/package/lib/server/webkit/webkit.js +0 -87
  246. package/.playwright/package/lib/server/webkit/wkAccessibility.js +0 -194
  247. package/.playwright/package/lib/server/webkit/wkBrowser.js +0 -329
  248. package/.playwright/package/lib/server/webkit/wkConnection.js +0 -173
  249. package/.playwright/package/lib/server/webkit/wkExecutionContext.js +0 -131
  250. package/.playwright/package/lib/server/webkit/wkInput.js +0 -179
  251. package/.playwright/package/lib/server/webkit/wkInterceptableRequest.js +0 -162
  252. package/.playwright/package/lib/server/webkit/wkPage.js +0 -1207
  253. package/.playwright/package/lib/server/webkit/wkProvisionalPage.js +0 -94
  254. package/.playwright/package/lib/server/webkit/wkWorkers.js +0 -104
  255. package/.playwright/package/lib/third_party/pixelmatch.js +0 -255
  256. package/.playwright/package/lib/utils/ascii.js +0 -31
  257. package/.playwright/package/lib/utils/comparators.js +0 -159
  258. package/.playwright/package/lib/utils/crypto.js +0 -171
  259. package/.playwright/package/lib/utils/debug.js +0 -46
  260. package/.playwright/package/lib/utils/debugLogger.js +0 -93
  261. package/.playwright/package/lib/utils/env.js +0 -49
  262. package/.playwright/package/lib/utils/eventsHelper.js +0 -38
  263. package/.playwright/package/lib/utils/expectUtils.js +0 -33
  264. package/.playwright/package/lib/utils/fileUtils.js +0 -205
  265. package/.playwright/package/lib/utils/happy-eyeballs.js +0 -194
  266. package/.playwright/package/lib/utils/headers.js +0 -52
  267. package/.playwright/package/lib/utils/hostPlatform.js +0 -145
  268. package/.playwright/package/lib/utils/httpServer.js +0 -233
  269. package/.playwright/package/lib/utils/index.js +0 -368
  270. package/.playwright/package/lib/utils/isomorphic/ariaSnapshot.js +0 -391
  271. package/.playwright/package/lib/utils/isomorphic/cssParser.js +0 -250
  272. package/.playwright/package/lib/utils/isomorphic/cssTokenizer.js +0 -979
  273. package/.playwright/package/lib/utils/isomorphic/locatorGenerators.js +0 -660
  274. package/.playwright/package/lib/utils/isomorphic/locatorParser.js +0 -185
  275. package/.playwright/package/lib/utils/isomorphic/locatorUtils.js +0 -62
  276. package/.playwright/package/lib/utils/isomorphic/mimeType.js +0 -29
  277. package/.playwright/package/lib/utils/isomorphic/selectorParser.js +0 -397
  278. package/.playwright/package/lib/utils/isomorphic/stringUtils.js +0 -169
  279. package/.playwright/package/lib/utils/isomorphic/traceUtils.js +0 -39
  280. package/.playwright/package/lib/utils/isomorphic/urlMatch.js +0 -122
  281. package/.playwright/package/lib/utils/linuxUtils.js +0 -78
  282. package/.playwright/package/lib/utils/manualPromise.js +0 -109
  283. package/.playwright/package/lib/utils/multimap.js +0 -75
  284. package/.playwright/package/lib/utils/network.js +0 -160
  285. package/.playwright/package/lib/utils/processLauncher.js +0 -248
  286. package/.playwright/package/lib/utils/profiler.js +0 -53
  287. package/.playwright/package/lib/utils/rtti.js +0 -44
  288. package/.playwright/package/lib/utils/semaphore.js +0 -51
  289. package/.playwright/package/lib/utils/sequence.js +0 -64
  290. package/.playwright/package/lib/utils/spawnAsync.js +0 -45
  291. package/.playwright/package/lib/utils/stackTrace.js +0 -134
  292. package/.playwright/package/lib/utils/task.js +0 -58
  293. package/.playwright/package/lib/utils/time.js +0 -37
  294. package/.playwright/package/lib/utils/timeoutRunner.js +0 -66
  295. package/.playwright/package/lib/utils/traceUtils.js +0 -44
  296. package/.playwright/package/lib/utils/userAgent.js +0 -105
  297. package/.playwright/package/lib/utils/wsServer.js +0 -128
  298. package/.playwright/package/lib/utils/zipFile.js +0 -75
  299. package/.playwright/package/lib/utils/zones.js +0 -69
  300. package/.playwright/package/lib/utilsBundle.js +0 -81
  301. package/.playwright/package/lib/utilsBundleImpl/index.js +0 -210
  302. package/.playwright/package/lib/utilsBundleImpl/xdg-open +0 -1066
  303. package/.playwright/package/lib/vite/htmlReport/index.html +0 -69
  304. package/.playwright/package/lib/vite/recorder/assets/codeMirrorModule-C3UTv-Ge.css +0 -1
  305. package/.playwright/package/lib/vite/recorder/assets/codeMirrorModule-k-61wZCK.js +0 -24
  306. package/.playwright/package/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
  307. package/.playwright/package/lib/vite/recorder/assets/index-B70BEW3b.js +0 -184
  308. package/.playwright/package/lib/vite/recorder/assets/index-eHBmevrY.css +0 -1
  309. package/.playwright/package/lib/vite/recorder/index.html +0 -29
  310. package/.playwright/package/lib/vite/recorder/playwright-logo.svg +0 -9
  311. package/.playwright/package/lib/vite/traceViewer/assets/codeMirrorModule-CyuxU5C-.js +0 -24
  312. package/.playwright/package/lib/vite/traceViewer/assets/defaultSettingsView-5nVJRt0A.js +0 -243
  313. package/.playwright/package/lib/vite/traceViewer/assets/xtermModule-c-SNdYZy.js +0 -9
  314. package/.playwright/package/lib/vite/traceViewer/codeMirrorModule.C3UTv-Ge.css +0 -1
  315. package/.playwright/package/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
  316. package/.playwright/package/lib/vite/traceViewer/defaultSettingsView.2xeEXCXv.css +0 -1
  317. package/.playwright/package/lib/vite/traceViewer/index.CFOW-Ezb.css +0 -1
  318. package/.playwright/package/lib/vite/traceViewer/index.html +0 -43
  319. package/.playwright/package/lib/vite/traceViewer/index.qVn2ZnpC.js +0 -2
  320. package/.playwright/package/lib/vite/traceViewer/playwright-logo.svg +0 -9
  321. package/.playwright/package/lib/vite/traceViewer/snapshot.html +0 -21
  322. package/.playwright/package/lib/vite/traceViewer/sw.bundle.js +0 -3
  323. package/.playwright/package/lib/vite/traceViewer/uiMode.BatfzHMG.css +0 -1
  324. package/.playwright/package/lib/vite/traceViewer/uiMode.html +0 -17
  325. package/.playwright/package/lib/vite/traceViewer/uiMode.m4IPRPOd.js +0 -5
  326. package/.playwright/package/lib/vite/traceViewer/xtermModule.Beg8tuEN.css +0 -32
  327. package/.playwright/package/lib/zipBundle.js +0 -25
  328. package/.playwright/package/lib/zipBundleImpl.js +0 -5
  329. package/.playwright/package/package.json +0 -44
  330. package/.playwright/package/protocol.yml +0 -3758
  331. package/.playwright/package/types/protocol.d.ts +0 -21868
  332. package/.playwright/package/types/structs.d.ts +0 -45
  333. package/.playwright/package/types/types.d.ts +0 -22663
  334. package/et +0 -0
  335. package/install.js +0 -19
  336. package/playwright.ps1 +0 -7
  337. package/scripts/playwright-bridge.js +0 -560
@@ -1,228 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ElementHandleDispatcher = void 0;
7
- var _dispatcher = require("./dispatcher");
8
- var _jsHandleDispatcher = require("./jsHandleDispatcher");
9
- var _frameDispatcher = require("./frameDispatcher");
10
- var _browserContextDispatcher = require("./browserContextDispatcher");
11
- var _pageDispatcher = require("./pageDispatcher");
12
- /**
13
- * Copyright (c) Microsoft Corporation.
14
- *
15
- * Licensed under the Apache License, Version 2.0 (the "License");
16
- * you may not use this file except in compliance with the License.
17
- * You may obtain a copy of the License at
18
- *
19
- * http://www.apache.org/licenses/LICENSE-2.0
20
- *
21
- * Unless required by applicable law or agreed to in writing, software
22
- * distributed under the License is distributed on an "AS IS" BASIS,
23
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
- * See the License for the specific language governing permissions and
25
- * limitations under the License.
26
- */
27
-
28
- class ElementHandleDispatcher extends _jsHandleDispatcher.JSHandleDispatcher {
29
- static from(scope, handle) {
30
- return (0, _dispatcher.existingDispatcher)(handle) || new ElementHandleDispatcher(scope, handle);
31
- }
32
- static fromNullable(scope, handle) {
33
- if (!handle) return undefined;
34
- return (0, _dispatcher.existingDispatcher)(handle) || new ElementHandleDispatcher(scope, handle);
35
- }
36
- static fromJSHandle(scope, handle) {
37
- const result = (0, _dispatcher.existingDispatcher)(handle);
38
- if (result) return result;
39
- return handle.asElement() ? new ElementHandleDispatcher(scope, handle.asElement()) : new _jsHandleDispatcher.JSHandleDispatcher(scope, handle);
40
- }
41
- constructor(scope, elementHandle) {
42
- super(scope, elementHandle);
43
- this._type_ElementHandle = true;
44
- this._elementHandle = void 0;
45
- this._elementHandle = elementHandle;
46
- }
47
- async ownerFrame(params, metadata) {
48
- const frame = await this._elementHandle.ownerFrame();
49
- return {
50
- frame: frame ? _frameDispatcher.FrameDispatcher.from(this._browserContextDispatcher(), frame) : undefined
51
- };
52
- }
53
- async contentFrame(params, metadata) {
54
- const frame = await this._elementHandle.contentFrame();
55
- return {
56
- frame: frame ? _frameDispatcher.FrameDispatcher.from(this._browserContextDispatcher(), frame) : undefined
57
- };
58
- }
59
- async getAttribute(params, metadata) {
60
- const value = await this._elementHandle.getAttribute(metadata, params.name);
61
- return {
62
- value: value === null ? undefined : value
63
- };
64
- }
65
- async inputValue(params, metadata) {
66
- const value = await this._elementHandle.inputValue(metadata);
67
- return {
68
- value
69
- };
70
- }
71
- async textContent(params, metadata) {
72
- const value = await this._elementHandle.textContent(metadata);
73
- return {
74
- value: value === null ? undefined : value
75
- };
76
- }
77
- async innerText(params, metadata) {
78
- return {
79
- value: await this._elementHandle.innerText(metadata)
80
- };
81
- }
82
- async innerHTML(params, metadata) {
83
- return {
84
- value: await this._elementHandle.innerHTML(metadata)
85
- };
86
- }
87
- async isChecked(params, metadata) {
88
- return {
89
- value: await this._elementHandle.isChecked(metadata)
90
- };
91
- }
92
- async isDisabled(params, metadata) {
93
- return {
94
- value: await this._elementHandle.isDisabled(metadata)
95
- };
96
- }
97
- async isEditable(params, metadata) {
98
- return {
99
- value: await this._elementHandle.isEditable(metadata)
100
- };
101
- }
102
- async isEnabled(params, metadata) {
103
- return {
104
- value: await this._elementHandle.isEnabled(metadata)
105
- };
106
- }
107
- async isHidden(params, metadata) {
108
- return {
109
- value: await this._elementHandle.isHidden(metadata)
110
- };
111
- }
112
- async isVisible(params, metadata) {
113
- return {
114
- value: await this._elementHandle.isVisible(metadata)
115
- };
116
- }
117
- async dispatchEvent(params, metadata) {
118
- await this._elementHandle.dispatchEvent(metadata, params.type, (0, _jsHandleDispatcher.parseArgument)(params.eventInit));
119
- }
120
- async scrollIntoViewIfNeeded(params, metadata) {
121
- await this._elementHandle.scrollIntoViewIfNeeded(metadata, params);
122
- }
123
- async hover(params, metadata) {
124
- return await this._elementHandle.hover(metadata, params);
125
- }
126
- async click(params, metadata) {
127
- return await this._elementHandle.click(metadata, params);
128
- }
129
- async dblclick(params, metadata) {
130
- return await this._elementHandle.dblclick(metadata, params);
131
- }
132
- async tap(params, metadata) {
133
- return await this._elementHandle.tap(metadata, params);
134
- }
135
- async selectOption(params, metadata) {
136
- const elements = (params.elements || []).map(e => e._elementHandle);
137
- return {
138
- values: await this._elementHandle.selectOption(metadata, elements, params.options || [], params)
139
- };
140
- }
141
- async fill(params, metadata) {
142
- return await this._elementHandle.fill(metadata, params.value, params);
143
- }
144
- async selectText(params, metadata) {
145
- await this._elementHandle.selectText(metadata, params);
146
- }
147
- async setInputFiles(params, metadata) {
148
- return await this._elementHandle.setInputFiles(metadata, params);
149
- }
150
- async focus(params, metadata) {
151
- await this._elementHandle.focus(metadata);
152
- }
153
- async type(params, metadata) {
154
- return await this._elementHandle.type(metadata, params.text, params);
155
- }
156
- async press(params, metadata) {
157
- return await this._elementHandle.press(metadata, params.key, params);
158
- }
159
- async check(params, metadata) {
160
- return await this._elementHandle.check(metadata, params);
161
- }
162
- async uncheck(params, metadata) {
163
- return await this._elementHandle.uncheck(metadata, params);
164
- }
165
- async boundingBox(params, metadata) {
166
- const value = await this._elementHandle.boundingBox();
167
- return {
168
- value: value || undefined
169
- };
170
- }
171
- async screenshot(params, metadata) {
172
- const mask = (params.mask || []).map(({
173
- frame,
174
- selector
175
- }) => ({
176
- frame: frame._object,
177
- selector
178
- }));
179
- return {
180
- binary: await this._elementHandle.screenshot(metadata, {
181
- ...params,
182
- mask
183
- })
184
- };
185
- }
186
- async querySelector(params, metadata) {
187
- const handle = await this._elementHandle.querySelector(params.selector, params);
188
- return {
189
- element: ElementHandleDispatcher.fromNullable(this.parentScope(), handle)
190
- };
191
- }
192
- async querySelectorAll(params, metadata) {
193
- const elements = await this._elementHandle.querySelectorAll(params.selector);
194
- return {
195
- elements: elements.map(e => ElementHandleDispatcher.from(this.parentScope(), e))
196
- };
197
- }
198
- async evalOnSelector(params, metadata) {
199
- return {
200
- value: (0, _jsHandleDispatcher.serializeResult)(await this._elementHandle.evalOnSelector(params.selector, !!params.strict, params.expression, params.isFunction, (0, _jsHandleDispatcher.parseArgument)(params.arg)))
201
- };
202
- }
203
- async evalOnSelectorAll(params, metadata) {
204
- return {
205
- value: (0, _jsHandleDispatcher.serializeResult)(await this._elementHandle.evalOnSelectorAll(params.selector, params.expression, params.isFunction, (0, _jsHandleDispatcher.parseArgument)(params.arg)))
206
- };
207
- }
208
- async waitForElementState(params, metadata) {
209
- await this._elementHandle.waitForElementState(metadata, params.state, params);
210
- }
211
- async waitForSelector(params, metadata) {
212
- return {
213
- element: ElementHandleDispatcher.fromNullable(this.parentScope(), await this._elementHandle.waitForSelector(metadata, params.selector, params))
214
- };
215
- }
216
- _browserContextDispatcher() {
217
- const scope = this.parentScope();
218
- if (scope instanceof _browserContextDispatcher.BrowserContextDispatcher) return scope;
219
- if (scope instanceof _pageDispatcher.PageDispatcher) return scope.parentScope();
220
- if (scope instanceof _pageDispatcher.WorkerDispatcher || scope instanceof _frameDispatcher.FrameDispatcher) {
221
- const parentScope = scope.parentScope();
222
- if (parentScope instanceof _browserContextDispatcher.BrowserContextDispatcher) return parentScope;
223
- return parentScope.parentScope();
224
- }
225
- throw new Error('ElementHandle belongs to unexpected scope');
226
- }
227
- }
228
- exports.ElementHandleDispatcher = ElementHandleDispatcher;
@@ -1,294 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.FrameDispatcher = void 0;
7
- var _frames = require("../frames");
8
- var _dispatcher = require("./dispatcher");
9
- var _elementHandlerDispatcher = require("./elementHandlerDispatcher");
10
- var _jsHandleDispatcher = require("./jsHandleDispatcher");
11
- var _networkDispatchers = require("./networkDispatchers");
12
- var _utils = require("../../utils");
13
- var _ariaSnapshot = require("../../utils/isomorphic/ariaSnapshot");
14
- var _utilsBundle = require("../../utilsBundle");
15
- /**
16
- * Copyright (c) Microsoft Corporation.
17
- *
18
- * Licensed under the Apache License, Version 2.0 (the "License");
19
- * you may not use this file except in compliance with the License.
20
- * You may obtain a copy of the License at
21
- *
22
- * http://www.apache.org/licenses/LICENSE-2.0
23
- *
24
- * Unless required by applicable law or agreed to in writing, software
25
- * distributed under the License is distributed on an "AS IS" BASIS,
26
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
- * See the License for the specific language governing permissions and
28
- * limitations under the License.
29
- */
30
-
31
- class FrameDispatcher extends _dispatcher.Dispatcher {
32
- static from(scope, frame) {
33
- const result = (0, _dispatcher.existingDispatcher)(frame);
34
- return result || new FrameDispatcher(scope, frame);
35
- }
36
- static fromNullable(scope, frame) {
37
- if (!frame) return;
38
- return FrameDispatcher.from(scope, frame);
39
- }
40
- constructor(scope, frame) {
41
- // Main frames are gc'ed separately from any other frames, so that
42
- // methods on Page that redirect to the main frame remain operational.
43
- // Note: we cannot check parentFrame() here because it may be null after the frame has been detached.
44
- (0, _utils.debugAssert)(frame._page.mainFrame(), 'Cannot determine whether the frame is a main frame');
45
- const gcBucket = frame._page.mainFrame() === frame ? 'MainFrame' : 'Frame';
46
- const pageDispatcher = (0, _dispatcher.existingDispatcher)(frame._page);
47
- super(pageDispatcher || scope, frame, 'Frame', {
48
- url: frame.url(),
49
- name: frame.name(),
50
- parentFrame: FrameDispatcher.fromNullable(scope, frame.parentFrame()),
51
- loadStates: Array.from(frame._firedLifecycleEvents)
52
- }, gcBucket);
53
- this._type_Frame = true;
54
- this._frame = void 0;
55
- this._browserContextDispatcher = void 0;
56
- this._browserContextDispatcher = scope;
57
- this._frame = frame;
58
- this.addObjectListener(_frames.Frame.Events.AddLifecycle, lifecycleEvent => {
59
- this._dispatchEvent('loadstate', {
60
- add: lifecycleEvent
61
- });
62
- });
63
- this.addObjectListener(_frames.Frame.Events.RemoveLifecycle, lifecycleEvent => {
64
- this._dispatchEvent('loadstate', {
65
- remove: lifecycleEvent
66
- });
67
- });
68
- this.addObjectListener(_frames.Frame.Events.InternalNavigation, event => {
69
- if (!event.isPublic) return;
70
- const params = {
71
- url: event.url,
72
- name: event.name,
73
- error: event.error ? event.error.message : undefined
74
- };
75
- if (event.newDocument) params.newDocument = {
76
- request: _networkDispatchers.RequestDispatcher.fromNullable(this._browserContextDispatcher, event.newDocument.request || null)
77
- };
78
- this._dispatchEvent('navigated', params);
79
- });
80
- }
81
- async goto(params, metadata) {
82
- return {
83
- response: _networkDispatchers.ResponseDispatcher.fromNullable(this._browserContextDispatcher, await this._frame.goto(metadata, params.url, params))
84
- };
85
- }
86
- async frameElement() {
87
- return {
88
- element: _elementHandlerDispatcher.ElementHandleDispatcher.from(this, await this._frame.frameElement())
89
- };
90
- }
91
- async evaluateExpression(params, metadata) {
92
- return {
93
- value: (0, _jsHandleDispatcher.serializeResult)(await this._frame.evaluateExpression(params.expression, {
94
- isFunction: params.isFunction
95
- }, (0, _jsHandleDispatcher.parseArgument)(params.arg)))
96
- };
97
- }
98
- async evaluateExpressionHandle(params, metadata) {
99
- return {
100
- handle: _elementHandlerDispatcher.ElementHandleDispatcher.fromJSHandle(this, await this._frame.evaluateExpressionHandle(params.expression, {
101
- isFunction: params.isFunction
102
- }, (0, _jsHandleDispatcher.parseArgument)(params.arg)))
103
- };
104
- }
105
- async waitForSelector(params, metadata) {
106
- return {
107
- element: _elementHandlerDispatcher.ElementHandleDispatcher.fromNullable(this, await this._frame.waitForSelector(metadata, params.selector, params))
108
- };
109
- }
110
- async dispatchEvent(params, metadata) {
111
- return this._frame.dispatchEvent(metadata, params.selector, params.type, (0, _jsHandleDispatcher.parseArgument)(params.eventInit), params);
112
- }
113
- async evalOnSelector(params, metadata) {
114
- return {
115
- value: (0, _jsHandleDispatcher.serializeResult)(await this._frame.evalOnSelector(params.selector, !!params.strict, params.expression, params.isFunction, (0, _jsHandleDispatcher.parseArgument)(params.arg)))
116
- };
117
- }
118
- async evalOnSelectorAll(params, metadata) {
119
- return {
120
- value: (0, _jsHandleDispatcher.serializeResult)(await this._frame.evalOnSelectorAll(params.selector, params.expression, params.isFunction, (0, _jsHandleDispatcher.parseArgument)(params.arg)))
121
- };
122
- }
123
- async querySelector(params, metadata) {
124
- return {
125
- element: _elementHandlerDispatcher.ElementHandleDispatcher.fromNullable(this, await this._frame.querySelector(params.selector, params))
126
- };
127
- }
128
- async querySelectorAll(params, metadata) {
129
- const elements = await this._frame.querySelectorAll(params.selector);
130
- return {
131
- elements: elements.map(e => _elementHandlerDispatcher.ElementHandleDispatcher.from(this, e))
132
- };
133
- }
134
- async queryCount(params) {
135
- return {
136
- value: await this._frame.queryCount(params.selector)
137
- };
138
- }
139
- async content() {
140
- return {
141
- value: await this._frame.content()
142
- };
143
- }
144
- async setContent(params, metadata) {
145
- return await this._frame.setContent(metadata, params.html, params);
146
- }
147
- async addScriptTag(params, metadata) {
148
- return {
149
- element: _elementHandlerDispatcher.ElementHandleDispatcher.from(this, await this._frame.addScriptTag(params))
150
- };
151
- }
152
- async addStyleTag(params, metadata) {
153
- return {
154
- element: _elementHandlerDispatcher.ElementHandleDispatcher.from(this, await this._frame.addStyleTag(params))
155
- };
156
- }
157
- async click(params, metadata) {
158
- metadata.potentiallyClosesScope = true;
159
- return await this._frame.click(metadata, params.selector, params);
160
- }
161
- async dblclick(params, metadata) {
162
- return await this._frame.dblclick(metadata, params.selector, params);
163
- }
164
- async dragAndDrop(params, metadata) {
165
- return await this._frame.dragAndDrop(metadata, params.source, params.target, params);
166
- }
167
- async tap(params, metadata) {
168
- return await this._frame.tap(metadata, params.selector, params);
169
- }
170
- async fill(params, metadata) {
171
- return await this._frame.fill(metadata, params.selector, params.value, params);
172
- }
173
- async focus(params, metadata) {
174
- await this._frame.focus(metadata, params.selector, params);
175
- }
176
- async blur(params, metadata) {
177
- await this._frame.blur(metadata, params.selector, params);
178
- }
179
- async textContent(params, metadata) {
180
- const value = await this._frame.textContent(metadata, params.selector, params);
181
- return {
182
- value: value === null ? undefined : value
183
- };
184
- }
185
- async innerText(params, metadata) {
186
- return {
187
- value: await this._frame.innerText(metadata, params.selector, params)
188
- };
189
- }
190
- async innerHTML(params, metadata) {
191
- return {
192
- value: await this._frame.innerHTML(metadata, params.selector, params)
193
- };
194
- }
195
- async getAttribute(params, metadata) {
196
- const value = await this._frame.getAttribute(metadata, params.selector, params.name, params);
197
- return {
198
- value: value === null ? undefined : value
199
- };
200
- }
201
- async inputValue(params, metadata) {
202
- const value = await this._frame.inputValue(metadata, params.selector, params);
203
- return {
204
- value
205
- };
206
- }
207
- async isChecked(params, metadata) {
208
- return {
209
- value: await this._frame.isChecked(metadata, params.selector, params)
210
- };
211
- }
212
- async isDisabled(params, metadata) {
213
- return {
214
- value: await this._frame.isDisabled(metadata, params.selector, params)
215
- };
216
- }
217
- async isEditable(params, metadata) {
218
- return {
219
- value: await this._frame.isEditable(metadata, params.selector, params)
220
- };
221
- }
222
- async isEnabled(params, metadata) {
223
- return {
224
- value: await this._frame.isEnabled(metadata, params.selector, params)
225
- };
226
- }
227
- async isHidden(params, metadata) {
228
- return {
229
- value: await this._frame.isHidden(metadata, params.selector, params)
230
- };
231
- }
232
- async isVisible(params, metadata) {
233
- return {
234
- value: await this._frame.isVisible(metadata, params.selector, params)
235
- };
236
- }
237
- async hover(params, metadata) {
238
- return await this._frame.hover(metadata, params.selector, params);
239
- }
240
- async selectOption(params, metadata) {
241
- const elements = (params.elements || []).map(e => e._elementHandle);
242
- return {
243
- values: await this._frame.selectOption(metadata, params.selector, elements, params.options || [], params)
244
- };
245
- }
246
- async setInputFiles(params, metadata) {
247
- return await this._frame.setInputFiles(metadata, params.selector, params);
248
- }
249
- async type(params, metadata) {
250
- return await this._frame.type(metadata, params.selector, params.text, params);
251
- }
252
- async press(params, metadata) {
253
- return await this._frame.press(metadata, params.selector, params.key, params);
254
- }
255
- async check(params, metadata) {
256
- return await this._frame.check(metadata, params.selector, params);
257
- }
258
- async uncheck(params, metadata) {
259
- return await this._frame.uncheck(metadata, params.selector, params);
260
- }
261
- async waitForTimeout(params, metadata) {
262
- return await this._frame.waitForTimeout(metadata, params.timeout);
263
- }
264
- async waitForFunction(params, metadata) {
265
- return {
266
- handle: _elementHandlerDispatcher.ElementHandleDispatcher.fromJSHandle(this, await this._frame._waitForFunctionExpression(metadata, params.expression, params.isFunction, (0, _jsHandleDispatcher.parseArgument)(params.arg), params))
267
- };
268
- }
269
- async title(params, metadata) {
270
- return {
271
- value: await this._frame.title()
272
- };
273
- }
274
- async highlight(params, metadata) {
275
- return await this._frame.highlight(params.selector);
276
- }
277
- async expect(params, metadata) {
278
- metadata.potentiallyClosesScope = true;
279
- let expectedValue = params.expectedValue ? (0, _jsHandleDispatcher.parseArgument)(params.expectedValue) : undefined;
280
- if (params.expression === 'to.match.aria' && expectedValue) expectedValue = (0, _ariaSnapshot.parseAriaSnapshotUnsafe)(_utilsBundle.yaml, expectedValue);
281
- const result = await this._frame.expect(metadata, params.selector, {
282
- ...params,
283
- expectedValue
284
- });
285
- if (result.received !== undefined) result.received = (0, _jsHandleDispatcher.serializeResult)(result.received);
286
- return result;
287
- }
288
- async ariaSnapshot(params, metadata) {
289
- return {
290
- snapshot: await this._frame.ariaSnapshot(metadata, params.selector, params)
291
- };
292
- }
293
- }
294
- exports.FrameDispatcher = FrameDispatcher;
@@ -1,97 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.JSHandleDispatcher = void 0;
7
- exports.parseArgument = parseArgument;
8
- exports.parseValue = parseValue;
9
- exports.serializeResult = serializeResult;
10
- var _dispatcher = require("./dispatcher");
11
- var _elementHandlerDispatcher = require("./elementHandlerDispatcher");
12
- var _serializers = require("../../protocol/serializers");
13
- /**
14
- * Copyright (c) Microsoft Corporation.
15
- *
16
- * Licensed under the Apache License, Version 2.0 (the "License");
17
- * you may not use this file except in compliance with the License.
18
- * You may obtain a copy of the License at
19
- *
20
- * http://www.apache.org/licenses/LICENSE-2.0
21
- *
22
- * Unless required by applicable law or agreed to in writing, software
23
- * distributed under the License is distributed on an "AS IS" BASIS,
24
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25
- * See the License for the specific language governing permissions and
26
- * limitations under the License.
27
- */
28
-
29
- class JSHandleDispatcher extends _dispatcher.Dispatcher {
30
- constructor(scope, jsHandle) {
31
- // Do not call this directly, use createHandle() instead.
32
- super(scope, jsHandle, jsHandle.asElement() ? 'ElementHandle' : 'JSHandle', {
33
- preview: jsHandle.toString()
34
- });
35
- this._type_JSHandle = true;
36
- jsHandle._setPreviewCallback(preview => this._dispatchEvent('previewUpdated', {
37
- preview
38
- }));
39
- }
40
- async evaluateExpression(params) {
41
- return {
42
- value: serializeResult(await this._object.evaluateExpression(params.expression, {
43
- isFunction: params.isFunction
44
- }, parseArgument(params.arg)))
45
- };
46
- }
47
- async evaluateExpressionHandle(params) {
48
- const jsHandle = await this._object.evaluateExpressionHandle(params.expression, {
49
- isFunction: params.isFunction
50
- }, parseArgument(params.arg));
51
- return {
52
- handle: _elementHandlerDispatcher.ElementHandleDispatcher.fromJSHandle(this.parentScope(), jsHandle)
53
- };
54
- }
55
- async getProperty(params) {
56
- const jsHandle = await this._object.getProperty(params.name);
57
- return {
58
- handle: _elementHandlerDispatcher.ElementHandleDispatcher.fromJSHandle(this.parentScope(), jsHandle)
59
- };
60
- }
61
- async getPropertyList() {
62
- const map = await this._object.getProperties();
63
- const properties = [];
64
- for (const [name, value] of map) properties.push({
65
- name,
66
- value: _elementHandlerDispatcher.ElementHandleDispatcher.fromJSHandle(this.parentScope(), value)
67
- });
68
- return {
69
- properties
70
- };
71
- }
72
- async jsonValue() {
73
- return {
74
- value: serializeResult(await this._object.jsonValue())
75
- };
76
- }
77
- async dispose(_, metadata) {
78
- metadata.potentiallyClosesScope = true;
79
- this._object.dispose();
80
- this._dispose();
81
- }
82
- }
83
-
84
- // Generic channel parser converts guids to JSHandleDispatchers,
85
- // and this function takes care of converting them into underlying JSHandles.
86
- exports.JSHandleDispatcher = JSHandleDispatcher;
87
- function parseArgument(arg) {
88
- return (0, _serializers.parseSerializedValue)(arg.value, arg.handles.map(a => a._object));
89
- }
90
- function parseValue(v) {
91
- return (0, _serializers.parseSerializedValue)(v, []);
92
- }
93
- function serializeResult(arg) {
94
- return (0, _serializers.serializeValue)(arg, value => ({
95
- fallThrough: value
96
- }));
97
- }
@@ -1,59 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.JsonPipeDispatcher = void 0;
7
- var _dispatcher = require("./dispatcher");
8
- var _utils = require("../../utils");
9
- /**
10
- * Copyright (c) Microsoft Corporation.
11
- *
12
- * Licensed under the Apache License, Version 2.0 (the 'License");
13
- * you may not use this file except in compliance with the License.
14
- * You may obtain a copy of the License at
15
- *
16
- * http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software
19
- * distributed under the License is distributed on an "AS IS" BASIS,
20
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21
- * See the License for the specific language governing permissions and
22
- * limitations under the License.
23
- */
24
-
25
- class JsonPipeDispatcher extends _dispatcher.Dispatcher {
26
- constructor(scope) {
27
- super(scope, {
28
- guid: 'jsonPipe@' + (0, _utils.createGuid)()
29
- }, 'JsonPipe', {});
30
- this._type_JsonPipe = true;
31
- }
32
- async send(params) {
33
- this.emit('message', params.message);
34
- }
35
- async close() {
36
- this.emit('close');
37
- if (!this._disposed) {
38
- this._dispatchEvent('closed', {});
39
- this._dispose();
40
- }
41
- }
42
- dispatch(message) {
43
- if (!this._disposed) this._dispatchEvent('message', {
44
- message
45
- });
46
- }
47
- wasClosed(reason) {
48
- if (!this._disposed) {
49
- this._dispatchEvent('closed', {
50
- reason
51
- });
52
- this._dispose();
53
- }
54
- }
55
- dispose() {
56
- this._dispose();
57
- }
58
- }
59
- exports.JsonPipeDispatcher = JsonPipeDispatcher;