easytouch-linux 1.0.6 → 1.0.7

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 (331) hide show
  1. package/.playwright/node/LICENSE +2607 -0
  2. package/.playwright/node/linux-x64/node +0 -0
  3. package/.playwright/package/README.md +3 -0
  4. package/.playwright/package/ThirdPartyNotices.txt +1602 -0
  5. package/.playwright/package/api.json +1 -0
  6. package/.playwright/package/bin/install_media_pack.ps1 +5 -0
  7. package/.playwright/package/bin/reinstall_chrome_beta_linux.sh +42 -0
  8. package/.playwright/package/bin/reinstall_chrome_beta_mac.sh +13 -0
  9. package/.playwright/package/bin/reinstall_chrome_beta_win.ps1 +24 -0
  10. package/.playwright/package/bin/reinstall_chrome_stable_linux.sh +42 -0
  11. package/.playwright/package/bin/reinstall_chrome_stable_mac.sh +12 -0
  12. package/.playwright/package/bin/reinstall_chrome_stable_win.ps1 +24 -0
  13. package/.playwright/package/bin/reinstall_msedge_beta_linux.sh +48 -0
  14. package/.playwright/package/bin/reinstall_msedge_beta_mac.sh +11 -0
  15. package/.playwright/package/bin/reinstall_msedge_beta_win.ps1 +23 -0
  16. package/.playwright/package/bin/reinstall_msedge_dev_linux.sh +48 -0
  17. package/.playwright/package/bin/reinstall_msedge_dev_mac.sh +11 -0
  18. package/.playwright/package/bin/reinstall_msedge_dev_win.ps1 +23 -0
  19. package/.playwright/package/bin/reinstall_msedge_stable_linux.sh +48 -0
  20. package/.playwright/package/bin/reinstall_msedge_stable_mac.sh +11 -0
  21. package/.playwright/package/bin/reinstall_msedge_stable_win.ps1 +24 -0
  22. package/.playwright/package/browsers.json +66 -0
  23. package/.playwright/package/cli.js +18 -0
  24. package/.playwright/package/index.d.ts +17 -0
  25. package/.playwright/package/index.js +33 -0
  26. package/.playwright/package/index.mjs +28 -0
  27. package/.playwright/package/lib/androidServerImpl.js +69 -0
  28. package/.playwright/package/lib/browserServerImpl.js +92 -0
  29. package/.playwright/package/lib/cli/driver.js +95 -0
  30. package/.playwright/package/lib/cli/program.js +583 -0
  31. package/.playwright/package/lib/cli/programWithTestStub.js +67 -0
  32. package/.playwright/package/lib/client/accessibility.js +50 -0
  33. package/.playwright/package/lib/client/android.js +473 -0
  34. package/.playwright/package/lib/client/api.js +285 -0
  35. package/.playwright/package/lib/client/artifact.js +79 -0
  36. package/.playwright/package/lib/client/browser.js +145 -0
  37. package/.playwright/package/lib/client/browserContext.js +559 -0
  38. package/.playwright/package/lib/client/browserType.js +241 -0
  39. package/.playwright/package/lib/client/cdpSession.js +53 -0
  40. package/.playwright/package/lib/client/channelOwner.js +215 -0
  41. package/.playwright/package/lib/client/clientHelper.js +57 -0
  42. package/.playwright/package/lib/client/clientInstrumentation.js +52 -0
  43. package/.playwright/package/lib/client/clock.js +68 -0
  44. package/.playwright/package/lib/client/connection.js +333 -0
  45. package/.playwright/package/lib/client/consoleMessage.js +55 -0
  46. package/.playwright/package/lib/client/coverage.js +41 -0
  47. package/.playwright/package/lib/client/dialog.js +57 -0
  48. package/.playwright/package/lib/client/download.js +62 -0
  49. package/.playwright/package/lib/client/electron.js +135 -0
  50. package/.playwright/package/lib/client/elementHandle.js +321 -0
  51. package/.playwright/package/lib/client/errors.js +77 -0
  52. package/.playwright/package/lib/client/eventEmitter.js +314 -0
  53. package/.playwright/package/lib/client/events.js +94 -0
  54. package/.playwright/package/lib/client/fetch.js +391 -0
  55. package/.playwright/package/lib/client/fileChooser.js +45 -0
  56. package/.playwright/package/lib/client/frame.js +504 -0
  57. package/.playwright/package/lib/client/harRouter.js +99 -0
  58. package/.playwright/package/lib/client/input.js +111 -0
  59. package/.playwright/package/lib/client/jsHandle.js +121 -0
  60. package/.playwright/package/lib/client/jsonPipe.js +35 -0
  61. package/.playwright/package/lib/client/localUtils.js +36 -0
  62. package/.playwright/package/lib/client/locator.js +448 -0
  63. package/.playwright/package/lib/client/network.js +769 -0
  64. package/.playwright/package/lib/client/page.js +748 -0
  65. package/.playwright/package/lib/client/playwright.js +80 -0
  66. package/.playwright/package/lib/client/selectors.js +67 -0
  67. package/.playwright/package/lib/client/stream.js +54 -0
  68. package/.playwright/package/lib/client/tracing.js +147 -0
  69. package/.playwright/package/lib/client/types.js +24 -0
  70. package/.playwright/package/lib/client/video.js +51 -0
  71. package/.playwright/package/lib/client/waiter.js +162 -0
  72. package/.playwright/package/lib/client/webError.js +37 -0
  73. package/.playwright/package/lib/client/worker.js +71 -0
  74. package/.playwright/package/lib/client/writableStream.js +54 -0
  75. package/.playwright/package/lib/common/socksProxy.js +569 -0
  76. package/.playwright/package/lib/common/timeoutSettings.js +73 -0
  77. package/.playwright/package/lib/common/types.js +5 -0
  78. package/.playwright/package/lib/generated/clockSource.js +7 -0
  79. package/.playwright/package/lib/generated/consoleApiSource.js +7 -0
  80. package/.playwright/package/lib/generated/injectedScriptSource.js +7 -0
  81. package/.playwright/package/lib/generated/pollingRecorderSource.js +7 -0
  82. package/.playwright/package/lib/generated/utilityScriptSource.js +7 -0
  83. package/.playwright/package/lib/generated/webSocketMockSource.js +7 -0
  84. package/.playwright/package/lib/image_tools/colorUtils.js +98 -0
  85. package/.playwright/package/lib/image_tools/compare.js +108 -0
  86. package/.playwright/package/lib/image_tools/imageChannel.js +70 -0
  87. package/.playwright/package/lib/image_tools/stats.js +102 -0
  88. package/.playwright/package/lib/inProcessFactory.js +56 -0
  89. package/.playwright/package/lib/inprocess.js +20 -0
  90. package/.playwright/package/lib/outofprocess.js +67 -0
  91. package/.playwright/package/lib/protocol/debug.js +27 -0
  92. package/.playwright/package/lib/protocol/serializers.js +173 -0
  93. package/.playwright/package/lib/protocol/transport.js +82 -0
  94. package/.playwright/package/lib/protocol/validator.js +2780 -0
  95. package/.playwright/package/lib/protocol/validatorPrimitives.js +139 -0
  96. package/.playwright/package/lib/remote/playwrightConnection.js +275 -0
  97. package/.playwright/package/lib/remote/playwrightServer.js +111 -0
  98. package/.playwright/package/lib/server/accessibility.js +62 -0
  99. package/.playwright/package/lib/server/android/android.js +441 -0
  100. package/.playwright/package/lib/server/android/backendAdb.js +172 -0
  101. package/.playwright/package/lib/server/artifact.js +104 -0
  102. package/.playwright/package/lib/server/bidi/bidiBrowser.js +314 -0
  103. package/.playwright/package/lib/server/bidi/bidiChromium.js +124 -0
  104. package/.playwright/package/lib/server/bidi/bidiConnection.js +204 -0
  105. package/.playwright/package/lib/server/bidi/bidiExecutionContext.js +175 -0
  106. package/.playwright/package/lib/server/bidi/bidiFirefox.js +104 -0
  107. package/.playwright/package/lib/server/bidi/bidiInput.js +160 -0
  108. package/.playwright/package/lib/server/bidi/bidiNetworkManager.js +337 -0
  109. package/.playwright/package/lib/server/bidi/bidiOverCdp.js +103 -0
  110. package/.playwright/package/lib/server/bidi/bidiPage.js +518 -0
  111. package/.playwright/package/lib/server/bidi/bidiPdf.js +140 -0
  112. package/.playwright/package/lib/server/bidi/third_party/bidiDeserializer.js +93 -0
  113. package/.playwright/package/lib/server/bidi/third_party/bidiKeyboard.js +240 -0
  114. package/.playwright/package/lib/server/bidi/third_party/bidiProtocol.js +139 -0
  115. package/.playwright/package/lib/server/bidi/third_party/bidiSerializer.js +144 -0
  116. package/.playwright/package/lib/server/bidi/third_party/firefoxPrefs.js +221 -0
  117. package/.playwright/package/lib/server/browser.js +148 -0
  118. package/.playwright/package/lib/server/browserContext.js +675 -0
  119. package/.playwright/package/lib/server/browserType.js +338 -0
  120. package/.playwright/package/lib/server/chromium/appIcon.png +0 -0
  121. package/.playwright/package/lib/server/chromium/chromium.js +354 -0
  122. package/.playwright/package/lib/server/chromium/chromiumSwitches.js +46 -0
  123. package/.playwright/package/lib/server/chromium/crAccessibility.js +237 -0
  124. package/.playwright/package/lib/server/chromium/crBrowser.js +516 -0
  125. package/.playwright/package/lib/server/chromium/crConnection.js +228 -0
  126. package/.playwright/package/lib/server/chromium/crCoverage.js +246 -0
  127. package/.playwright/package/lib/server/chromium/crDevTools.js +104 -0
  128. package/.playwright/package/lib/server/chromium/crDragDrop.js +143 -0
  129. package/.playwright/package/lib/server/chromium/crExecutionContext.js +132 -0
  130. package/.playwright/package/lib/server/chromium/crInput.js +182 -0
  131. package/.playwright/package/lib/server/chromium/crNetworkManager.js +767 -0
  132. package/.playwright/package/lib/server/chromium/crPage.js +1122 -0
  133. package/.playwright/package/lib/server/chromium/crPdf.js +153 -0
  134. package/.playwright/package/lib/server/chromium/crProtocolHelper.js +133 -0
  135. package/.playwright/package/lib/server/chromium/crServiceWorker.js +112 -0
  136. package/.playwright/package/lib/server/chromium/defaultFontFamilies.js +145 -0
  137. package/.playwright/package/lib/server/chromium/videoRecorder.js +155 -0
  138. package/.playwright/package/lib/server/clock.js +125 -0
  139. package/.playwright/package/lib/server/codegen/csharp.js +304 -0
  140. package/.playwright/package/lib/server/codegen/java.js +243 -0
  141. package/.playwright/package/lib/server/codegen/javascript.js +253 -0
  142. package/.playwright/package/lib/server/codegen/jsonl.js +47 -0
  143. package/.playwright/package/lib/server/codegen/language.js +88 -0
  144. package/.playwright/package/lib/server/codegen/languages.js +30 -0
  145. package/.playwright/package/lib/server/codegen/python.js +262 -0
  146. package/.playwright/package/lib/server/codegen/types.js +5 -0
  147. package/.playwright/package/lib/server/console.js +57 -0
  148. package/.playwright/package/lib/server/cookieStore.js +185 -0
  149. package/.playwright/package/lib/server/debugController.js +212 -0
  150. package/.playwright/package/lib/server/debugger.js +132 -0
  151. package/.playwright/package/lib/server/deviceDescriptors.js +26 -0
  152. package/.playwright/package/lib/server/deviceDescriptorsSource.json +1669 -0
  153. package/.playwright/package/lib/server/dialog.js +71 -0
  154. package/.playwright/package/lib/server/dispatchers/androidDispatcher.js +204 -0
  155. package/.playwright/package/lib/server/dispatchers/artifactDispatcher.js +118 -0
  156. package/.playwright/package/lib/server/dispatchers/browserContextDispatcher.js +357 -0
  157. package/.playwright/package/lib/server/dispatchers/browserDispatcher.js +170 -0
  158. package/.playwright/package/lib/server/dispatchers/browserTypeDispatcher.js +55 -0
  159. package/.playwright/package/lib/server/dispatchers/cdpSessionDispatcher.js +48 -0
  160. package/.playwright/package/lib/server/dispatchers/debugControllerDispatcher.js +105 -0
  161. package/.playwright/package/lib/server/dispatchers/dialogDispatcher.js +44 -0
  162. package/.playwright/package/lib/server/dispatchers/dispatcher.js +395 -0
  163. package/.playwright/package/lib/server/dispatchers/electronDispatcher.js +93 -0
  164. package/.playwright/package/lib/server/dispatchers/elementHandlerDispatcher.js +228 -0
  165. package/.playwright/package/lib/server/dispatchers/frameDispatcher.js +294 -0
  166. package/.playwright/package/lib/server/dispatchers/jsHandleDispatcher.js +97 -0
  167. package/.playwright/package/lib/server/dispatchers/jsonPipeDispatcher.js +59 -0
  168. package/.playwright/package/lib/server/dispatchers/localUtilsDispatcher.js +413 -0
  169. package/.playwright/package/lib/server/dispatchers/networkDispatchers.js +221 -0
  170. package/.playwright/package/lib/server/dispatchers/pageDispatcher.js +367 -0
  171. package/.playwright/package/lib/server/dispatchers/playwrightDispatcher.js +107 -0
  172. package/.playwright/package/lib/server/dispatchers/selectorsDispatcher.js +36 -0
  173. package/.playwright/package/lib/server/dispatchers/streamDispatcher.js +62 -0
  174. package/.playwright/package/lib/server/dispatchers/tracingDispatcher.js +64 -0
  175. package/.playwright/package/lib/server/dispatchers/webSocketRouteDispatcher.js +188 -0
  176. package/.playwright/package/lib/server/dispatchers/writableStreamDispatcher.js +58 -0
  177. package/.playwright/package/lib/server/dom.js +893 -0
  178. package/.playwright/package/lib/server/download.js +60 -0
  179. package/.playwright/package/lib/server/electron/electron.js +296 -0
  180. package/.playwright/package/lib/server/electron/loader.js +57 -0
  181. package/.playwright/package/lib/server/errors.js +68 -0
  182. package/.playwright/package/lib/server/fetch.js +663 -0
  183. package/.playwright/package/lib/server/fileChooser.js +42 -0
  184. package/.playwright/package/lib/server/fileUploadUtils.js +75 -0
  185. package/.playwright/package/lib/server/firefox/ffAccessibility.js +216 -0
  186. package/.playwright/package/lib/server/firefox/ffBrowser.js +462 -0
  187. package/.playwright/package/lib/server/firefox/ffConnection.js +168 -0
  188. package/.playwright/package/lib/server/firefox/ffExecutionContext.js +123 -0
  189. package/.playwright/package/lib/server/firefox/ffInput.js +161 -0
  190. package/.playwright/package/lib/server/firefox/ffNetworkManager.js +233 -0
  191. package/.playwright/package/lib/server/firefox/ffPage.js +544 -0
  192. package/.playwright/package/lib/server/firefox/firefox.js +99 -0
  193. package/.playwright/package/lib/server/formData.js +75 -0
  194. package/.playwright/package/lib/server/frameSelectors.js +171 -0
  195. package/.playwright/package/lib/server/frames.js +1663 -0
  196. package/.playwright/package/lib/server/har/harRecorder.js +139 -0
  197. package/.playwright/package/lib/server/har/harTracer.js +542 -0
  198. package/.playwright/package/lib/server/helper.js +103 -0
  199. package/.playwright/package/lib/server/index.js +108 -0
  200. package/.playwright/package/lib/server/input.js +309 -0
  201. package/.playwright/package/lib/server/instrumentation.js +70 -0
  202. package/.playwright/package/lib/server/isomorphic/utilityScriptSerializers.js +226 -0
  203. package/.playwright/package/lib/server/javascript.js +293 -0
  204. package/.playwright/package/lib/server/launchApp.js +91 -0
  205. package/.playwright/package/lib/server/macEditingCommands.js +139 -0
  206. package/.playwright/package/lib/server/network.js +617 -0
  207. package/.playwright/package/lib/server/page.js +863 -0
  208. package/.playwright/package/lib/server/pipeTransport.js +85 -0
  209. package/.playwright/package/lib/server/playwright.js +88 -0
  210. package/.playwright/package/lib/server/progress.js +99 -0
  211. package/.playwright/package/lib/server/protocolError.js +49 -0
  212. package/.playwright/package/lib/server/recorder/chat.js +177 -0
  213. package/.playwright/package/lib/server/recorder/contextRecorder.js +290 -0
  214. package/.playwright/package/lib/server/recorder/recorderApp.js +187 -0
  215. package/.playwright/package/lib/server/recorder/recorderCollection.js +104 -0
  216. package/.playwright/package/lib/server/recorder/recorderFrontend.js +5 -0
  217. package/.playwright/package/lib/server/recorder/recorderRunner.js +159 -0
  218. package/.playwright/package/lib/server/recorder/recorderUtils.js +89 -0
  219. package/.playwright/package/lib/server/recorder/throttledFile.js +46 -0
  220. package/.playwright/package/lib/server/recorder.js +367 -0
  221. package/.playwright/package/lib/server/registry/browserFetcher.js +168 -0
  222. package/.playwright/package/lib/server/registry/dependencies.js +322 -0
  223. package/.playwright/package/lib/server/registry/index.js +1165 -0
  224. package/.playwright/package/lib/server/registry/nativeDeps.js +496 -0
  225. package/.playwright/package/lib/server/registry/oopDownloadBrowserMain.js +138 -0
  226. package/.playwright/package/lib/server/screenshotter.js +348 -0
  227. package/.playwright/package/lib/server/selectors.js +73 -0
  228. package/.playwright/package/lib/server/socksClientCertificatesInterceptor.js +340 -0
  229. package/.playwright/package/lib/server/socksInterceptor.js +100 -0
  230. package/.playwright/package/lib/server/trace/recorder/snapshotter.js +161 -0
  231. package/.playwright/package/lib/server/trace/recorder/snapshotterInjected.js +518 -0
  232. package/.playwright/package/lib/server/trace/recorder/tracing.js +596 -0
  233. package/.playwright/package/lib/server/trace/test/inMemorySnapshotter.js +93 -0
  234. package/.playwright/package/lib/server/trace/viewer/traceViewer.js +219 -0
  235. package/.playwright/package/lib/server/transport.js +192 -0
  236. package/.playwright/package/lib/server/types.js +24 -0
  237. package/.playwright/package/lib/server/usKeyboardLayout.js +555 -0
  238. package/.playwright/package/lib/server/webkit/webkit.js +87 -0
  239. package/.playwright/package/lib/server/webkit/wkAccessibility.js +194 -0
  240. package/.playwright/package/lib/server/webkit/wkBrowser.js +329 -0
  241. package/.playwright/package/lib/server/webkit/wkConnection.js +173 -0
  242. package/.playwright/package/lib/server/webkit/wkExecutionContext.js +131 -0
  243. package/.playwright/package/lib/server/webkit/wkInput.js +179 -0
  244. package/.playwright/package/lib/server/webkit/wkInterceptableRequest.js +162 -0
  245. package/.playwright/package/lib/server/webkit/wkPage.js +1207 -0
  246. package/.playwright/package/lib/server/webkit/wkProvisionalPage.js +94 -0
  247. package/.playwright/package/lib/server/webkit/wkWorkers.js +104 -0
  248. package/.playwright/package/lib/third_party/pixelmatch.js +255 -0
  249. package/.playwright/package/lib/utils/ascii.js +31 -0
  250. package/.playwright/package/lib/utils/comparators.js +159 -0
  251. package/.playwright/package/lib/utils/crypto.js +171 -0
  252. package/.playwright/package/lib/utils/debug.js +46 -0
  253. package/.playwright/package/lib/utils/debugLogger.js +93 -0
  254. package/.playwright/package/lib/utils/env.js +49 -0
  255. package/.playwright/package/lib/utils/eventsHelper.js +38 -0
  256. package/.playwright/package/lib/utils/expectUtils.js +33 -0
  257. package/.playwright/package/lib/utils/fileUtils.js +205 -0
  258. package/.playwright/package/lib/utils/happy-eyeballs.js +194 -0
  259. package/.playwright/package/lib/utils/headers.js +52 -0
  260. package/.playwright/package/lib/utils/hostPlatform.js +145 -0
  261. package/.playwright/package/lib/utils/httpServer.js +233 -0
  262. package/.playwright/package/lib/utils/index.js +368 -0
  263. package/.playwright/package/lib/utils/isomorphic/ariaSnapshot.js +391 -0
  264. package/.playwright/package/lib/utils/isomorphic/cssParser.js +250 -0
  265. package/.playwright/package/lib/utils/isomorphic/cssTokenizer.js +979 -0
  266. package/.playwright/package/lib/utils/isomorphic/locatorGenerators.js +660 -0
  267. package/.playwright/package/lib/utils/isomorphic/locatorParser.js +185 -0
  268. package/.playwright/package/lib/utils/isomorphic/locatorUtils.js +62 -0
  269. package/.playwright/package/lib/utils/isomorphic/mimeType.js +29 -0
  270. package/.playwright/package/lib/utils/isomorphic/selectorParser.js +397 -0
  271. package/.playwright/package/lib/utils/isomorphic/stringUtils.js +169 -0
  272. package/.playwright/package/lib/utils/isomorphic/traceUtils.js +39 -0
  273. package/.playwright/package/lib/utils/isomorphic/urlMatch.js +122 -0
  274. package/.playwright/package/lib/utils/linuxUtils.js +78 -0
  275. package/.playwright/package/lib/utils/manualPromise.js +109 -0
  276. package/.playwright/package/lib/utils/multimap.js +75 -0
  277. package/.playwright/package/lib/utils/network.js +160 -0
  278. package/.playwright/package/lib/utils/processLauncher.js +248 -0
  279. package/.playwright/package/lib/utils/profiler.js +53 -0
  280. package/.playwright/package/lib/utils/rtti.js +44 -0
  281. package/.playwright/package/lib/utils/semaphore.js +51 -0
  282. package/.playwright/package/lib/utils/sequence.js +64 -0
  283. package/.playwright/package/lib/utils/spawnAsync.js +45 -0
  284. package/.playwright/package/lib/utils/stackTrace.js +134 -0
  285. package/.playwright/package/lib/utils/task.js +58 -0
  286. package/.playwright/package/lib/utils/time.js +37 -0
  287. package/.playwright/package/lib/utils/timeoutRunner.js +66 -0
  288. package/.playwright/package/lib/utils/traceUtils.js +44 -0
  289. package/.playwright/package/lib/utils/userAgent.js +105 -0
  290. package/.playwright/package/lib/utils/wsServer.js +128 -0
  291. package/.playwright/package/lib/utils/zipFile.js +75 -0
  292. package/.playwright/package/lib/utils/zones.js +69 -0
  293. package/.playwright/package/lib/utilsBundle.js +81 -0
  294. package/.playwright/package/lib/utilsBundleImpl/index.js +210 -0
  295. package/.playwright/package/lib/utilsBundleImpl/xdg-open +1066 -0
  296. package/.playwright/package/lib/vite/htmlReport/index.html +69 -0
  297. package/.playwright/package/lib/vite/recorder/assets/codeMirrorModule-C3UTv-Ge.css +1 -0
  298. package/.playwright/package/lib/vite/recorder/assets/codeMirrorModule-k-61wZCK.js +24 -0
  299. package/.playwright/package/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
  300. package/.playwright/package/lib/vite/recorder/assets/index-B70BEW3b.js +184 -0
  301. package/.playwright/package/lib/vite/recorder/assets/index-eHBmevrY.css +1 -0
  302. package/.playwright/package/lib/vite/recorder/index.html +29 -0
  303. package/.playwright/package/lib/vite/recorder/playwright-logo.svg +9 -0
  304. package/.playwright/package/lib/vite/traceViewer/assets/codeMirrorModule-CyuxU5C-.js +24 -0
  305. package/.playwright/package/lib/vite/traceViewer/assets/defaultSettingsView-5nVJRt0A.js +243 -0
  306. package/.playwright/package/lib/vite/traceViewer/assets/xtermModule-c-SNdYZy.js +9 -0
  307. package/.playwright/package/lib/vite/traceViewer/codeMirrorModule.C3UTv-Ge.css +1 -0
  308. package/.playwright/package/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
  309. package/.playwright/package/lib/vite/traceViewer/defaultSettingsView.2xeEXCXv.css +1 -0
  310. package/.playwright/package/lib/vite/traceViewer/index.CFOW-Ezb.css +1 -0
  311. package/.playwright/package/lib/vite/traceViewer/index.html +43 -0
  312. package/.playwright/package/lib/vite/traceViewer/index.qVn2ZnpC.js +2 -0
  313. package/.playwright/package/lib/vite/traceViewer/playwright-logo.svg +9 -0
  314. package/.playwright/package/lib/vite/traceViewer/snapshot.html +21 -0
  315. package/.playwright/package/lib/vite/traceViewer/sw.bundle.js +3 -0
  316. package/.playwright/package/lib/vite/traceViewer/uiMode.BatfzHMG.css +1 -0
  317. package/.playwright/package/lib/vite/traceViewer/uiMode.html +17 -0
  318. package/.playwright/package/lib/vite/traceViewer/uiMode.m4IPRPOd.js +5 -0
  319. package/.playwright/package/lib/vite/traceViewer/xtermModule.Beg8tuEN.css +32 -0
  320. package/.playwright/package/lib/zipBundle.js +25 -0
  321. package/.playwright/package/lib/zipBundleImpl.js +5 -0
  322. package/.playwright/package/package.json +44 -0
  323. package/.playwright/package/protocol.yml +3758 -0
  324. package/.playwright/package/types/protocol.d.ts +21868 -0
  325. package/.playwright/package/types/structs.d.ts +45 -0
  326. package/.playwright/package/types/types.d.ts +22663 -0
  327. package/README.md +6 -6
  328. package/et +0 -0
  329. package/package.json +7 -2
  330. package/playwright.ps1 +7 -0
  331. package/scripts/playwright-bridge.js +560 -0
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.PipeTransport = void 0;
7
+ var _utils = require("../utils");
8
+ var _debugLogger = require("../utils/debugLogger");
9
+ /**
10
+ * Copyright 2018 Google Inc. All rights reserved.
11
+ * Modifications copyright (c) Microsoft Corporation.
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License.
15
+ * You may obtain a copy of the License at
16
+ *
17
+ * http://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS,
21
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ * See the License for the specific language governing permissions and
23
+ * limitations under the License.
24
+ */
25
+
26
+ class PipeTransport {
27
+ constructor(pipeWrite, pipeRead) {
28
+ this._pipeRead = void 0;
29
+ this._pipeWrite = void 0;
30
+ this._pendingBuffers = [];
31
+ this._waitForNextTask = (0, _utils.makeWaitForNextTask)();
32
+ this._closed = false;
33
+ this._onclose = void 0;
34
+ this.onmessage = void 0;
35
+ this._pipeRead = pipeRead;
36
+ this._pipeWrite = pipeWrite;
37
+ pipeRead.on('data', buffer => this._dispatch(buffer));
38
+ pipeRead.on('close', () => {
39
+ this._closed = true;
40
+ if (this._onclose) this._onclose.call(null);
41
+ });
42
+ pipeRead.on('error', e => _debugLogger.debugLogger.log('error', e));
43
+ pipeWrite.on('error', e => _debugLogger.debugLogger.log('error', e));
44
+ this.onmessage = undefined;
45
+ }
46
+ get onclose() {
47
+ return this._onclose;
48
+ }
49
+ set onclose(onclose) {
50
+ this._onclose = onclose;
51
+ if (onclose && !this._pipeRead.readable) onclose();
52
+ }
53
+ send(message) {
54
+ if (this._closed) throw new Error('Pipe has been closed');
55
+ this._pipeWrite.write(JSON.stringify(message));
56
+ this._pipeWrite.write('\0');
57
+ }
58
+ close() {
59
+ throw new Error('unimplemented');
60
+ }
61
+ _dispatch(buffer) {
62
+ let end = buffer.indexOf('\0');
63
+ if (end === -1) {
64
+ this._pendingBuffers.push(buffer);
65
+ return;
66
+ }
67
+ this._pendingBuffers.push(buffer.slice(0, end));
68
+ const message = Buffer.concat(this._pendingBuffers).toString();
69
+ this._waitForNextTask(() => {
70
+ if (this.onmessage) this.onmessage.call(null, JSON.parse(message));
71
+ });
72
+ let start = end + 1;
73
+ end = buffer.indexOf('\0', start);
74
+ while (end !== -1) {
75
+ const message = buffer.toString(undefined, start, end);
76
+ this._waitForNextTask(() => {
77
+ if (this.onmessage) this.onmessage.call(null, JSON.parse(message));
78
+ });
79
+ start = end + 1;
80
+ end = buffer.indexOf('\0', start);
81
+ }
82
+ this._pendingBuffers = [buffer.slice(start)];
83
+ }
84
+ }
85
+ exports.PipeTransport = PipeTransport;
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Playwright = void 0;
7
+ exports.createPlaywright = createPlaywright;
8
+ var _android = require("./android/android");
9
+ var _backendAdb = require("./android/backendAdb");
10
+ var _chromium = require("./chromium/chromium");
11
+ var _electron = require("./electron/electron");
12
+ var _firefox = require("./firefox/firefox");
13
+ var _selectors = require("./selectors");
14
+ var _webkit = require("./webkit/webkit");
15
+ var _instrumentation = require("./instrumentation");
16
+ var _utils = require("../utils");
17
+ var _debugController = require("./debugController");
18
+ var _bidiChromium = require("./bidi/bidiChromium");
19
+ var _bidiFirefox = require("./bidi/bidiFirefox");
20
+ /**
21
+ * Copyright (c) Microsoft Corporation.
22
+ *
23
+ * Licensed under the Apache License, Version 2.0 (the "License");
24
+ * you may not use this file except in compliance with the License.
25
+ * You may obtain a copy of the License at
26
+ *
27
+ * http://www.apache.org/licenses/LICENSE-2.0
28
+ *
29
+ * Unless required by applicable law or agreed to in writing, software
30
+ * distributed under the License is distributed on an "AS IS" BASIS,
31
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32
+ * See the License for the specific language governing permissions and
33
+ * limitations under the License.
34
+ */
35
+
36
+ class Playwright extends _instrumentation.SdkObject {
37
+ constructor(options) {
38
+ super({
39
+ attribution: {},
40
+ instrumentation: (0, _instrumentation.createInstrumentation)()
41
+ }, undefined, 'Playwright');
42
+ this.selectors = void 0;
43
+ this.chromium = void 0;
44
+ this.android = void 0;
45
+ this.electron = void 0;
46
+ this.firefox = void 0;
47
+ this.webkit = void 0;
48
+ this.bidiChromium = void 0;
49
+ this.bidiFirefox = void 0;
50
+ this.options = void 0;
51
+ this.debugController = void 0;
52
+ this._allPages = new Set();
53
+ this._allBrowsers = new Set();
54
+ this.options = options;
55
+ this.attribution.playwright = this;
56
+ this.instrumentation.addListener({
57
+ onBrowserOpen: browser => this._allBrowsers.add(browser),
58
+ onBrowserClose: browser => this._allBrowsers.delete(browser),
59
+ onPageOpen: page => this._allPages.add(page),
60
+ onPageClose: page => this._allPages.delete(page),
61
+ onCallLog: (sdkObject, metadata, logName, message) => {
62
+ _utils.debugLogger.log(logName, message);
63
+ }
64
+ }, null);
65
+ this.chromium = new _chromium.Chromium(this);
66
+ this.bidiChromium = new _bidiChromium.BidiChromium(this);
67
+ this.bidiFirefox = new _bidiFirefox.BidiFirefox(this);
68
+ this.firefox = new _firefox.Firefox(this);
69
+ this.webkit = new _webkit.WebKit(this);
70
+ this.electron = new _electron.Electron(this);
71
+ this.android = new _android.Android(this, new _backendAdb.AdbBackend());
72
+ this.selectors = new _selectors.Selectors();
73
+ this.debugController = new _debugController.DebugController(this);
74
+ }
75
+ async hideHighlight() {
76
+ await Promise.all([...this._allPages].map(p => p.hideHighlight().catch(() => {})));
77
+ }
78
+ allBrowsers() {
79
+ return [...this._allBrowsers];
80
+ }
81
+ allPages() {
82
+ return [...this._allPages];
83
+ }
84
+ }
85
+ exports.Playwright = Playwright;
86
+ function createPlaywright(options) {
87
+ return new Playwright(options);
88
+ }
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ProgressController = void 0;
7
+ var _errors = require("./errors");
8
+ var _utils = require("../utils");
9
+ var _manualPromise = require("../utils/manualPromise");
10
+ /**
11
+ * Copyright (c) Microsoft Corporation.
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License.
15
+ * You may obtain a copy of the License at
16
+ *
17
+ * http://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS,
21
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ * See the License for the specific language governing permissions and
23
+ * limitations under the License.
24
+ */
25
+
26
+ class ProgressController {
27
+ constructor(metadata, sdkObject) {
28
+ this._forceAbortPromise = new _manualPromise.ManualPromise();
29
+ // Cleanups to be run only in the case of abort.
30
+ this._cleanups = [];
31
+ this._logName = 'api';
32
+ this._state = 'before';
33
+ this._deadline = 0;
34
+ this._timeout = 0;
35
+ this.metadata = void 0;
36
+ this.instrumentation = void 0;
37
+ this.sdkObject = void 0;
38
+ this.metadata = metadata;
39
+ this.sdkObject = sdkObject;
40
+ this.instrumentation = sdkObject.instrumentation;
41
+ this._forceAbortPromise.catch(e => null); // Prevent unhandled promise rejection.
42
+ }
43
+ setLogName(logName) {
44
+ this._logName = logName;
45
+ }
46
+ abort(error) {
47
+ this._forceAbortPromise.reject(error);
48
+ }
49
+ async run(task, timeout) {
50
+ var _this$sdkObject$attri;
51
+ if (timeout) {
52
+ this._timeout = timeout;
53
+ this._deadline = timeout ? (0, _utils.monotonicTime)() + timeout : 0;
54
+ }
55
+ (0, _utils.assert)(this._state === 'before');
56
+ this._state = 'running';
57
+ (_this$sdkObject$attri = this.sdkObject.attribution.context) === null || _this$sdkObject$attri === void 0 || _this$sdkObject$attri._activeProgressControllers.add(this);
58
+ const progress = {
59
+ log: message => {
60
+ if (this._state === 'running') this.metadata.log.push(message);
61
+ // Note: we might be sending logs after progress has finished, for example browser logs.
62
+ this.instrumentation.onCallLog(this.sdkObject, this.metadata, this._logName, message);
63
+ },
64
+ timeUntilDeadline: () => this._deadline ? this._deadline - (0, _utils.monotonicTime)() : 2147483647,
65
+ // 2^31-1 safe setTimeout in Node.
66
+ isRunning: () => this._state === 'running',
67
+ cleanupWhenAborted: cleanup => {
68
+ if (this._state === 'running') this._cleanups.push(cleanup);else runCleanup(cleanup);
69
+ },
70
+ throwIfAborted: () => {
71
+ if (this._state === 'aborted') throw new AbortedError();
72
+ },
73
+ metadata: this.metadata
74
+ };
75
+ const timeoutError = new _errors.TimeoutError(`Timeout ${this._timeout}ms exceeded.`);
76
+ const timer = setTimeout(() => this._forceAbortPromise.reject(timeoutError), progress.timeUntilDeadline());
77
+ try {
78
+ const promise = task(progress);
79
+ const result = await Promise.race([promise, this._forceAbortPromise]);
80
+ this._state = 'finished';
81
+ return result;
82
+ } catch (e) {
83
+ this._state = 'aborted';
84
+ await Promise.all(this._cleanups.splice(0).map(runCleanup));
85
+ throw e;
86
+ } finally {
87
+ var _this$sdkObject$attri2;
88
+ (_this$sdkObject$attri2 = this.sdkObject.attribution.context) === null || _this$sdkObject$attri2 === void 0 || _this$sdkObject$attri2._activeProgressControllers.delete(this);
89
+ clearTimeout(timer);
90
+ }
91
+ }
92
+ }
93
+ exports.ProgressController = ProgressController;
94
+ async function runCleanup(cleanup) {
95
+ try {
96
+ await cleanup();
97
+ } catch (e) {}
98
+ }
99
+ class AbortedError extends Error {}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ProtocolError = void 0;
7
+ exports.isProtocolError = isProtocolError;
8
+ exports.isSessionClosedError = isSessionClosedError;
9
+ var _stackTrace = require("../utils/stackTrace");
10
+ /**
11
+ * Copyright (c) Microsoft Corporation.
12
+ *
13
+ * Licensed under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License.
15
+ * You may obtain a copy of the License at
16
+ *
17
+ * http://www.apache.org/licenses/LICENSE-2.0
18
+ *
19
+ * Unless required by applicable law or agreed to in writing, software
20
+ * distributed under the License is distributed on an "AS IS" BASIS,
21
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
+ * See the License for the specific language governing permissions and
23
+ * limitations under the License.
24
+ */
25
+
26
+ class ProtocolError extends Error {
27
+ constructor(type, method, logs) {
28
+ super();
29
+ this.type = void 0;
30
+ this.method = void 0;
31
+ this.logs = void 0;
32
+ this.type = type;
33
+ this.method = method;
34
+ this.logs = logs;
35
+ }
36
+ setMessage(message) {
37
+ (0, _stackTrace.rewriteErrorMessage)(this, `Protocol error (${this.method}): ${message}`);
38
+ }
39
+ browserLogMessage() {
40
+ return this.logs ? '\nBrowser logs:\n' + this.logs : '';
41
+ }
42
+ }
43
+ exports.ProtocolError = ProtocolError;
44
+ function isProtocolError(e) {
45
+ return e instanceof ProtocolError;
46
+ }
47
+ function isSessionClosedError(e) {
48
+ return e instanceof ProtocolError && (e.type === 'closed' || e.type === 'crashed');
49
+ }
@@ -0,0 +1,177 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Chat = void 0;
7
+ exports.asString = asString;
8
+ var _transport = require("../transport");
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 Chat {
26
+ constructor(wsEndpoint) {
27
+ this._history = [];
28
+ this._connectionPromise = void 0;
29
+ this._chatSinks = new Map();
30
+ this._wsEndpoint = void 0;
31
+ this._wsEndpoint = wsEndpoint;
32
+ }
33
+ clearHistory() {
34
+ this._history = [];
35
+ }
36
+ async post(prompt) {
37
+ await this._append('user', prompt);
38
+ let text = await asString(await this._post());
39
+ if (text.startsWith('```json') && text.endsWith('```')) text = text.substring('```json'.length, text.length - '```'.length);
40
+ for (let i = 0; i < 3; ++i) {
41
+ try {
42
+ return JSON.parse(text);
43
+ } catch (e) {
44
+ await this._append('user', String(e));
45
+ }
46
+ }
47
+ throw new Error('Failed to parse response: ' + text);
48
+ }
49
+ async _append(user, content) {
50
+ this._history.push({
51
+ user,
52
+ content
53
+ });
54
+ }
55
+ async _connection() {
56
+ if (!this._connectionPromise) {
57
+ this._connectionPromise = _transport.WebSocketTransport.connect(undefined, this._wsEndpoint).then(transport => {
58
+ return new Connection(transport, (method, params) => this._dispatchEvent(method, params), () => {});
59
+ });
60
+ }
61
+ return this._connectionPromise;
62
+ }
63
+ _dispatchEvent(method, params) {
64
+ if (method === 'chatChunk') {
65
+ const {
66
+ chatId,
67
+ chunk
68
+ } = params;
69
+ const chunkSink = this._chatSinks.get(chatId);
70
+ chunkSink(chunk);
71
+ if (!chunk) this._chatSinks.delete(chatId);
72
+ }
73
+ }
74
+ async _post() {
75
+ const connection = await this._connection();
76
+ const result = await connection.send('chat', {
77
+ history: this._history
78
+ });
79
+ const {
80
+ chatId
81
+ } = result;
82
+ const {
83
+ iterable,
84
+ addChunk
85
+ } = iterablePump();
86
+ this._chatSinks.set(chatId, addChunk);
87
+ return iterable;
88
+ }
89
+ }
90
+ exports.Chat = Chat;
91
+ async function asString(stream) {
92
+ let result = '';
93
+ for await (const chunk of stream) result += chunk;
94
+ return result;
95
+ }
96
+ function iterablePump() {
97
+ let controller;
98
+ const stream = new ReadableStream({
99
+ start: c => controller = c
100
+ });
101
+ const iterable = async function* () {
102
+ const reader = stream.getReader();
103
+ while (true) {
104
+ const {
105
+ done,
106
+ value
107
+ } = await reader.read();
108
+ if (done) break;
109
+ yield value;
110
+ }
111
+ }();
112
+ return {
113
+ iterable,
114
+ addChunk: chunk => {
115
+ if (chunk) controller.enqueue(chunk);else controller.close();
116
+ }
117
+ };
118
+ }
119
+ class Connection {
120
+ constructor(transport, onEvent, onClose) {
121
+ this._transport = void 0;
122
+ this._lastId = 0;
123
+ this._closed = false;
124
+ this._pending = new Map();
125
+ this._onEvent = void 0;
126
+ this._onClose = void 0;
127
+ this._transport = transport;
128
+ this._onEvent = onEvent;
129
+ this._onClose = onClose;
130
+ this._transport.onmessage = this._dispatchMessage.bind(this);
131
+ this._transport.onclose = this._close.bind(this);
132
+ }
133
+ send(method, params) {
134
+ const id = this._lastId++;
135
+ const message = {
136
+ id,
137
+ method,
138
+ params
139
+ };
140
+ this._transport.send(message);
141
+ return new Promise((resolve, reject) => {
142
+ this._pending.set(id, {
143
+ resolve,
144
+ reject
145
+ });
146
+ });
147
+ }
148
+ _dispatchMessage(message) {
149
+ if (message.id === undefined) {
150
+ this._onEvent(message.method, message.params);
151
+ return;
152
+ }
153
+ const callback = this._pending.get(message.id);
154
+ this._pending.delete(message.id);
155
+ if (!callback) return;
156
+ if (message.error) {
157
+ callback.reject(new Error(message.error.message));
158
+ return;
159
+ }
160
+ callback.resolve(message.result);
161
+ }
162
+ _close() {
163
+ this._closed = true;
164
+ this._transport.onmessage = undefined;
165
+ this._transport.onclose = undefined;
166
+ for (const {
167
+ reject
168
+ } of this._pending.values()) reject(new Error('Connection closed'));
169
+ this._onClose();
170
+ }
171
+ isClosed() {
172
+ return this._closed;
173
+ }
174
+ close() {
175
+ if (!this._closed) this._transport.close();
176
+ }
177
+ }