rubycrawl 0.1.1 → 0.1.3

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 (578) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubycrawl/helpers.rb +1 -1
  3. data/lib/rubycrawl/markdown_converter.rb +33 -6
  4. data/lib/rubycrawl/result.rb +10 -2
  5. data/lib/rubycrawl/site_crawler.rb +7 -2
  6. data/lib/rubycrawl/version.rb +1 -1
  7. data/rubycrawl.gemspec +1 -1
  8. metadata +1 -571
  9. data/bin/console +0 -9
  10. data/bin/setup +0 -4
  11. data/node/.gitignore +0 -2
  12. data/node/.npmrc +0 -1
  13. data/node/README.md +0 -19
  14. data/node/node_modules/.bin/playwright +0 -1
  15. data/node/node_modules/.bin/playwright-core +0 -1
  16. data/node/node_modules/.package-lock.json +0 -65
  17. data/node/node_modules/dotenv/CHANGELOG.md +0 -520
  18. data/node/node_modules/dotenv/LICENSE +0 -23
  19. data/node/node_modules/dotenv/README-es.md +0 -411
  20. data/node/node_modules/dotenv/README.md +0 -645
  21. data/node/node_modules/dotenv/SECURITY.md +0 -1
  22. data/node/node_modules/dotenv/config.d.ts +0 -1
  23. data/node/node_modules/dotenv/config.js +0 -9
  24. data/node/node_modules/dotenv/lib/cli-options.js +0 -17
  25. data/node/node_modules/dotenv/lib/env-options.js +0 -28
  26. data/node/node_modules/dotenv/lib/main.d.ts +0 -162
  27. data/node/node_modules/dotenv/lib/main.js +0 -386
  28. data/node/node_modules/dotenv/package.json +0 -62
  29. data/node/node_modules/playwright/LICENSE +0 -202
  30. data/node/node_modules/playwright/NOTICE +0 -5
  31. data/node/node_modules/playwright/README.md +0 -168
  32. data/node/node_modules/playwright/ThirdPartyNotices.txt +0 -5042
  33. data/node/node_modules/playwright/cli.js +0 -19
  34. data/node/node_modules/playwright/index.d.ts +0 -17
  35. data/node/node_modules/playwright/index.js +0 -17
  36. data/node/node_modules/playwright/index.mjs +0 -18
  37. data/node/node_modules/playwright/jsx-runtime.js +0 -42
  38. data/node/node_modules/playwright/jsx-runtime.mjs +0 -21
  39. data/node/node_modules/playwright/lib/agents/agentParser.js +0 -89
  40. data/node/node_modules/playwright/lib/agents/copilot-setup-steps.yml +0 -34
  41. data/node/node_modules/playwright/lib/agents/generateAgents.js +0 -348
  42. data/node/node_modules/playwright/lib/agents/playwright-test-coverage.prompt.md +0 -31
  43. data/node/node_modules/playwright/lib/agents/playwright-test-generate.prompt.md +0 -8
  44. data/node/node_modules/playwright/lib/agents/playwright-test-generator.agent.md +0 -88
  45. data/node/node_modules/playwright/lib/agents/playwright-test-heal.prompt.md +0 -6
  46. data/node/node_modules/playwright/lib/agents/playwright-test-healer.agent.md +0 -55
  47. data/node/node_modules/playwright/lib/agents/playwright-test-plan.prompt.md +0 -9
  48. data/node/node_modules/playwright/lib/agents/playwright-test-planner.agent.md +0 -73
  49. data/node/node_modules/playwright/lib/common/config.js +0 -282
  50. data/node/node_modules/playwright/lib/common/configLoader.js +0 -344
  51. data/node/node_modules/playwright/lib/common/esmLoaderHost.js +0 -104
  52. data/node/node_modules/playwright/lib/common/expectBundle.js +0 -28
  53. data/node/node_modules/playwright/lib/common/expectBundleImpl.js +0 -407
  54. data/node/node_modules/playwright/lib/common/fixtures.js +0 -302
  55. data/node/node_modules/playwright/lib/common/globals.js +0 -58
  56. data/node/node_modules/playwright/lib/common/ipc.js +0 -60
  57. data/node/node_modules/playwright/lib/common/poolBuilder.js +0 -85
  58. data/node/node_modules/playwright/lib/common/process.js +0 -132
  59. data/node/node_modules/playwright/lib/common/suiteUtils.js +0 -140
  60. data/node/node_modules/playwright/lib/common/test.js +0 -321
  61. data/node/node_modules/playwright/lib/common/testLoader.js +0 -101
  62. data/node/node_modules/playwright/lib/common/testType.js +0 -298
  63. data/node/node_modules/playwright/lib/common/validators.js +0 -68
  64. data/node/node_modules/playwright/lib/fsWatcher.js +0 -67
  65. data/node/node_modules/playwright/lib/index.js +0 -726
  66. data/node/node_modules/playwright/lib/internalsForTest.js +0 -42
  67. data/node/node_modules/playwright/lib/isomorphic/events.js +0 -77
  68. data/node/node_modules/playwright/lib/isomorphic/folders.js +0 -30
  69. data/node/node_modules/playwright/lib/isomorphic/stringInternPool.js +0 -69
  70. data/node/node_modules/playwright/lib/isomorphic/teleReceiver.js +0 -521
  71. data/node/node_modules/playwright/lib/isomorphic/teleSuiteUpdater.js +0 -157
  72. data/node/node_modules/playwright/lib/isomorphic/testServerConnection.js +0 -225
  73. data/node/node_modules/playwright/lib/isomorphic/testServerInterface.js +0 -16
  74. data/node/node_modules/playwright/lib/isomorphic/testTree.js +0 -329
  75. data/node/node_modules/playwright/lib/isomorphic/types.d.js +0 -16
  76. data/node/node_modules/playwright/lib/loader/loaderMain.js +0 -59
  77. data/node/node_modules/playwright/lib/matchers/expect.js +0 -311
  78. data/node/node_modules/playwright/lib/matchers/matcherHint.js +0 -44
  79. data/node/node_modules/playwright/lib/matchers/matchers.js +0 -383
  80. data/node/node_modules/playwright/lib/matchers/toBeTruthy.js +0 -75
  81. data/node/node_modules/playwright/lib/matchers/toEqual.js +0 -100
  82. data/node/node_modules/playwright/lib/matchers/toHaveURL.js +0 -101
  83. data/node/node_modules/playwright/lib/matchers/toMatchAriaSnapshot.js +0 -159
  84. data/node/node_modules/playwright/lib/matchers/toMatchSnapshot.js +0 -342
  85. data/node/node_modules/playwright/lib/matchers/toMatchText.js +0 -99
  86. data/node/node_modules/playwright/lib/mcp/browser/browserContextFactory.js +0 -329
  87. data/node/node_modules/playwright/lib/mcp/browser/browserServerBackend.js +0 -84
  88. data/node/node_modules/playwright/lib/mcp/browser/config.js +0 -421
  89. data/node/node_modules/playwright/lib/mcp/browser/context.js +0 -244
  90. data/node/node_modules/playwright/lib/mcp/browser/response.js +0 -278
  91. data/node/node_modules/playwright/lib/mcp/browser/sessionLog.js +0 -75
  92. data/node/node_modules/playwright/lib/mcp/browser/tab.js +0 -343
  93. data/node/node_modules/playwright/lib/mcp/browser/tools/common.js +0 -65
  94. data/node/node_modules/playwright/lib/mcp/browser/tools/console.js +0 -46
  95. data/node/node_modules/playwright/lib/mcp/browser/tools/dialogs.js +0 -60
  96. data/node/node_modules/playwright/lib/mcp/browser/tools/evaluate.js +0 -61
  97. data/node/node_modules/playwright/lib/mcp/browser/tools/files.js +0 -58
  98. data/node/node_modules/playwright/lib/mcp/browser/tools/form.js +0 -63
  99. data/node/node_modules/playwright/lib/mcp/browser/tools/install.js +0 -72
  100. data/node/node_modules/playwright/lib/mcp/browser/tools/keyboard.js +0 -107
  101. data/node/node_modules/playwright/lib/mcp/browser/tools/mouse.js +0 -107
  102. data/node/node_modules/playwright/lib/mcp/browser/tools/navigate.js +0 -71
  103. data/node/node_modules/playwright/lib/mcp/browser/tools/network.js +0 -63
  104. data/node/node_modules/playwright/lib/mcp/browser/tools/open.js +0 -57
  105. data/node/node_modules/playwright/lib/mcp/browser/tools/pdf.js +0 -49
  106. data/node/node_modules/playwright/lib/mcp/browser/tools/runCode.js +0 -78
  107. data/node/node_modules/playwright/lib/mcp/browser/tools/screenshot.js +0 -93
  108. data/node/node_modules/playwright/lib/mcp/browser/tools/snapshot.js +0 -173
  109. data/node/node_modules/playwright/lib/mcp/browser/tools/tabs.js +0 -67
  110. data/node/node_modules/playwright/lib/mcp/browser/tools/tool.js +0 -47
  111. data/node/node_modules/playwright/lib/mcp/browser/tools/tracing.js +0 -74
  112. data/node/node_modules/playwright/lib/mcp/browser/tools/utils.js +0 -94
  113. data/node/node_modules/playwright/lib/mcp/browser/tools/verify.js +0 -143
  114. data/node/node_modules/playwright/lib/mcp/browser/tools/wait.js +0 -63
  115. data/node/node_modules/playwright/lib/mcp/browser/tools.js +0 -84
  116. data/node/node_modules/playwright/lib/mcp/browser/watchdog.js +0 -44
  117. data/node/node_modules/playwright/lib/mcp/config.d.js +0 -16
  118. data/node/node_modules/playwright/lib/mcp/extension/cdpRelay.js +0 -351
  119. data/node/node_modules/playwright/lib/mcp/extension/extensionContextFactory.js +0 -76
  120. data/node/node_modules/playwright/lib/mcp/extension/protocol.js +0 -28
  121. data/node/node_modules/playwright/lib/mcp/index.js +0 -61
  122. data/node/node_modules/playwright/lib/mcp/log.js +0 -35
  123. data/node/node_modules/playwright/lib/mcp/program.js +0 -111
  124. data/node/node_modules/playwright/lib/mcp/sdk/exports.js +0 -28
  125. data/node/node_modules/playwright/lib/mcp/sdk/http.js +0 -152
  126. data/node/node_modules/playwright/lib/mcp/sdk/inProcessTransport.js +0 -71
  127. data/node/node_modules/playwright/lib/mcp/sdk/server.js +0 -223
  128. data/node/node_modules/playwright/lib/mcp/sdk/tool.js +0 -47
  129. data/node/node_modules/playwright/lib/mcp/terminal/cli.js +0 -296
  130. data/node/node_modules/playwright/lib/mcp/terminal/command.js +0 -56
  131. data/node/node_modules/playwright/lib/mcp/terminal/commands.js +0 -333
  132. data/node/node_modules/playwright/lib/mcp/terminal/daemon.js +0 -129
  133. data/node/node_modules/playwright/lib/mcp/terminal/help.json +0 -32
  134. data/node/node_modules/playwright/lib/mcp/terminal/helpGenerator.js +0 -88
  135. data/node/node_modules/playwright/lib/mcp/terminal/socketConnection.js +0 -80
  136. data/node/node_modules/playwright/lib/mcp/test/browserBackend.js +0 -98
  137. data/node/node_modules/playwright/lib/mcp/test/generatorTools.js +0 -122
  138. data/node/node_modules/playwright/lib/mcp/test/plannerTools.js +0 -145
  139. data/node/node_modules/playwright/lib/mcp/test/seed.js +0 -82
  140. data/node/node_modules/playwright/lib/mcp/test/streams.js +0 -44
  141. data/node/node_modules/playwright/lib/mcp/test/testBackend.js +0 -99
  142. data/node/node_modules/playwright/lib/mcp/test/testContext.js +0 -285
  143. data/node/node_modules/playwright/lib/mcp/test/testTool.js +0 -30
  144. data/node/node_modules/playwright/lib/mcp/test/testTools.js +0 -108
  145. data/node/node_modules/playwright/lib/plugins/gitCommitInfoPlugin.js +0 -198
  146. data/node/node_modules/playwright/lib/plugins/index.js +0 -28
  147. data/node/node_modules/playwright/lib/plugins/webServerPlugin.js +0 -237
  148. data/node/node_modules/playwright/lib/program.js +0 -417
  149. data/node/node_modules/playwright/lib/reporters/base.js +0 -634
  150. data/node/node_modules/playwright/lib/reporters/blob.js +0 -138
  151. data/node/node_modules/playwright/lib/reporters/dot.js +0 -99
  152. data/node/node_modules/playwright/lib/reporters/empty.js +0 -32
  153. data/node/node_modules/playwright/lib/reporters/github.js +0 -128
  154. data/node/node_modules/playwright/lib/reporters/html.js +0 -633
  155. data/node/node_modules/playwright/lib/reporters/internalReporter.js +0 -138
  156. data/node/node_modules/playwright/lib/reporters/json.js +0 -254
  157. data/node/node_modules/playwright/lib/reporters/junit.js +0 -232
  158. data/node/node_modules/playwright/lib/reporters/line.js +0 -131
  159. data/node/node_modules/playwright/lib/reporters/list.js +0 -253
  160. data/node/node_modules/playwright/lib/reporters/listModeReporter.js +0 -69
  161. data/node/node_modules/playwright/lib/reporters/markdown.js +0 -144
  162. data/node/node_modules/playwright/lib/reporters/merge.js +0 -558
  163. data/node/node_modules/playwright/lib/reporters/multiplexer.js +0 -112
  164. data/node/node_modules/playwright/lib/reporters/reporterV2.js +0 -102
  165. data/node/node_modules/playwright/lib/reporters/teleEmitter.js +0 -317
  166. data/node/node_modules/playwright/lib/reporters/versions/blobV1.js +0 -16
  167. data/node/node_modules/playwright/lib/runner/dispatcher.js +0 -530
  168. data/node/node_modules/playwright/lib/runner/failureTracker.js +0 -72
  169. data/node/node_modules/playwright/lib/runner/lastRun.js +0 -77
  170. data/node/node_modules/playwright/lib/runner/loadUtils.js +0 -334
  171. data/node/node_modules/playwright/lib/runner/loaderHost.js +0 -89
  172. data/node/node_modules/playwright/lib/runner/processHost.js +0 -180
  173. data/node/node_modules/playwright/lib/runner/projectUtils.js +0 -241
  174. data/node/node_modules/playwright/lib/runner/rebase.js +0 -189
  175. data/node/node_modules/playwright/lib/runner/reporters.js +0 -138
  176. data/node/node_modules/playwright/lib/runner/sigIntWatcher.js +0 -96
  177. data/node/node_modules/playwright/lib/runner/storage.js +0 -91
  178. data/node/node_modules/playwright/lib/runner/taskRunner.js +0 -127
  179. data/node/node_modules/playwright/lib/runner/tasks.js +0 -410
  180. data/node/node_modules/playwright/lib/runner/testGroups.js +0 -125
  181. data/node/node_modules/playwright/lib/runner/testRunner.js +0 -398
  182. data/node/node_modules/playwright/lib/runner/testServer.js +0 -269
  183. data/node/node_modules/playwright/lib/runner/uiModeReporter.js +0 -30
  184. data/node/node_modules/playwright/lib/runner/vcs.js +0 -72
  185. data/node/node_modules/playwright/lib/runner/watchMode.js +0 -396
  186. data/node/node_modules/playwright/lib/runner/workerHost.js +0 -104
  187. data/node/node_modules/playwright/lib/third_party/pirates.js +0 -62
  188. data/node/node_modules/playwright/lib/third_party/tsconfig-loader.js +0 -103
  189. data/node/node_modules/playwright/lib/transform/babelBundle.js +0 -46
  190. data/node/node_modules/playwright/lib/transform/babelBundleImpl.js +0 -461
  191. data/node/node_modules/playwright/lib/transform/compilationCache.js +0 -274
  192. data/node/node_modules/playwright/lib/transform/esmLoader.js +0 -103
  193. data/node/node_modules/playwright/lib/transform/md.js +0 -221
  194. data/node/node_modules/playwright/lib/transform/portTransport.js +0 -67
  195. data/node/node_modules/playwright/lib/transform/transform.js +0 -303
  196. data/node/node_modules/playwright/lib/util.js +0 -400
  197. data/node/node_modules/playwright/lib/utilsBundle.js +0 -50
  198. data/node/node_modules/playwright/lib/utilsBundleImpl.js +0 -103
  199. data/node/node_modules/playwright/lib/worker/fixtureRunner.js +0 -262
  200. data/node/node_modules/playwright/lib/worker/testInfo.js +0 -536
  201. data/node/node_modules/playwright/lib/worker/testTracing.js +0 -345
  202. data/node/node_modules/playwright/lib/worker/timeoutManager.js +0 -174
  203. data/node/node_modules/playwright/lib/worker/util.js +0 -31
  204. data/node/node_modules/playwright/lib/worker/workerMain.js +0 -530
  205. data/node/node_modules/playwright/package.json +0 -72
  206. data/node/node_modules/playwright/test.d.ts +0 -18
  207. data/node/node_modules/playwright/test.js +0 -24
  208. data/node/node_modules/playwright/test.mjs +0 -34
  209. data/node/node_modules/playwright/types/test.d.ts +0 -10251
  210. data/node/node_modules/playwright/types/testReporter.d.ts +0 -822
  211. data/node/node_modules/playwright-core/LICENSE +0 -202
  212. data/node/node_modules/playwright-core/NOTICE +0 -5
  213. data/node/node_modules/playwright-core/README.md +0 -3
  214. data/node/node_modules/playwright-core/ThirdPartyNotices.txt +0 -4076
  215. data/node/node_modules/playwright-core/bin/install_media_pack.ps1 +0 -5
  216. data/node/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +0 -33
  217. data/node/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +0 -42
  218. data/node/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +0 -13
  219. data/node/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +0 -24
  220. data/node/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +0 -42
  221. data/node/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +0 -12
  222. data/node/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +0 -24
  223. data/node/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +0 -48
  224. data/node/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +0 -11
  225. data/node/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +0 -23
  226. data/node/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +0 -48
  227. data/node/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +0 -11
  228. data/node/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +0 -23
  229. data/node/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +0 -48
  230. data/node/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +0 -11
  231. data/node/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +0 -24
  232. data/node/node_modules/playwright-core/browsers.json +0 -79
  233. data/node/node_modules/playwright-core/cli.js +0 -18
  234. data/node/node_modules/playwright-core/index.d.ts +0 -17
  235. data/node/node_modules/playwright-core/index.js +0 -32
  236. data/node/node_modules/playwright-core/index.mjs +0 -28
  237. data/node/node_modules/playwright-core/lib/androidServerImpl.js +0 -65
  238. data/node/node_modules/playwright-core/lib/browserServerImpl.js +0 -120
  239. data/node/node_modules/playwright-core/lib/cli/driver.js +0 -97
  240. data/node/node_modules/playwright-core/lib/cli/program.js +0 -589
  241. data/node/node_modules/playwright-core/lib/cli/programWithTestStub.js +0 -74
  242. data/node/node_modules/playwright-core/lib/client/android.js +0 -361
  243. data/node/node_modules/playwright-core/lib/client/api.js +0 -137
  244. data/node/node_modules/playwright-core/lib/client/artifact.js +0 -79
  245. data/node/node_modules/playwright-core/lib/client/browser.js +0 -161
  246. data/node/node_modules/playwright-core/lib/client/browserContext.js +0 -582
  247. data/node/node_modules/playwright-core/lib/client/browserType.js +0 -185
  248. data/node/node_modules/playwright-core/lib/client/cdpSession.js +0 -51
  249. data/node/node_modules/playwright-core/lib/client/channelOwner.js +0 -194
  250. data/node/node_modules/playwright-core/lib/client/clientHelper.js +0 -64
  251. data/node/node_modules/playwright-core/lib/client/clientInstrumentation.js +0 -55
  252. data/node/node_modules/playwright-core/lib/client/clientStackTrace.js +0 -69
  253. data/node/node_modules/playwright-core/lib/client/clock.js +0 -68
  254. data/node/node_modules/playwright-core/lib/client/connection.js +0 -318
  255. data/node/node_modules/playwright-core/lib/client/consoleMessage.js +0 -58
  256. data/node/node_modules/playwright-core/lib/client/coverage.js +0 -44
  257. data/node/node_modules/playwright-core/lib/client/dialog.js +0 -56
  258. data/node/node_modules/playwright-core/lib/client/download.js +0 -62
  259. data/node/node_modules/playwright-core/lib/client/electron.js +0 -138
  260. data/node/node_modules/playwright-core/lib/client/elementHandle.js +0 -284
  261. data/node/node_modules/playwright-core/lib/client/errors.js +0 -77
  262. data/node/node_modules/playwright-core/lib/client/eventEmitter.js +0 -314
  263. data/node/node_modules/playwright-core/lib/client/events.js +0 -103
  264. data/node/node_modules/playwright-core/lib/client/fetch.js +0 -368
  265. data/node/node_modules/playwright-core/lib/client/fileChooser.js +0 -46
  266. data/node/node_modules/playwright-core/lib/client/fileUtils.js +0 -34
  267. data/node/node_modules/playwright-core/lib/client/frame.js +0 -409
  268. data/node/node_modules/playwright-core/lib/client/harRouter.js +0 -87
  269. data/node/node_modules/playwright-core/lib/client/input.js +0 -84
  270. data/node/node_modules/playwright-core/lib/client/jsHandle.js +0 -109
  271. data/node/node_modules/playwright-core/lib/client/jsonPipe.js +0 -39
  272. data/node/node_modules/playwright-core/lib/client/localUtils.js +0 -60
  273. data/node/node_modules/playwright-core/lib/client/locator.js +0 -369
  274. data/node/node_modules/playwright-core/lib/client/network.js +0 -747
  275. data/node/node_modules/playwright-core/lib/client/page.js +0 -745
  276. data/node/node_modules/playwright-core/lib/client/pageAgent.js +0 -64
  277. data/node/node_modules/playwright-core/lib/client/platform.js +0 -77
  278. data/node/node_modules/playwright-core/lib/client/playwright.js +0 -71
  279. data/node/node_modules/playwright-core/lib/client/selectors.js +0 -55
  280. data/node/node_modules/playwright-core/lib/client/stream.js +0 -39
  281. data/node/node_modules/playwright-core/lib/client/timeoutSettings.js +0 -79
  282. data/node/node_modules/playwright-core/lib/client/tracing.js +0 -119
  283. data/node/node_modules/playwright-core/lib/client/types.js +0 -28
  284. data/node/node_modules/playwright-core/lib/client/video.js +0 -59
  285. data/node/node_modules/playwright-core/lib/client/waiter.js +0 -142
  286. data/node/node_modules/playwright-core/lib/client/webError.js +0 -39
  287. data/node/node_modules/playwright-core/lib/client/webSocket.js +0 -93
  288. data/node/node_modules/playwright-core/lib/client/worker.js +0 -85
  289. data/node/node_modules/playwright-core/lib/client/writableStream.js +0 -39
  290. data/node/node_modules/playwright-core/lib/generated/bindingsControllerSource.js +0 -28
  291. data/node/node_modules/playwright-core/lib/generated/clockSource.js +0 -28
  292. data/node/node_modules/playwright-core/lib/generated/injectedScriptSource.js +0 -28
  293. data/node/node_modules/playwright-core/lib/generated/pollingRecorderSource.js +0 -28
  294. data/node/node_modules/playwright-core/lib/generated/storageScriptSource.js +0 -28
  295. data/node/node_modules/playwright-core/lib/generated/utilityScriptSource.js +0 -28
  296. data/node/node_modules/playwright-core/lib/generated/webSocketMockSource.js +0 -336
  297. data/node/node_modules/playwright-core/lib/inProcessFactory.js +0 -60
  298. data/node/node_modules/playwright-core/lib/inprocess.js +0 -3
  299. data/node/node_modules/playwright-core/lib/mcpBundle.js +0 -84
  300. data/node/node_modules/playwright-core/lib/mcpBundleImpl/index.js +0 -147
  301. data/node/node_modules/playwright-core/lib/outofprocess.js +0 -76
  302. data/node/node_modules/playwright-core/lib/protocol/serializers.js +0 -197
  303. data/node/node_modules/playwright-core/lib/protocol/validator.js +0 -2969
  304. data/node/node_modules/playwright-core/lib/protocol/validatorPrimitives.js +0 -193
  305. data/node/node_modules/playwright-core/lib/remote/playwrightConnection.js +0 -129
  306. data/node/node_modules/playwright-core/lib/remote/playwrightServer.js +0 -334
  307. data/node/node_modules/playwright-core/lib/server/agent/actionRunner.js +0 -335
  308. data/node/node_modules/playwright-core/lib/server/agent/actions.js +0 -128
  309. data/node/node_modules/playwright-core/lib/server/agent/codegen.js +0 -111
  310. data/node/node_modules/playwright-core/lib/server/agent/context.js +0 -150
  311. data/node/node_modules/playwright-core/lib/server/agent/expectTools.js +0 -156
  312. data/node/node_modules/playwright-core/lib/server/agent/pageAgent.js +0 -204
  313. data/node/node_modules/playwright-core/lib/server/agent/performTools.js +0 -262
  314. data/node/node_modules/playwright-core/lib/server/agent/tool.js +0 -109
  315. data/node/node_modules/playwright-core/lib/server/android/android.js +0 -465
  316. data/node/node_modules/playwright-core/lib/server/android/backendAdb.js +0 -177
  317. data/node/node_modules/playwright-core/lib/server/artifact.js +0 -127
  318. data/node/node_modules/playwright-core/lib/server/bidi/bidiBrowser.js +0 -549
  319. data/node/node_modules/playwright-core/lib/server/bidi/bidiChromium.js +0 -148
  320. data/node/node_modules/playwright-core/lib/server/bidi/bidiConnection.js +0 -213
  321. data/node/node_modules/playwright-core/lib/server/bidi/bidiDeserializer.js +0 -116
  322. data/node/node_modules/playwright-core/lib/server/bidi/bidiExecutionContext.js +0 -267
  323. data/node/node_modules/playwright-core/lib/server/bidi/bidiFirefox.js +0 -128
  324. data/node/node_modules/playwright-core/lib/server/bidi/bidiInput.js +0 -146
  325. data/node/node_modules/playwright-core/lib/server/bidi/bidiNetworkManager.js +0 -383
  326. data/node/node_modules/playwright-core/lib/server/bidi/bidiOverCdp.js +0 -102
  327. data/node/node_modules/playwright-core/lib/server/bidi/bidiPage.js +0 -583
  328. data/node/node_modules/playwright-core/lib/server/bidi/bidiPdf.js +0 -106
  329. data/node/node_modules/playwright-core/lib/server/bidi/third_party/bidiCommands.d.js +0 -22
  330. data/node/node_modules/playwright-core/lib/server/bidi/third_party/bidiKeyboard.js +0 -256
  331. data/node/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocol.js +0 -24
  332. data/node/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolCore.js +0 -180
  333. data/node/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolPermissions.js +0 -42
  334. data/node/node_modules/playwright-core/lib/server/bidi/third_party/bidiSerializer.js +0 -148
  335. data/node/node_modules/playwright-core/lib/server/bidi/third_party/firefoxPrefs.js +0 -259
  336. data/node/node_modules/playwright-core/lib/server/browser.js +0 -149
  337. data/node/node_modules/playwright-core/lib/server/browserContext.js +0 -702
  338. data/node/node_modules/playwright-core/lib/server/browserType.js +0 -336
  339. data/node/node_modules/playwright-core/lib/server/callLog.js +0 -82
  340. data/node/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
  341. data/node/node_modules/playwright-core/lib/server/chromium/chromium.js +0 -395
  342. data/node/node_modules/playwright-core/lib/server/chromium/chromiumSwitches.js +0 -104
  343. data/node/node_modules/playwright-core/lib/server/chromium/crBrowser.js +0 -511
  344. data/node/node_modules/playwright-core/lib/server/chromium/crConnection.js +0 -197
  345. data/node/node_modules/playwright-core/lib/server/chromium/crCoverage.js +0 -235
  346. data/node/node_modules/playwright-core/lib/server/chromium/crDevTools.js +0 -111
  347. data/node/node_modules/playwright-core/lib/server/chromium/crDragDrop.js +0 -131
  348. data/node/node_modules/playwright-core/lib/server/chromium/crExecutionContext.js +0 -146
  349. data/node/node_modules/playwright-core/lib/server/chromium/crInput.js +0 -187
  350. data/node/node_modules/playwright-core/lib/server/chromium/crNetworkManager.js +0 -707
  351. data/node/node_modules/playwright-core/lib/server/chromium/crPage.js +0 -1001
  352. data/node/node_modules/playwright-core/lib/server/chromium/crPdf.js +0 -121
  353. data/node/node_modules/playwright-core/lib/server/chromium/crProtocolHelper.js +0 -145
  354. data/node/node_modules/playwright-core/lib/server/chromium/crServiceWorker.js +0 -136
  355. data/node/node_modules/playwright-core/lib/server/chromium/defaultFontFamilies.js +0 -162
  356. data/node/node_modules/playwright-core/lib/server/chromium/protocol.d.js +0 -16
  357. data/node/node_modules/playwright-core/lib/server/clock.js +0 -149
  358. data/node/node_modules/playwright-core/lib/server/codegen/csharp.js +0 -327
  359. data/node/node_modules/playwright-core/lib/server/codegen/java.js +0 -274
  360. data/node/node_modules/playwright-core/lib/server/codegen/javascript.js +0 -247
  361. data/node/node_modules/playwright-core/lib/server/codegen/jsonl.js +0 -52
  362. data/node/node_modules/playwright-core/lib/server/codegen/language.js +0 -132
  363. data/node/node_modules/playwright-core/lib/server/codegen/languages.js +0 -68
  364. data/node/node_modules/playwright-core/lib/server/codegen/python.js +0 -279
  365. data/node/node_modules/playwright-core/lib/server/codegen/types.js +0 -16
  366. data/node/node_modules/playwright-core/lib/server/console.js +0 -57
  367. data/node/node_modules/playwright-core/lib/server/cookieStore.js +0 -206
  368. data/node/node_modules/playwright-core/lib/server/debugController.js +0 -191
  369. data/node/node_modules/playwright-core/lib/server/debugger.js +0 -119
  370. data/node/node_modules/playwright-core/lib/server/deviceDescriptors.js +0 -39
  371. data/node/node_modules/playwright-core/lib/server/deviceDescriptorsSource.json +0 -1779
  372. data/node/node_modules/playwright-core/lib/server/dialog.js +0 -116
  373. data/node/node_modules/playwright-core/lib/server/dispatchers/androidDispatcher.js +0 -325
  374. data/node/node_modules/playwright-core/lib/server/dispatchers/artifactDispatcher.js +0 -118
  375. data/node/node_modules/playwright-core/lib/server/dispatchers/browserContextDispatcher.js +0 -384
  376. data/node/node_modules/playwright-core/lib/server/dispatchers/browserDispatcher.js +0 -118
  377. data/node/node_modules/playwright-core/lib/server/dispatchers/browserTypeDispatcher.js +0 -64
  378. data/node/node_modules/playwright-core/lib/server/dispatchers/cdpSessionDispatcher.js +0 -44
  379. data/node/node_modules/playwright-core/lib/server/dispatchers/debugControllerDispatcher.js +0 -78
  380. data/node/node_modules/playwright-core/lib/server/dispatchers/dialogDispatcher.js +0 -47
  381. data/node/node_modules/playwright-core/lib/server/dispatchers/dispatcher.js +0 -364
  382. data/node/node_modules/playwright-core/lib/server/dispatchers/electronDispatcher.js +0 -89
  383. data/node/node_modules/playwright-core/lib/server/dispatchers/elementHandlerDispatcher.js +0 -181
  384. data/node/node_modules/playwright-core/lib/server/dispatchers/frameDispatcher.js +0 -227
  385. data/node/node_modules/playwright-core/lib/server/dispatchers/jsHandleDispatcher.js +0 -85
  386. data/node/node_modules/playwright-core/lib/server/dispatchers/jsonPipeDispatcher.js +0 -58
  387. data/node/node_modules/playwright-core/lib/server/dispatchers/localUtilsDispatcher.js +0 -149
  388. data/node/node_modules/playwright-core/lib/server/dispatchers/networkDispatchers.js +0 -213
  389. data/node/node_modules/playwright-core/lib/server/dispatchers/pageAgentDispatcher.js +0 -96
  390. data/node/node_modules/playwright-core/lib/server/dispatchers/pageDispatcher.js +0 -393
  391. data/node/node_modules/playwright-core/lib/server/dispatchers/playwrightDispatcher.js +0 -108
  392. data/node/node_modules/playwright-core/lib/server/dispatchers/streamDispatcher.js +0 -67
  393. data/node/node_modules/playwright-core/lib/server/dispatchers/tracingDispatcher.js +0 -68
  394. data/node/node_modules/playwright-core/lib/server/dispatchers/webSocketRouteDispatcher.js +0 -165
  395. data/node/node_modules/playwright-core/lib/server/dispatchers/writableStreamDispatcher.js +0 -79
  396. data/node/node_modules/playwright-core/lib/server/dom.js +0 -815
  397. data/node/node_modules/playwright-core/lib/server/download.js +0 -70
  398. data/node/node_modules/playwright-core/lib/server/electron/electron.js +0 -273
  399. data/node/node_modules/playwright-core/lib/server/electron/loader.js +0 -29
  400. data/node/node_modules/playwright-core/lib/server/errors.js +0 -69
  401. data/node/node_modules/playwright-core/lib/server/fetch.js +0 -621
  402. data/node/node_modules/playwright-core/lib/server/fileChooser.js +0 -43
  403. data/node/node_modules/playwright-core/lib/server/fileUploadUtils.js +0 -84
  404. data/node/node_modules/playwright-core/lib/server/firefox/ffBrowser.js +0 -418
  405. data/node/node_modules/playwright-core/lib/server/firefox/ffConnection.js +0 -142
  406. data/node/node_modules/playwright-core/lib/server/firefox/ffExecutionContext.js +0 -150
  407. data/node/node_modules/playwright-core/lib/server/firefox/ffInput.js +0 -159
  408. data/node/node_modules/playwright-core/lib/server/firefox/ffNetworkManager.js +0 -256
  409. data/node/node_modules/playwright-core/lib/server/firefox/ffPage.js +0 -497
  410. data/node/node_modules/playwright-core/lib/server/firefox/firefox.js +0 -114
  411. data/node/node_modules/playwright-core/lib/server/firefox/protocol.d.js +0 -16
  412. data/node/node_modules/playwright-core/lib/server/formData.js +0 -147
  413. data/node/node_modules/playwright-core/lib/server/frameSelectors.js +0 -160
  414. data/node/node_modules/playwright-core/lib/server/frames.js +0 -1471
  415. data/node/node_modules/playwright-core/lib/server/har/harRecorder.js +0 -147
  416. data/node/node_modules/playwright-core/lib/server/har/harTracer.js +0 -607
  417. data/node/node_modules/playwright-core/lib/server/harBackend.js +0 -157
  418. data/node/node_modules/playwright-core/lib/server/helper.js +0 -96
  419. data/node/node_modules/playwright-core/lib/server/index.js +0 -58
  420. data/node/node_modules/playwright-core/lib/server/input.js +0 -277
  421. data/node/node_modules/playwright-core/lib/server/instrumentation.js +0 -72
  422. data/node/node_modules/playwright-core/lib/server/javascript.js +0 -291
  423. data/node/node_modules/playwright-core/lib/server/launchApp.js +0 -128
  424. data/node/node_modules/playwright-core/lib/server/localUtils.js +0 -214
  425. data/node/node_modules/playwright-core/lib/server/macEditingCommands.js +0 -143
  426. data/node/node_modules/playwright-core/lib/server/network.js +0 -667
  427. data/node/node_modules/playwright-core/lib/server/page.js +0 -830
  428. data/node/node_modules/playwright-core/lib/server/pipeTransport.js +0 -89
  429. data/node/node_modules/playwright-core/lib/server/playwright.js +0 -69
  430. data/node/node_modules/playwright-core/lib/server/progress.js +0 -132
  431. data/node/node_modules/playwright-core/lib/server/protocolError.js +0 -52
  432. data/node/node_modules/playwright-core/lib/server/recorder/chat.js +0 -161
  433. data/node/node_modules/playwright-core/lib/server/recorder/recorderApp.js +0 -366
  434. data/node/node_modules/playwright-core/lib/server/recorder/recorderRunner.js +0 -138
  435. data/node/node_modules/playwright-core/lib/server/recorder/recorderSignalProcessor.js +0 -83
  436. data/node/node_modules/playwright-core/lib/server/recorder/recorderUtils.js +0 -157
  437. data/node/node_modules/playwright-core/lib/server/recorder/throttledFile.js +0 -57
  438. data/node/node_modules/playwright-core/lib/server/recorder.js +0 -499
  439. data/node/node_modules/playwright-core/lib/server/registry/browserFetcher.js +0 -177
  440. data/node/node_modules/playwright-core/lib/server/registry/dependencies.js +0 -371
  441. data/node/node_modules/playwright-core/lib/server/registry/index.js +0 -1422
  442. data/node/node_modules/playwright-core/lib/server/registry/nativeDeps.js +0 -1280
  443. data/node/node_modules/playwright-core/lib/server/registry/oopDownloadBrowserMain.js +0 -127
  444. data/node/node_modules/playwright-core/lib/server/screencast.js +0 -190
  445. data/node/node_modules/playwright-core/lib/server/screenshotter.js +0 -333
  446. data/node/node_modules/playwright-core/lib/server/selectors.js +0 -112
  447. data/node/node_modules/playwright-core/lib/server/socksClientCertificatesInterceptor.js +0 -383
  448. data/node/node_modules/playwright-core/lib/server/socksInterceptor.js +0 -95
  449. data/node/node_modules/playwright-core/lib/server/trace/recorder/snapshotter.js +0 -147
  450. data/node/node_modules/playwright-core/lib/server/trace/recorder/snapshotterInjected.js +0 -561
  451. data/node/node_modules/playwright-core/lib/server/trace/recorder/tracing.js +0 -604
  452. data/node/node_modules/playwright-core/lib/server/trace/viewer/traceParser.js +0 -72
  453. data/node/node_modules/playwright-core/lib/server/trace/viewer/traceViewer.js +0 -245
  454. data/node/node_modules/playwright-core/lib/server/transport.js +0 -181
  455. data/node/node_modules/playwright-core/lib/server/types.js +0 -28
  456. data/node/node_modules/playwright-core/lib/server/usKeyboardLayout.js +0 -145
  457. data/node/node_modules/playwright-core/lib/server/utils/ascii.js +0 -44
  458. data/node/node_modules/playwright-core/lib/server/utils/comparators.js +0 -139
  459. data/node/node_modules/playwright-core/lib/server/utils/crypto.js +0 -216
  460. data/node/node_modules/playwright-core/lib/server/utils/debug.js +0 -42
  461. data/node/node_modules/playwright-core/lib/server/utils/debugLogger.js +0 -122
  462. data/node/node_modules/playwright-core/lib/server/utils/env.js +0 -73
  463. data/node/node_modules/playwright-core/lib/server/utils/eventsHelper.js +0 -39
  464. data/node/node_modules/playwright-core/lib/server/utils/expectUtils.js +0 -123
  465. data/node/node_modules/playwright-core/lib/server/utils/fileUtils.js +0 -191
  466. data/node/node_modules/playwright-core/lib/server/utils/happyEyeballs.js +0 -207
  467. data/node/node_modules/playwright-core/lib/server/utils/hostPlatform.js +0 -123
  468. data/node/node_modules/playwright-core/lib/server/utils/httpServer.js +0 -203
  469. data/node/node_modules/playwright-core/lib/server/utils/imageUtils.js +0 -141
  470. data/node/node_modules/playwright-core/lib/server/utils/image_tools/colorUtils.js +0 -89
  471. data/node/node_modules/playwright-core/lib/server/utils/image_tools/compare.js +0 -109
  472. data/node/node_modules/playwright-core/lib/server/utils/image_tools/imageChannel.js +0 -78
  473. data/node/node_modules/playwright-core/lib/server/utils/image_tools/stats.js +0 -102
  474. data/node/node_modules/playwright-core/lib/server/utils/linuxUtils.js +0 -71
  475. data/node/node_modules/playwright-core/lib/server/utils/network.js +0 -242
  476. data/node/node_modules/playwright-core/lib/server/utils/nodePlatform.js +0 -154
  477. data/node/node_modules/playwright-core/lib/server/utils/pipeTransport.js +0 -84
  478. data/node/node_modules/playwright-core/lib/server/utils/processLauncher.js +0 -241
  479. data/node/node_modules/playwright-core/lib/server/utils/profiler.js +0 -65
  480. data/node/node_modules/playwright-core/lib/server/utils/socksProxy.js +0 -511
  481. data/node/node_modules/playwright-core/lib/server/utils/spawnAsync.js +0 -41
  482. data/node/node_modules/playwright-core/lib/server/utils/task.js +0 -51
  483. data/node/node_modules/playwright-core/lib/server/utils/userAgent.js +0 -98
  484. data/node/node_modules/playwright-core/lib/server/utils/wsServer.js +0 -121
  485. data/node/node_modules/playwright-core/lib/server/utils/zipFile.js +0 -74
  486. data/node/node_modules/playwright-core/lib/server/utils/zones.js +0 -57
  487. data/node/node_modules/playwright-core/lib/server/videoRecorder.js +0 -124
  488. data/node/node_modules/playwright-core/lib/server/webkit/protocol.d.js +0 -16
  489. data/node/node_modules/playwright-core/lib/server/webkit/webkit.js +0 -108
  490. data/node/node_modules/playwright-core/lib/server/webkit/wkBrowser.js +0 -335
  491. data/node/node_modules/playwright-core/lib/server/webkit/wkConnection.js +0 -144
  492. data/node/node_modules/playwright-core/lib/server/webkit/wkExecutionContext.js +0 -154
  493. data/node/node_modules/playwright-core/lib/server/webkit/wkInput.js +0 -181
  494. data/node/node_modules/playwright-core/lib/server/webkit/wkInterceptableRequest.js +0 -197
  495. data/node/node_modules/playwright-core/lib/server/webkit/wkPage.js +0 -1158
  496. data/node/node_modules/playwright-core/lib/server/webkit/wkProvisionalPage.js +0 -83
  497. data/node/node_modules/playwright-core/lib/server/webkit/wkWorkers.js +0 -105
  498. data/node/node_modules/playwright-core/lib/third_party/pixelmatch.js +0 -255
  499. data/node/node_modules/playwright-core/lib/utils/isomorphic/ariaSnapshot.js +0 -455
  500. data/node/node_modules/playwright-core/lib/utils/isomorphic/assert.js +0 -31
  501. data/node/node_modules/playwright-core/lib/utils/isomorphic/colors.js +0 -72
  502. data/node/node_modules/playwright-core/lib/utils/isomorphic/cssParser.js +0 -245
  503. data/node/node_modules/playwright-core/lib/utils/isomorphic/cssTokenizer.js +0 -1051
  504. data/node/node_modules/playwright-core/lib/utils/isomorphic/headers.js +0 -53
  505. data/node/node_modules/playwright-core/lib/utils/isomorphic/locatorGenerators.js +0 -689
  506. data/node/node_modules/playwright-core/lib/utils/isomorphic/locatorParser.js +0 -176
  507. data/node/node_modules/playwright-core/lib/utils/isomorphic/locatorUtils.js +0 -81
  508. data/node/node_modules/playwright-core/lib/utils/isomorphic/lruCache.js +0 -51
  509. data/node/node_modules/playwright-core/lib/utils/isomorphic/manualPromise.js +0 -114
  510. data/node/node_modules/playwright-core/lib/utils/isomorphic/mimeType.js +0 -459
  511. data/node/node_modules/playwright-core/lib/utils/isomorphic/multimap.js +0 -80
  512. data/node/node_modules/playwright-core/lib/utils/isomorphic/protocolFormatter.js +0 -81
  513. data/node/node_modules/playwright-core/lib/utils/isomorphic/protocolMetainfo.js +0 -330
  514. data/node/node_modules/playwright-core/lib/utils/isomorphic/rtti.js +0 -43
  515. data/node/node_modules/playwright-core/lib/utils/isomorphic/selectorParser.js +0 -386
  516. data/node/node_modules/playwright-core/lib/utils/isomorphic/semaphore.js +0 -54
  517. data/node/node_modules/playwright-core/lib/utils/isomorphic/stackTrace.js +0 -158
  518. data/node/node_modules/playwright-core/lib/utils/isomorphic/stringUtils.js +0 -204
  519. data/node/node_modules/playwright-core/lib/utils/isomorphic/time.js +0 -49
  520. data/node/node_modules/playwright-core/lib/utils/isomorphic/timeoutRunner.js +0 -66
  521. data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/entries.js +0 -16
  522. data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotRenderer.js +0 -499
  523. data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotServer.js +0 -120
  524. data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotStorage.js +0 -89
  525. data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/traceLoader.js +0 -131
  526. data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModel.js +0 -365
  527. data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModernizer.js +0 -400
  528. data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV3.js +0 -16
  529. data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV4.js +0 -16
  530. data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV5.js +0 -16
  531. data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV6.js +0 -16
  532. data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV7.js +0 -16
  533. data/node/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV8.js +0 -16
  534. data/node/node_modules/playwright-core/lib/utils/isomorphic/traceUtils.js +0 -58
  535. data/node/node_modules/playwright-core/lib/utils/isomorphic/types.js +0 -16
  536. data/node/node_modules/playwright-core/lib/utils/isomorphic/urlMatch.js +0 -190
  537. data/node/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializers.js +0 -251
  538. data/node/node_modules/playwright-core/lib/utils/isomorphic/yaml.js +0 -84
  539. data/node/node_modules/playwright-core/lib/utils.js +0 -111
  540. data/node/node_modules/playwright-core/lib/utilsBundle.js +0 -109
  541. data/node/node_modules/playwright-core/lib/utilsBundleImpl/index.js +0 -218
  542. data/node/node_modules/playwright-core/lib/utilsBundleImpl/xdg-open +0 -1066
  543. data/node/node_modules/playwright-core/lib/vite/htmlReport/index.html +0 -84
  544. data/node/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DYBRYzYX.css +0 -1
  545. data/node/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DadYNm1I.js +0 -32
  546. data/node/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
  547. data/node/node_modules/playwright-core/lib/vite/recorder/assets/index-BSjZa4pk.css +0 -1
  548. data/node/node_modules/playwright-core/lib/vite/recorder/assets/index-BhTWtUlo.js +0 -193
  549. data/node/node_modules/playwright-core/lib/vite/recorder/index.html +0 -29
  550. data/node/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +0 -9
  551. data/node/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-a5XoALAZ.js +0 -32
  552. data/node/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-CJSZINFr.js +0 -266
  553. data/node/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +0 -9
  554. data/node/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.DYBRYzYX.css +0 -1
  555. data/node/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
  556. data/node/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.7ch9cixO.css +0 -1
  557. data/node/node_modules/playwright-core/lib/vite/traceViewer/index.BVu7tZDe.css +0 -1
  558. data/node/node_modules/playwright-core/lib/vite/traceViewer/index.Bk2uYQRV.js +0 -2
  559. data/node/node_modules/playwright-core/lib/vite/traceViewer/index.html +0 -43
  560. data/node/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +0 -16
  561. data/node/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +0 -9
  562. data/node/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +0 -21
  563. data/node/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +0 -5
  564. data/node/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Btcz36p_.css +0 -1
  565. data/node/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CQJ9SCIQ.js +0 -5
  566. data/node/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +0 -17
  567. data/node/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +0 -32
  568. data/node/node_modules/playwright-core/lib/zipBundle.js +0 -34
  569. data/node/node_modules/playwright-core/lib/zipBundleImpl.js +0 -5
  570. data/node/node_modules/playwright-core/package.json +0 -43
  571. data/node/node_modules/playwright-core/types/protocol.d.ts +0 -23824
  572. data/node/node_modules/playwright-core/types/structs.d.ts +0 -45
  573. data/node/node_modules/playwright-core/types/types.d.ts +0 -22843
  574. data/node/package-lock.json +0 -72
  575. data/node/package.json +0 -14
  576. data/node/src/index.js +0 -215
  577. data/spec/rubycrawl_spec.rb +0 -51
  578. data/spec/spec_helper.rb +0 -11
@@ -1,815 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var dom_exports = {};
30
- __export(dom_exports, {
31
- ElementHandle: () => ElementHandle,
32
- FrameExecutionContext: () => FrameExecutionContext,
33
- NonRecoverableDOMError: () => NonRecoverableDOMError,
34
- assertDone: () => assertDone,
35
- isNonRecoverableDOMError: () => isNonRecoverableDOMError,
36
- kUnableToAdoptErrorMessage: () => kUnableToAdoptErrorMessage,
37
- throwElementIsNotAttached: () => throwElementIsNotAttached,
38
- throwRetargetableDOMError: () => throwRetargetableDOMError
39
- });
40
- module.exports = __toCommonJS(dom_exports);
41
- var import_fs = __toESM(require("fs"));
42
- var js = __toESM(require("./javascript"));
43
- var import_utils = require("../utils");
44
- var import_fileUploadUtils = require("./fileUploadUtils");
45
- var rawInjectedScriptSource = __toESM(require("../generated/injectedScriptSource"));
46
- class NonRecoverableDOMError extends Error {
47
- }
48
- function isNonRecoverableDOMError(error) {
49
- return error instanceof NonRecoverableDOMError;
50
- }
51
- class FrameExecutionContext extends js.ExecutionContext {
52
- constructor(delegate, frame, world) {
53
- super(frame, delegate, world || "content-script");
54
- this.frame = frame;
55
- this.world = world;
56
- }
57
- adoptIfNeeded(handle) {
58
- if (handle instanceof ElementHandle && handle._context !== this)
59
- return this.frame._page.delegate.adoptElementHandle(handle, this);
60
- return null;
61
- }
62
- async evaluate(pageFunction, arg) {
63
- return js.evaluate(this, true, pageFunction, arg);
64
- }
65
- async evaluateHandle(pageFunction, arg) {
66
- return js.evaluate(this, false, pageFunction, arg);
67
- }
68
- async evaluateExpression(expression, options, arg) {
69
- return js.evaluateExpression(this, expression, { ...options, returnByValue: true }, arg);
70
- }
71
- async evaluateExpressionHandle(expression, options, arg) {
72
- return js.evaluateExpression(this, expression, { ...options, returnByValue: false }, arg);
73
- }
74
- injectedScript() {
75
- if (!this._injectedScriptPromise) {
76
- const customEngines = [];
77
- const selectorsRegistry = this.frame._page.browserContext.selectors();
78
- for (const [name, { source: source2 }] of selectorsRegistry._engines)
79
- customEngines.push({ name, source: `(${source2})` });
80
- const sdkLanguage = this.frame._page.browserContext._browser.sdkLanguage();
81
- const options = {
82
- isUnderTest: (0, import_utils.isUnderTest)(),
83
- sdkLanguage,
84
- testIdAttributeName: selectorsRegistry.testIdAttributeName(),
85
- stableRafCount: this.frame._page.delegate.rafCountForStablePosition(),
86
- browserName: this.frame._page.browserContext._browser.options.name,
87
- isUtilityWorld: this.world === "utility",
88
- customEngines
89
- };
90
- const source = `
91
- (() => {
92
- const module = {};
93
- ${rawInjectedScriptSource.source}
94
- return new (module.exports.InjectedScript())(globalThis, ${JSON.stringify(options)});
95
- })();
96
- `;
97
- this._injectedScriptPromise = this.rawEvaluateHandle(source).then((handle) => {
98
- handle._setPreview("InjectedScript");
99
- return handle;
100
- });
101
- }
102
- return this._injectedScriptPromise;
103
- }
104
- }
105
- class ElementHandle extends js.JSHandle {
106
- constructor(context, objectId) {
107
- super(context, "node", void 0, objectId);
108
- this.__elementhandle = true;
109
- this._page = context.frame._page;
110
- this._frame = context.frame;
111
- this._initializePreview().catch((e) => {
112
- });
113
- }
114
- async _initializePreview() {
115
- const utility = await this._context.injectedScript();
116
- this._setPreview(await utility.evaluate((injected, e) => "JSHandle@" + injected.previewNode(e), this));
117
- }
118
- asElement() {
119
- return this;
120
- }
121
- async evaluateInUtility(pageFunction, arg) {
122
- try {
123
- const utility = await this._frame._utilityContext();
124
- return await utility.evaluate(pageFunction, [await utility.injectedScript(), this, arg]);
125
- } catch (e) {
126
- if (this._frame.isNonRetriableError(e))
127
- throw e;
128
- return "error:notconnected";
129
- }
130
- }
131
- async evaluateHandleInUtility(pageFunction, arg) {
132
- try {
133
- const utility = await this._frame._utilityContext();
134
- return await utility.evaluateHandle(pageFunction, [await utility.injectedScript(), this, arg]);
135
- } catch (e) {
136
- if (this._frame.isNonRetriableError(e))
137
- throw e;
138
- return "error:notconnected";
139
- }
140
- }
141
- async ownerFrame() {
142
- const frameId = await this._page.delegate.getOwnerFrame(this);
143
- if (!frameId)
144
- return null;
145
- const frame = this._page.frameManager.frame(frameId);
146
- if (frame)
147
- return frame;
148
- for (const page of this._page.browserContext.pages()) {
149
- const frame2 = page.frameManager.frame(frameId);
150
- if (frame2)
151
- return frame2;
152
- }
153
- return null;
154
- }
155
- async isIframeElement() {
156
- return this.evaluateInUtility(([injected, node]) => node && (node.nodeName === "IFRAME" || node.nodeName === "FRAME"), {});
157
- }
158
- async contentFrame() {
159
- const isFrameElement = throwRetargetableDOMError(await this.isIframeElement());
160
- if (!isFrameElement)
161
- return null;
162
- return this._page.delegate.getContentFrame(this);
163
- }
164
- async getAttribute(progress, name) {
165
- return this._frame.getAttribute(progress, ":scope", name, {}, this);
166
- }
167
- async inputValue(progress) {
168
- return this._frame.inputValue(progress, ":scope", {}, this);
169
- }
170
- async textContent(progress) {
171
- return this._frame.textContent(progress, ":scope", {}, this);
172
- }
173
- async innerText(progress) {
174
- return this._frame.innerText(progress, ":scope", {}, this);
175
- }
176
- async innerHTML(progress) {
177
- return this._frame.innerHTML(progress, ":scope", {}, this);
178
- }
179
- async dispatchEvent(progress, type, eventInit = {}) {
180
- return this._frame.dispatchEvent(progress, ":scope", type, eventInit, {}, this);
181
- }
182
- async _scrollRectIntoViewIfNeeded(progress, rect) {
183
- return await progress.race(this._page.delegate.scrollRectIntoViewIfNeeded(this, rect));
184
- }
185
- async _waitAndScrollIntoViewIfNeeded(progress, waitForVisible) {
186
- const result = await this._retryAction(progress, "scroll into view", async () => {
187
- progress.log(` waiting for element to be stable`);
188
- const waitResult = await progress.race(this.evaluateInUtility(async ([injected, node, { waitForVisible: waitForVisible2 }]) => {
189
- return await injected.checkElementStates(node, waitForVisible2 ? ["visible", "stable"] : ["stable"]);
190
- }, { waitForVisible }));
191
- if (waitResult)
192
- return waitResult;
193
- return await this._scrollRectIntoViewIfNeeded(progress);
194
- }, {});
195
- assertDone(throwRetargetableDOMError(result));
196
- }
197
- async scrollIntoViewIfNeeded(progress) {
198
- await this._waitAndScrollIntoViewIfNeeded(
199
- progress,
200
- false
201
- /* waitForVisible */
202
- );
203
- }
204
- async _clickablePoint() {
205
- const intersectQuadWithViewport = (quad) => {
206
- return quad.map((point) => ({
207
- x: Math.min(Math.max(point.x, 0), metrics.width),
208
- y: Math.min(Math.max(point.y, 0), metrics.height)
209
- }));
210
- };
211
- const computeQuadArea = (quad) => {
212
- let area = 0;
213
- for (let i = 0; i < quad.length; ++i) {
214
- const p1 = quad[i];
215
- const p2 = quad[(i + 1) % quad.length];
216
- area += (p1.x * p2.y - p2.x * p1.y) / 2;
217
- }
218
- return Math.abs(area);
219
- };
220
- const [quads, metrics] = await Promise.all([
221
- this._page.delegate.getContentQuads(this),
222
- this._page.mainFrame()._utilityContext().then((utility) => utility.evaluate(() => ({ width: innerWidth, height: innerHeight })))
223
- ]);
224
- if (quads === "error:notconnected")
225
- return quads;
226
- if (!quads || !quads.length)
227
- return "error:notvisible";
228
- const filtered = quads.map((quad) => intersectQuadWithViewport(quad)).filter((quad) => computeQuadArea(quad) > 0.99);
229
- if (!filtered.length)
230
- return "error:notinviewport";
231
- if (this._page.browserContext._browser.options.name === "firefox") {
232
- for (const quad of filtered) {
233
- const integerPoint = findIntegerPointInsideQuad(quad);
234
- if (integerPoint)
235
- return integerPoint;
236
- }
237
- }
238
- return quadMiddlePoint(filtered[0]);
239
- }
240
- async _offsetPoint(offset) {
241
- const [box, border] = await Promise.all([
242
- this.boundingBox(),
243
- this.evaluateInUtility(([injected, node]) => injected.getElementBorderWidth(node), {}).catch((e) => {
244
- })
245
- ]);
246
- if (!box || !border)
247
- return "error:notvisible";
248
- if (border === "error:notconnected")
249
- return border;
250
- return {
251
- x: box.x + border.left + offset.x,
252
- y: box.y + border.top + offset.y
253
- };
254
- }
255
- async _retryAction(progress, actionName, action, options) {
256
- let retry = 0;
257
- const waitTime = [0, 20, 100, 100, 500];
258
- const noAutoWaiting = options.__testHookNoAutoWaiting ?? options.noAutoWaiting;
259
- while (true) {
260
- if (retry) {
261
- progress.log(`retrying ${actionName} action${options.trial ? " (trial run)" : ""}`);
262
- const timeout = waitTime[Math.min(retry - 1, waitTime.length - 1)];
263
- if (timeout) {
264
- progress.log(` waiting ${timeout}ms`);
265
- const result2 = await progress.race(this.evaluateInUtility(([injected, node, timeout2]) => new Promise((f) => setTimeout(f, timeout2)), timeout));
266
- if (result2 === "error:notconnected")
267
- return result2;
268
- }
269
- } else {
270
- progress.log(`attempting ${actionName} action${options.trial ? " (trial run)" : ""}`);
271
- }
272
- if (!options.skipActionPreChecks && !options.force && !noAutoWaiting)
273
- await this._frame._page.performActionPreChecks(progress);
274
- const result = await action(retry);
275
- ++retry;
276
- if (result === "error:notvisible") {
277
- if (options.force || noAutoWaiting)
278
- throw new NonRecoverableDOMError("Element is not visible");
279
- progress.log(" element is not visible");
280
- continue;
281
- }
282
- if (result === "error:notinviewport") {
283
- if (options.force || noAutoWaiting)
284
- throw new NonRecoverableDOMError("Element is outside of the viewport");
285
- progress.log(" element is outside of the viewport");
286
- continue;
287
- }
288
- if (result === "error:optionsnotfound") {
289
- if (noAutoWaiting)
290
- throw new NonRecoverableDOMError("Did not find some options");
291
- progress.log(" did not find some options");
292
- continue;
293
- }
294
- if (result === "error:optionnotenabled") {
295
- if (noAutoWaiting)
296
- throw new NonRecoverableDOMError("Option being selected is not enabled");
297
- progress.log(" option being selected is not enabled");
298
- continue;
299
- }
300
- if (typeof result === "object" && "hitTargetDescription" in result) {
301
- if (noAutoWaiting)
302
- throw new NonRecoverableDOMError(`${result.hitTargetDescription} intercepts pointer events`);
303
- progress.log(` ${result.hitTargetDescription} intercepts pointer events`);
304
- continue;
305
- }
306
- if (typeof result === "object" && "missingState" in result) {
307
- if (noAutoWaiting)
308
- throw new NonRecoverableDOMError(`Element is not ${result.missingState}`);
309
- progress.log(` element is not ${result.missingState}`);
310
- continue;
311
- }
312
- return result;
313
- }
314
- }
315
- async _retryPointerAction(progress, actionName, waitForEnabled, action, options) {
316
- const skipActionPreChecks = actionName === "move and up";
317
- return await this._retryAction(progress, actionName, async (retry) => {
318
- const scrollOptions = [
319
- void 0,
320
- { block: "end", inline: "end" },
321
- { block: "center", inline: "center" },
322
- { block: "start", inline: "start" }
323
- ];
324
- const forceScrollOptions = scrollOptions[retry % scrollOptions.length];
325
- return await this._performPointerAction(progress, actionName, waitForEnabled, action, forceScrollOptions, options);
326
- }, { ...options, skipActionPreChecks });
327
- }
328
- async _performPointerAction(progress, actionName, waitForEnabled, action, forceScrollOptions, options) {
329
- const { force = false, position } = options;
330
- const doScrollIntoView = async () => {
331
- if (forceScrollOptions) {
332
- return await this.evaluateInUtility(([injected, node, options2]) => {
333
- if (node.nodeType === 1)
334
- node.scrollIntoView(options2);
335
- return "done";
336
- }, forceScrollOptions);
337
- }
338
- return await this._scrollRectIntoViewIfNeeded(progress, position ? { x: position.x, y: position.y, width: 0, height: 0 } : void 0);
339
- };
340
- if (this._frame.parentFrame()) {
341
- await progress.race(doScrollIntoView().catch(() => {
342
- }));
343
- }
344
- if (options.__testHookBeforeStable)
345
- await progress.race(options.__testHookBeforeStable());
346
- if (!force) {
347
- const elementStates = waitForEnabled ? ["visible", "enabled", "stable"] : ["visible", "stable"];
348
- progress.log(` waiting for element to be ${waitForEnabled ? "visible, enabled and stable" : "visible and stable"}`);
349
- const result = await progress.race(this.evaluateInUtility(async ([injected, node, { elementStates: elementStates2 }]) => {
350
- return await injected.checkElementStates(node, elementStates2);
351
- }, { elementStates }));
352
- if (result)
353
- return result;
354
- progress.log(` element is ${waitForEnabled ? "visible, enabled and stable" : "visible and stable"}`);
355
- }
356
- if (options.__testHookAfterStable)
357
- await progress.race(options.__testHookAfterStable());
358
- progress.log(" scrolling into view if needed");
359
- const scrolled = await progress.race(doScrollIntoView());
360
- if (scrolled !== "done")
361
- return scrolled;
362
- progress.log(" done scrolling");
363
- const maybePoint = position ? await progress.race(this._offsetPoint(position)) : await progress.race(this._clickablePoint());
364
- if (typeof maybePoint === "string")
365
- return maybePoint;
366
- const point = roundPoint(maybePoint);
367
- progress.metadata.point = point;
368
- await progress.race(this.instrumentation.onBeforeInputAction(this, progress.metadata));
369
- let hitTargetInterceptionHandle;
370
- if (force) {
371
- progress.log(` forcing action`);
372
- } else {
373
- if (options.__testHookBeforeHitTarget)
374
- await progress.race(options.__testHookBeforeHitTarget());
375
- const frameCheckResult = await progress.race(this._checkFrameIsHitTarget(point));
376
- if (frameCheckResult === "error:notconnected" || "hitTargetDescription" in frameCheckResult)
377
- return frameCheckResult;
378
- const hitPoint = frameCheckResult.framePoint;
379
- const actionType = actionName === "move and up" ? "drag" : actionName === "hover" || actionName === "tap" ? actionName : "mouse";
380
- const handle = await progress.race(this.evaluateHandleInUtility(([injected, node, { actionType: actionType2, hitPoint: hitPoint2, trial }]) => injected.setupHitTargetInterceptor(node, actionType2, hitPoint2, trial), { actionType, hitPoint, trial: !!options.trial }));
381
- if (handle === "error:notconnected")
382
- return handle;
383
- if (!handle._objectId) {
384
- const error = handle.rawValue();
385
- if (error === "error:notconnected")
386
- return error;
387
- return { hitTargetDescription: error };
388
- }
389
- hitTargetInterceptionHandle = handle;
390
- }
391
- const actionResult = await this._page.frameManager.waitForSignalsCreatedBy(progress, options.waitAfter === true, async () => {
392
- if (options.__testHookBeforePointerAction)
393
- await progress.race(options.__testHookBeforePointerAction());
394
- let restoreModifiers;
395
- if (options && options.modifiers)
396
- restoreModifiers = await this._page.keyboard.ensureModifiers(progress, options.modifiers);
397
- progress.log(` performing ${actionName} action`);
398
- await action(point);
399
- if (restoreModifiers)
400
- await this._page.keyboard.ensureModifiers(progress, restoreModifiers);
401
- if (hitTargetInterceptionHandle) {
402
- const stopHitTargetInterception = this._frame.raceAgainstEvaluationStallingEvents(() => {
403
- return hitTargetInterceptionHandle.evaluate((h) => h.stop());
404
- }).catch((e) => "done").finally(() => {
405
- hitTargetInterceptionHandle?.dispose();
406
- });
407
- if (options.waitAfter !== false) {
408
- const hitTargetResult = await progress.race(stopHitTargetInterception);
409
- if (hitTargetResult !== "done")
410
- return hitTargetResult;
411
- }
412
- }
413
- progress.log(` ${options.trial ? "trial " : ""}${actionName} action done`);
414
- progress.log(" waiting for scheduled navigations to finish");
415
- if (options.__testHookAfterPointerAction)
416
- await progress.race(options.__testHookAfterPointerAction());
417
- return "done";
418
- }).finally(() => {
419
- const stopPromise = hitTargetInterceptionHandle?.evaluate((h) => h.stop()).catch(() => {
420
- });
421
- stopPromise?.then(() => hitTargetInterceptionHandle?.dispose());
422
- });
423
- if (actionResult !== "done")
424
- return actionResult;
425
- progress.log(" navigations have finished");
426
- return "done";
427
- }
428
- async _markAsTargetElement(progress) {
429
- if (!progress.metadata.id)
430
- return;
431
- await progress.race(this.evaluateInUtility(([injected, node, callId]) => {
432
- if (node.nodeType === 1)
433
- injected.markTargetElements(/* @__PURE__ */ new Set([node]), callId);
434
- }, progress.metadata.id));
435
- }
436
- async hover(progress, options) {
437
- await this._markAsTargetElement(progress);
438
- const result = await this._hover(progress, options);
439
- return assertDone(throwRetargetableDOMError(result));
440
- }
441
- _hover(progress, options) {
442
- return this._retryPointerAction(progress, "hover", false, (point) => this._page.mouse.move(progress, point.x, point.y), { ...options, waitAfter: "disabled" });
443
- }
444
- async click(progress, options) {
445
- await this._markAsTargetElement(progress);
446
- const result = await this._click(progress, { ...options, waitAfter: !options.noWaitAfter });
447
- return assertDone(throwRetargetableDOMError(result));
448
- }
449
- _click(progress, options) {
450
- return this._retryPointerAction(progress, "click", true, (point) => this._page.mouse.click(progress, point.x, point.y, options), options);
451
- }
452
- async dblclick(progress, options) {
453
- await this._markAsTargetElement(progress);
454
- const result = await this._dblclick(progress, options);
455
- return assertDone(throwRetargetableDOMError(result));
456
- }
457
- _dblclick(progress, options) {
458
- return this._retryPointerAction(progress, "dblclick", true, (point) => this._page.mouse.click(progress, point.x, point.y, { ...options, clickCount: 2 }), { ...options, waitAfter: "disabled" });
459
- }
460
- async tap(progress, options) {
461
- await this._markAsTargetElement(progress);
462
- const result = await this._tap(progress, options);
463
- return assertDone(throwRetargetableDOMError(result));
464
- }
465
- _tap(progress, options) {
466
- return this._retryPointerAction(progress, "tap", true, (point) => this._page.touchscreen.tap(progress, point.x, point.y), { ...options, waitAfter: "disabled" });
467
- }
468
- async selectOption(progress, elements, values, options) {
469
- await this._markAsTargetElement(progress);
470
- const result = await this._selectOption(progress, elements, values, options);
471
- return throwRetargetableDOMError(result);
472
- }
473
- async _selectOption(progress, elements, values, options) {
474
- let resultingOptions = [];
475
- const result = await this._retryAction(progress, "select option", async () => {
476
- await progress.race(this.instrumentation.onBeforeInputAction(this, progress.metadata));
477
- if (!options.force)
478
- progress.log(` waiting for element to be visible and enabled`);
479
- const optionsToSelect = [...elements, ...values];
480
- const result2 = await progress.race(this.evaluateInUtility(async ([injected, node, { optionsToSelect: optionsToSelect2, force }]) => {
481
- if (!force) {
482
- const checkResult = await injected.checkElementStates(node, ["visible", "enabled"]);
483
- if (checkResult)
484
- return checkResult;
485
- }
486
- return injected.selectOptions(node, optionsToSelect2);
487
- }, { optionsToSelect, force: options.force }));
488
- if (Array.isArray(result2)) {
489
- progress.log(" selected specified option(s)");
490
- resultingOptions = result2;
491
- return "done";
492
- }
493
- return result2;
494
- }, options);
495
- if (result === "error:notconnected")
496
- return result;
497
- return resultingOptions;
498
- }
499
- async fill(progress, value, options) {
500
- await this._markAsTargetElement(progress);
501
- const result = await this._fill(progress, value, options);
502
- assertDone(throwRetargetableDOMError(result));
503
- }
504
- async _fill(progress, value, options) {
505
- progress.log(` fill("${value}")`);
506
- return await this._retryAction(progress, "fill", async () => {
507
- await progress.race(this.instrumentation.onBeforeInputAction(this, progress.metadata));
508
- if (!options.force)
509
- progress.log(" waiting for element to be visible, enabled and editable");
510
- const result = await progress.race(this.evaluateInUtility(async ([injected, node, { value: value2, force }]) => {
511
- if (!force) {
512
- const checkResult = await injected.checkElementStates(node, ["visible", "enabled", "editable"]);
513
- if (checkResult)
514
- return checkResult;
515
- }
516
- return injected.fill(node, value2);
517
- }, { value, force: options.force }));
518
- if (result === "needsinput") {
519
- if (value)
520
- await this._page.keyboard.insertText(progress, value);
521
- else
522
- await this._page.keyboard.press(progress, "Delete");
523
- return "done";
524
- } else {
525
- return result;
526
- }
527
- }, options);
528
- }
529
- async selectText(progress, options) {
530
- const result = await this._retryAction(progress, "selectText", async () => {
531
- if (!options.force)
532
- progress.log(" waiting for element to be visible");
533
- return await progress.race(this.evaluateInUtility(async ([injected, node, { force }]) => {
534
- if (!force) {
535
- const checkResult = await injected.checkElementStates(node, ["visible"]);
536
- if (checkResult)
537
- return checkResult;
538
- }
539
- return injected.selectText(node);
540
- }, { force: options.force }));
541
- }, options);
542
- assertDone(throwRetargetableDOMError(result));
543
- }
544
- async setInputFiles(progress, params) {
545
- const inputFileItems = await progress.race((0, import_fileUploadUtils.prepareFilesForUpload)(this._frame, params));
546
- await this._markAsTargetElement(progress);
547
- const result = await this._setInputFiles(progress, inputFileItems);
548
- return assertDone(throwRetargetableDOMError(result));
549
- }
550
- async _setInputFiles(progress, items) {
551
- const { filePayloads, localPaths, localDirectory } = items;
552
- const multiple = filePayloads && filePayloads.length > 1 || localPaths && localPaths.length > 1;
553
- const result = await progress.race(this.evaluateHandleInUtility(([injected, node, { multiple: multiple2, directoryUpload }]) => {
554
- const element = injected.retarget(node, "follow-label");
555
- if (!element)
556
- return;
557
- if (element.tagName !== "INPUT")
558
- throw injected.createStacklessError("Node is not an HTMLInputElement");
559
- const inputElement = element;
560
- if (multiple2 && !inputElement.multiple && !inputElement.webkitdirectory)
561
- throw injected.createStacklessError("Non-multiple file input can only accept single file");
562
- if (directoryUpload && !inputElement.webkitdirectory)
563
- throw injected.createStacklessError("File input does not support directories, pass individual files instead");
564
- if (!directoryUpload && inputElement.webkitdirectory)
565
- throw injected.createStacklessError("[webkitdirectory] input requires passing a path to a directory");
566
- return inputElement;
567
- }, { multiple, directoryUpload: !!localDirectory }));
568
- if (result === "error:notconnected" || !result.asElement())
569
- return "error:notconnected";
570
- const retargeted = result.asElement();
571
- await progress.race(this.instrumentation.onBeforeInputAction(this, progress.metadata));
572
- if (localPaths || localDirectory) {
573
- const localPathsOrDirectory = localDirectory ? [localDirectory] : localPaths;
574
- await progress.race(Promise.all(localPathsOrDirectory.map((localPath) => import_fs.default.promises.access(localPath, import_fs.default.constants.F_OK))));
575
- const waitForInputEvent = localDirectory ? this.evaluate((node) => new Promise((fulfill) => {
576
- node.addEventListener("input", fulfill, { once: true });
577
- })).catch(() => {
578
- }) : Promise.resolve();
579
- await progress.race(this._page.delegate.setInputFilePaths(retargeted, localPathsOrDirectory));
580
- await progress.race(waitForInputEvent);
581
- } else {
582
- await progress.race(retargeted.evaluateInUtility(([injected, node, files]) => injected.setInputFiles(node, files), filePayloads));
583
- }
584
- return "done";
585
- }
586
- async focus(progress) {
587
- await this._markAsTargetElement(progress);
588
- const result = await this._focus(progress);
589
- return assertDone(throwRetargetableDOMError(result));
590
- }
591
- async _focus(progress, resetSelectionIfNotFocused) {
592
- return await progress.race(this.evaluateInUtility(([injected, node, resetSelectionIfNotFocused2]) => injected.focusNode(node, resetSelectionIfNotFocused2), resetSelectionIfNotFocused));
593
- }
594
- async _blur(progress) {
595
- return await progress.race(this.evaluateInUtility(([injected, node]) => injected.blurNode(node), {}));
596
- }
597
- async type(progress, text, options) {
598
- await this._markAsTargetElement(progress);
599
- const result = await this._type(progress, text, options);
600
- return assertDone(throwRetargetableDOMError(result));
601
- }
602
- async _type(progress, text, options) {
603
- progress.log(`elementHandle.type("${text}")`);
604
- await progress.race(this.instrumentation.onBeforeInputAction(this, progress.metadata));
605
- const result = await this._focus(
606
- progress,
607
- true
608
- /* resetSelectionIfNotFocused */
609
- );
610
- if (result !== "done")
611
- return result;
612
- await this._page.keyboard.type(progress, text, options);
613
- return "done";
614
- }
615
- async press(progress, key, options) {
616
- await this._markAsTargetElement(progress);
617
- const result = await this._press(progress, key, options);
618
- return assertDone(throwRetargetableDOMError(result));
619
- }
620
- async _press(progress, key, options) {
621
- progress.log(`elementHandle.press("${key}")`);
622
- await progress.race(this.instrumentation.onBeforeInputAction(this, progress.metadata));
623
- return this._page.frameManager.waitForSignalsCreatedBy(progress, !options.noWaitAfter, async () => {
624
- const result = await this._focus(
625
- progress,
626
- true
627
- /* resetSelectionIfNotFocused */
628
- );
629
- if (result !== "done")
630
- return result;
631
- await this._page.keyboard.press(progress, key, options);
632
- return "done";
633
- });
634
- }
635
- async check(progress, options) {
636
- const result = await this._setChecked(progress, true, options);
637
- return assertDone(throwRetargetableDOMError(result));
638
- }
639
- async uncheck(progress, options) {
640
- const result = await this._setChecked(progress, false, options);
641
- return assertDone(throwRetargetableDOMError(result));
642
- }
643
- async _setChecked(progress, state, options) {
644
- const isChecked = async () => {
645
- const result2 = await progress.race(this.evaluateInUtility(([injected, node]) => injected.elementState(node, "checked"), {}));
646
- if (result2 === "error:notconnected" || result2.received === "error:notconnected")
647
- throwElementIsNotAttached();
648
- return { matches: result2.matches, isRadio: result2.isRadio };
649
- };
650
- await this._markAsTargetElement(progress);
651
- const checkedState = await isChecked();
652
- if (checkedState.matches === state)
653
- return "done";
654
- if (!state && checkedState.isRadio)
655
- throw new NonRecoverableDOMError("Cannot uncheck radio button. Radio buttons can only be unchecked by selecting another radio button in the same group.");
656
- const result = await this._click(progress, { ...options, waitAfter: "disabled" });
657
- if (result !== "done")
658
- return result;
659
- if (options.trial)
660
- return "done";
661
- const finalState = await isChecked();
662
- if (finalState.matches !== state)
663
- throw new NonRecoverableDOMError("Clicking the checkbox did not change its state");
664
- return "done";
665
- }
666
- async boundingBox() {
667
- return this._page.delegate.getBoundingBox(this);
668
- }
669
- async ariaSnapshot() {
670
- return await this.evaluateInUtility(([injected, element]) => injected.ariaSnapshot(element, { mode: "expect" }), {});
671
- }
672
- async screenshot(progress, options) {
673
- return await this._page.screenshotter.screenshotElement(progress, this, options);
674
- }
675
- async querySelector(selector, options) {
676
- return this._frame.selectors.query(selector, options, this);
677
- }
678
- async querySelectorAll(selector) {
679
- return this._frame.selectors.queryAll(selector, this);
680
- }
681
- async evalOnSelector(selector, strict, expression, isFunction, arg) {
682
- return this._frame.evalOnSelector(selector, strict, expression, isFunction, arg, this);
683
- }
684
- async evalOnSelectorAll(selector, expression, isFunction, arg) {
685
- return this._frame.evalOnSelectorAll(selector, expression, isFunction, arg, this);
686
- }
687
- async isVisible(progress) {
688
- return this._frame.isVisible(progress, ":scope", {}, this);
689
- }
690
- async isHidden(progress) {
691
- return this._frame.isHidden(progress, ":scope", {}, this);
692
- }
693
- async isEnabled(progress) {
694
- return this._frame.isEnabled(progress, ":scope", {}, this);
695
- }
696
- async isDisabled(progress) {
697
- return this._frame.isDisabled(progress, ":scope", {}, this);
698
- }
699
- async isEditable(progress) {
700
- return this._frame.isEditable(progress, ":scope", {}, this);
701
- }
702
- async isChecked(progress) {
703
- return this._frame.isChecked(progress, ":scope", {}, this);
704
- }
705
- async waitForElementState(progress, state) {
706
- const actionName = `wait for ${state}`;
707
- const result = await this._retryAction(progress, actionName, async () => {
708
- return await progress.race(this.evaluateInUtility(async ([injected, node, state2]) => {
709
- return await injected.checkElementStates(node, [state2]) || "done";
710
- }, state));
711
- }, {});
712
- assertDone(throwRetargetableDOMError(result));
713
- }
714
- async waitForSelector(progress, selector, options) {
715
- return await this._frame.waitForSelector(progress, selector, true, options, this);
716
- }
717
- async _adoptTo(context) {
718
- if (this._context !== context) {
719
- const adopted = await this._page.delegate.adoptElementHandle(this, context);
720
- this.dispose();
721
- return adopted;
722
- }
723
- return this;
724
- }
725
- async _checkFrameIsHitTarget(point) {
726
- let frame = this._frame;
727
- const data = [];
728
- while (frame.parentFrame()) {
729
- const frameElement = await frame.frameElement();
730
- const box = await frameElement.boundingBox();
731
- const style = await frameElement.evaluateInUtility(([injected, iframe]) => injected.describeIFrameStyle(iframe), {}).catch((e) => "error:notconnected");
732
- if (!box || style === "error:notconnected")
733
- return "error:notconnected";
734
- if (style === "transformed") {
735
- return { framePoint: void 0 };
736
- }
737
- const pointInFrame = { x: point.x - box.x - style.left, y: point.y - box.y - style.top };
738
- data.push({ frame, frameElement, pointInFrame });
739
- frame = frame.parentFrame();
740
- }
741
- data.push({ frame, frameElement: null, pointInFrame: point });
742
- for (let i = data.length - 1; i > 0; i--) {
743
- const element = data[i - 1].frameElement;
744
- const point2 = data[i].pointInFrame;
745
- const hitTargetResult = await element.evaluateInUtility(([injected, element2, hitPoint]) => {
746
- return injected.expectHitTarget(hitPoint, element2);
747
- }, point2);
748
- if (hitTargetResult !== "done")
749
- return hitTargetResult;
750
- }
751
- return { framePoint: data[0].pointInFrame };
752
- }
753
- }
754
- function throwRetargetableDOMError(result) {
755
- if (result === "error:notconnected")
756
- throwElementIsNotAttached();
757
- return result;
758
- }
759
- function throwElementIsNotAttached() {
760
- throw new Error("Element is not attached to the DOM");
761
- }
762
- function assertDone(result) {
763
- }
764
- function roundPoint(point) {
765
- return {
766
- x: (point.x * 100 | 0) / 100,
767
- y: (point.y * 100 | 0) / 100
768
- };
769
- }
770
- function quadMiddlePoint(quad) {
771
- const result = { x: 0, y: 0 };
772
- for (const point of quad) {
773
- result.x += point.x / 4;
774
- result.y += point.y / 4;
775
- }
776
- return result;
777
- }
778
- function triangleArea(p1, p2, p3) {
779
- return Math.abs(p1.x * (p2.y - p3.y) + p2.x * (p3.y - p1.y) + p3.x * (p1.y - p2.y)) / 2;
780
- }
781
- function isPointInsideQuad(point, quad) {
782
- const area1 = triangleArea(point, quad[0], quad[1]) + triangleArea(point, quad[1], quad[2]) + triangleArea(point, quad[2], quad[3]) + triangleArea(point, quad[3], quad[0]);
783
- const area2 = triangleArea(quad[0], quad[1], quad[2]) + triangleArea(quad[1], quad[2], quad[3]);
784
- if (Math.abs(area1 - area2) > 0.1)
785
- return false;
786
- return point.x < Math.max(quad[0].x, quad[1].x, quad[2].x, quad[3].x) && point.y < Math.max(quad[0].y, quad[1].y, quad[2].y, quad[3].y);
787
- }
788
- function findIntegerPointInsideQuad(quad) {
789
- const point = quadMiddlePoint(quad);
790
- point.x = Math.floor(point.x);
791
- point.y = Math.floor(point.y);
792
- if (isPointInsideQuad(point, quad))
793
- return point;
794
- point.x += 1;
795
- if (isPointInsideQuad(point, quad))
796
- return point;
797
- point.y += 1;
798
- if (isPointInsideQuad(point, quad))
799
- return point;
800
- point.x -= 1;
801
- if (isPointInsideQuad(point, quad))
802
- return point;
803
- }
804
- const kUnableToAdoptErrorMessage = "Unable to adopt element handle from a different document";
805
- // Annotate the CommonJS export names for ESM import in node:
806
- 0 && (module.exports = {
807
- ElementHandle,
808
- FrameExecutionContext,
809
- NonRecoverableDOMError,
810
- assertDone,
811
- isNonRecoverableDOMError,
812
- kUnableToAdoptErrorMessage,
813
- throwElementIsNotAttached,
814
- throwRetargetableDOMError
815
- });