isomorfeus-puppetmaster 0.4.1 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (945) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -13
  3. data/lib/isomorfeus/puppetmaster/driver/puppeteer.rb +24 -21
  4. data/lib/isomorfeus/puppetmaster/driver/puppeteer_document.rb +30 -30
  5. data/lib/isomorfeus/puppetmaster/driver/puppeteer_node.rb +4 -4
  6. data/lib/isomorfeus/puppetmaster/driver_registration.rb +4 -4
  7. data/lib/isomorfeus/puppetmaster/node.rb +3 -3
  8. data/lib/isomorfeus/puppetmaster/server.rb +1 -1
  9. data/lib/isomorfeus/puppetmaster/server_registration.rb +3 -55
  10. data/lib/isomorfeus/puppetmaster/version.rb +1 -1
  11. data/lib/isomorfeus/puppetmaster.rb +8 -5
  12. data/lib/isomorfeus-puppetmaster.rb +10 -3
  13. data/node_modules/.bin/extract-zip +12 -0
  14. data/node_modules/.bin/extract-zip.cmd +17 -0
  15. data/node_modules/.bin/extract-zip.ps1 +28 -0
  16. data/node_modules/.bin/mkdirp +12 -0
  17. data/node_modules/.bin/mkdirp.cmd +17 -0
  18. data/node_modules/.bin/mkdirp.ps1 +28 -0
  19. data/node_modules/.bin/rimraf +12 -0
  20. data/node_modules/.bin/rimraf.cmd +17 -0
  21. data/node_modules/.bin/rimraf.ps1 +28 -0
  22. data/node_modules/.package-lock.json +574 -0
  23. data/node_modules/@types/node/LICENSE +21 -0
  24. data/node_modules/@types/node/README.md +16 -0
  25. data/node_modules/@types/node/assert/strict.d.ts +8 -0
  26. data/node_modules/@types/node/assert.d.ts +912 -0
  27. data/node_modules/@types/node/async_hooks.d.ts +497 -0
  28. data/node_modules/@types/node/buffer.d.ts +2142 -0
  29. data/node_modules/@types/node/child_process.d.ts +1355 -0
  30. data/node_modules/@types/node/cluster.d.ts +414 -0
  31. data/node_modules/@types/node/console.d.ts +407 -0
  32. data/node_modules/@types/node/constants.d.ts +18 -0
  33. data/node_modules/@types/node/crypto.d.ts +3224 -0
  34. data/node_modules/@types/node/dgram.d.ts +545 -0
  35. data/node_modules/@types/node/diagnostics_channel.d.ts +128 -0
  36. data/node_modules/@types/node/dns/promises.d.ts +357 -0
  37. data/node_modules/@types/node/dns.d.ts +643 -0
  38. data/node_modules/@types/node/domain.d.ts +169 -0
  39. data/node_modules/@types/node/events.d.ts +623 -0
  40. data/node_modules/@types/node/fs/promises.d.ts +997 -0
  41. data/node_modules/@types/node/fs.d.ts +3723 -0
  42. data/node_modules/@types/node/globals.d.ts +285 -0
  43. data/node_modules/@types/node/globals.global.d.ts +1 -0
  44. data/node_modules/@types/node/http.d.ts +1358 -0
  45. data/node_modules/@types/node/http2.d.ts +2100 -0
  46. data/node_modules/@types/node/https.d.ts +391 -0
  47. data/node_modules/@types/node/index.d.ts +131 -0
  48. data/node_modules/@types/node/inspector.d.ts +2738 -0
  49. data/node_modules/@types/node/module.d.ts +114 -0
  50. data/node_modules/@types/node/net.d.ts +783 -0
  51. data/node_modules/@types/node/os.d.ts +455 -0
  52. data/node_modules/@types/node/package.json +230 -0
  53. data/node_modules/@types/node/path.d.ts +172 -0
  54. data/node_modules/@types/node/perf_hooks.d.ts +555 -0
  55. data/node_modules/@types/node/process.d.ts +1477 -0
  56. data/node_modules/@types/node/punycode.d.ts +117 -0
  57. data/node_modules/@types/node/querystring.d.ts +131 -0
  58. data/node_modules/@types/node/readline.d.ts +542 -0
  59. data/node_modules/@types/node/repl.d.ts +424 -0
  60. data/node_modules/@types/node/stream/consumers.d.ts +24 -0
  61. data/node_modules/@types/node/stream/promises.d.ts +42 -0
  62. data/node_modules/@types/node/stream/web.d.ts +6 -0
  63. data/node_modules/@types/node/stream.d.ts +1181 -0
  64. data/node_modules/@types/node/string_decoder.d.ts +67 -0
  65. data/node_modules/@types/node/timers/promises.d.ts +68 -0
  66. data/node_modules/@types/node/timers.d.ts +94 -0
  67. data/node_modules/@types/node/tls.d.ts +1019 -0
  68. data/node_modules/@types/node/trace_events.d.ts +161 -0
  69. data/node_modules/@types/node/tty.d.ts +206 -0
  70. data/node_modules/@types/node/url.d.ts +798 -0
  71. data/node_modules/@types/node/util.d.ts +1556 -0
  72. data/node_modules/@types/node/v8.d.ts +378 -0
  73. data/node_modules/@types/node/vm.d.ts +504 -0
  74. data/node_modules/@types/node/wasi.d.ts +153 -0
  75. data/node_modules/@types/node/worker_threads.d.ts +649 -0
  76. data/node_modules/@types/node/zlib.d.ts +517 -0
  77. data/node_modules/@types/yauzl/LICENSE +21 -0
  78. data/node_modules/@types/yauzl/README.md +16 -0
  79. data/node_modules/@types/yauzl/index.d.ts +98 -0
  80. data/node_modules/@types/yauzl/package.json +27 -0
  81. data/node_modules/agent-base/README.md +145 -0
  82. data/node_modules/agent-base/dist/src/index.d.ts +78 -0
  83. data/node_modules/agent-base/dist/src/index.js +203 -0
  84. data/node_modules/agent-base/dist/src/index.js.map +1 -0
  85. data/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
  86. data/node_modules/agent-base/dist/src/promisify.js +18 -0
  87. data/node_modules/agent-base/dist/src/promisify.js.map +1 -0
  88. data/node_modules/agent-base/package.json +64 -0
  89. data/node_modules/agent-base/src/index.ts +345 -0
  90. data/node_modules/agent-base/src/promisify.ts +33 -0
  91. data/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  92. data/node_modules/balanced-match/LICENSE.md +21 -0
  93. data/node_modules/balanced-match/README.md +97 -0
  94. data/node_modules/balanced-match/index.js +62 -0
  95. data/node_modules/balanced-match/package.json +48 -0
  96. data/node_modules/base64-js/LICENSE +21 -0
  97. data/node_modules/base64-js/README.md +34 -0
  98. data/node_modules/base64-js/base64js.min.js +1 -0
  99. data/node_modules/base64-js/index.d.ts +3 -0
  100. data/node_modules/base64-js/index.js +150 -0
  101. data/node_modules/base64-js/package.json +47 -0
  102. data/node_modules/bl/.travis.yml +17 -0
  103. data/node_modules/bl/BufferList.js +396 -0
  104. data/node_modules/bl/LICENSE.md +13 -0
  105. data/node_modules/bl/README.md +247 -0
  106. data/node_modules/bl/bl.js +84 -0
  107. data/node_modules/bl/package.json +37 -0
  108. data/node_modules/bl/test/convert.js +21 -0
  109. data/node_modules/bl/test/indexOf.js +492 -0
  110. data/node_modules/bl/test/isBufferList.js +32 -0
  111. data/node_modules/bl/test/test.js +869 -0
  112. data/node_modules/brace-expansion/LICENSE +21 -0
  113. data/node_modules/brace-expansion/README.md +129 -0
  114. data/node_modules/brace-expansion/index.js +201 -0
  115. data/node_modules/brace-expansion/package.json +47 -0
  116. data/node_modules/buffer/AUTHORS.md +70 -0
  117. data/node_modules/buffer/LICENSE +21 -0
  118. data/node_modules/buffer/README.md +410 -0
  119. data/node_modules/buffer/index.d.ts +186 -0
  120. data/node_modules/buffer/index.js +1817 -0
  121. data/node_modules/buffer/package.json +96 -0
  122. data/node_modules/buffer-crc32/LICENSE +19 -0
  123. data/node_modules/buffer-crc32/README.md +47 -0
  124. data/node_modules/buffer-crc32/index.js +111 -0
  125. data/node_modules/buffer-crc32/package.json +39 -0
  126. data/node_modules/chownr/LICENSE +15 -0
  127. data/node_modules/chownr/README.md +3 -0
  128. data/node_modules/chownr/chownr.js +167 -0
  129. data/node_modules/chownr/package.json +29 -0
  130. data/node_modules/concat-map/.travis.yml +4 -0
  131. data/node_modules/concat-map/LICENSE +18 -0
  132. data/node_modules/concat-map/README.markdown +62 -0
  133. data/node_modules/concat-map/example/map.js +6 -0
  134. data/node_modules/concat-map/index.js +13 -0
  135. data/node_modules/concat-map/package.json +43 -0
  136. data/node_modules/concat-map/test/map.js +39 -0
  137. data/node_modules/debug/LICENSE +19 -0
  138. data/node_modules/debug/README.md +455 -0
  139. data/node_modules/debug/package.json +59 -0
  140. data/node_modules/debug/src/browser.js +269 -0
  141. data/node_modules/debug/src/common.js +261 -0
  142. data/node_modules/debug/src/index.js +10 -0
  143. data/node_modules/debug/src/node.js +263 -0
  144. data/node_modules/devtools-protocol/LICENSE +27 -0
  145. data/node_modules/devtools-protocol/README.md +12 -0
  146. data/node_modules/devtools-protocol/changelog.md +10491 -0
  147. data/node_modules/devtools-protocol/externs/protocol_externs.js +9734 -0
  148. data/node_modules/devtools-protocol/json/browser_protocol.json +20641 -0
  149. data/node_modules/devtools-protocol/json/js_protocol.json +3581 -0
  150. data/node_modules/devtools-protocol/package.json +18 -0
  151. data/node_modules/devtools-protocol/pdl/browser_protocol.pdl +9637 -0
  152. data/node_modules/devtools-protocol/pdl/js_protocol.pdl +1678 -0
  153. data/node_modules/devtools-protocol/types/protocol-mapping.d.ts +4321 -0
  154. data/node_modules/devtools-protocol/types/protocol-proxy-api.d.ts +3683 -0
  155. data/node_modules/devtools-protocol/types/protocol.d.ts +15538 -0
  156. data/node_modules/end-of-stream/LICENSE +21 -0
  157. data/node_modules/end-of-stream/README.md +54 -0
  158. data/node_modules/end-of-stream/index.js +94 -0
  159. data/node_modules/end-of-stream/package.json +37 -0
  160. data/node_modules/extract-zip/LICENSE +23 -0
  161. data/node_modules/extract-zip/cli.js +19 -0
  162. data/node_modules/extract-zip/index.d.ts +21 -0
  163. data/node_modules/extract-zip/index.js +173 -0
  164. data/node_modules/extract-zip/package.json +80 -0
  165. data/node_modules/extract-zip/readme.md +57 -0
  166. data/node_modules/fd-slicer/.npmignore +2 -0
  167. data/node_modules/fd-slicer/.travis.yml +7 -0
  168. data/node_modules/fd-slicer/CHANGELOG.md +49 -0
  169. data/node_modules/fd-slicer/LICENSE +21 -0
  170. data/node_modules/fd-slicer/README.md +199 -0
  171. data/node_modules/fd-slicer/index.js +296 -0
  172. data/node_modules/fd-slicer/package.json +36 -0
  173. data/node_modules/fd-slicer/test/test.js +350 -0
  174. data/node_modules/find-up/index.d.ts +137 -0
  175. data/node_modules/find-up/index.js +89 -0
  176. data/node_modules/find-up/license +9 -0
  177. data/node_modules/find-up/package.json +53 -0
  178. data/node_modules/find-up/readme.md +156 -0
  179. data/node_modules/fs-constants/LICENSE +21 -0
  180. data/node_modules/fs-constants/README.md +26 -0
  181. data/node_modules/fs-constants/browser.js +1 -0
  182. data/node_modules/fs-constants/index.js +1 -0
  183. data/node_modules/fs-constants/package.json +19 -0
  184. data/node_modules/fs.realpath/LICENSE +43 -0
  185. data/node_modules/fs.realpath/README.md +33 -0
  186. data/node_modules/fs.realpath/index.js +66 -0
  187. data/node_modules/fs.realpath/old.js +303 -0
  188. data/node_modules/fs.realpath/package.json +26 -0
  189. data/node_modules/get-stream/buffer-stream.js +52 -0
  190. data/node_modules/get-stream/index.d.ts +108 -0
  191. data/node_modules/get-stream/index.js +60 -0
  192. data/node_modules/get-stream/license +9 -0
  193. data/node_modules/get-stream/package.json +50 -0
  194. data/node_modules/get-stream/readme.md +124 -0
  195. data/node_modules/glob/LICENSE +21 -0
  196. data/node_modules/glob/README.md +375 -0
  197. data/node_modules/glob/changelog.md +67 -0
  198. data/node_modules/glob/common.js +234 -0
  199. data/node_modules/glob/glob.js +788 -0
  200. data/node_modules/glob/package.json +51 -0
  201. data/node_modules/glob/sync.js +484 -0
  202. data/node_modules/https-proxy-agent/README.md +137 -0
  203. data/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
  204. data/node_modules/https-proxy-agent/dist/agent.js +180 -0
  205. data/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
  206. data/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
  207. data/node_modules/https-proxy-agent/dist/index.js +14 -0
  208. data/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  209. data/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  210. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  211. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  212. data/node_modules/https-proxy-agent/package.json +56 -0
  213. data/node_modules/ieee754/LICENSE +11 -0
  214. data/node_modules/ieee754/README.md +51 -0
  215. data/node_modules/ieee754/index.d.ts +10 -0
  216. data/node_modules/ieee754/index.js +85 -0
  217. data/node_modules/ieee754/package.json +52 -0
  218. data/node_modules/inflight/LICENSE +15 -0
  219. data/node_modules/inflight/README.md +37 -0
  220. data/node_modules/inflight/inflight.js +54 -0
  221. data/node_modules/inflight/package.json +29 -0
  222. data/node_modules/inherits/LICENSE +16 -0
  223. data/node_modules/inherits/README.md +42 -0
  224. data/node_modules/inherits/inherits.js +9 -0
  225. data/node_modules/inherits/inherits_browser.js +27 -0
  226. data/node_modules/inherits/package.json +29 -0
  227. data/node_modules/locate-path/index.d.ts +83 -0
  228. data/node_modules/locate-path/index.js +65 -0
  229. data/node_modules/locate-path/license +9 -0
  230. data/node_modules/locate-path/package.json +45 -0
  231. data/node_modules/locate-path/readme.md +122 -0
  232. data/node_modules/minimatch/LICENSE +15 -0
  233. data/node_modules/minimatch/README.md +209 -0
  234. data/node_modules/minimatch/minimatch.js +923 -0
  235. data/node_modules/minimatch/package.json +30 -0
  236. data/node_modules/minimist/.travis.yml +8 -0
  237. data/node_modules/minimist/LICENSE +18 -0
  238. data/node_modules/minimist/example/parse.js +2 -0
  239. data/node_modules/minimist/index.js +245 -0
  240. data/node_modules/minimist/package.json +45 -0
  241. data/node_modules/minimist/readme.markdown +95 -0
  242. data/node_modules/minimist/test/all_bool.js +32 -0
  243. data/node_modules/minimist/test/bool.js +178 -0
  244. data/node_modules/minimist/test/dash.js +31 -0
  245. data/node_modules/minimist/test/default_bool.js +35 -0
  246. data/node_modules/minimist/test/dotted.js +22 -0
  247. data/node_modules/minimist/test/kv_short.js +16 -0
  248. data/node_modules/minimist/test/long.js +31 -0
  249. data/node_modules/minimist/test/num.js +36 -0
  250. data/node_modules/minimist/test/parse.js +197 -0
  251. data/node_modules/minimist/test/parse_modified.js +9 -0
  252. data/node_modules/minimist/test/proto.js +44 -0
  253. data/node_modules/minimist/test/short.js +67 -0
  254. data/node_modules/minimist/test/stop_early.js +15 -0
  255. data/node_modules/minimist/test/unknown.js +102 -0
  256. data/node_modules/minimist/test/whitespace.js +8 -0
  257. data/node_modules/mkdirp/LICENSE +21 -0
  258. data/node_modules/mkdirp/bin/cmd.js +33 -0
  259. data/node_modules/mkdirp/bin/usage.txt +12 -0
  260. data/node_modules/mkdirp/index.js +99 -0
  261. data/node_modules/mkdirp/package.json +34 -0
  262. data/node_modules/mkdirp/readme.markdown +100 -0
  263. data/node_modules/ms/index.js +162 -0
  264. data/node_modules/ms/license.md +21 -0
  265. data/node_modules/ms/package.json +37 -0
  266. data/node_modules/ms/readme.md +60 -0
  267. data/node_modules/node-fetch/CHANGELOG.md +272 -0
  268. data/node_modules/node-fetch/LICENSE.md +22 -0
  269. data/node_modules/node-fetch/README.md +590 -0
  270. data/node_modules/node-fetch/browser.js +25 -0
  271. data/node_modules/node-fetch/lib/index.es.js +1640 -0
  272. data/node_modules/node-fetch/lib/index.js +1649 -0
  273. data/node_modules/node-fetch/lib/index.mjs +1638 -0
  274. data/node_modules/node-fetch/package.json +66 -0
  275. data/node_modules/once/LICENSE +15 -0
  276. data/node_modules/once/README.md +79 -0
  277. data/node_modules/once/once.js +42 -0
  278. data/node_modules/once/package.json +33 -0
  279. data/node_modules/p-limit/index.d.ts +38 -0
  280. data/node_modules/p-limit/index.js +57 -0
  281. data/node_modules/p-limit/license +9 -0
  282. data/node_modules/p-limit/package.json +52 -0
  283. data/node_modules/p-limit/readme.md +101 -0
  284. data/node_modules/p-locate/index.d.ts +64 -0
  285. data/node_modules/p-locate/index.js +52 -0
  286. data/node_modules/p-locate/license +9 -0
  287. data/node_modules/p-locate/package.json +53 -0
  288. data/node_modules/p-locate/readme.md +90 -0
  289. data/node_modules/p-try/index.d.ts +39 -0
  290. data/node_modules/p-try/index.js +9 -0
  291. data/node_modules/p-try/license +9 -0
  292. data/node_modules/p-try/package.json +42 -0
  293. data/node_modules/p-try/readme.md +58 -0
  294. data/node_modules/path-exists/index.d.ts +28 -0
  295. data/node_modules/path-exists/index.js +23 -0
  296. data/node_modules/path-exists/license +9 -0
  297. data/node_modules/path-exists/package.json +39 -0
  298. data/node_modules/path-exists/readme.md +52 -0
  299. data/node_modules/path-is-absolute/index.js +20 -0
  300. data/node_modules/path-is-absolute/license +21 -0
  301. data/node_modules/path-is-absolute/package.json +43 -0
  302. data/node_modules/path-is-absolute/readme.md +59 -0
  303. data/node_modules/pend/LICENSE +23 -0
  304. data/node_modules/pend/README.md +41 -0
  305. data/node_modules/pend/index.js +55 -0
  306. data/node_modules/pend/package.json +18 -0
  307. data/node_modules/pend/test.js +137 -0
  308. data/node_modules/pkg-dir/index.d.ts +44 -0
  309. data/node_modules/pkg-dir/index.js +17 -0
  310. data/node_modules/pkg-dir/license +9 -0
  311. data/node_modules/pkg-dir/package.json +56 -0
  312. data/node_modules/pkg-dir/readme.md +66 -0
  313. data/node_modules/progress/CHANGELOG.md +115 -0
  314. data/node_modules/progress/LICENSE +22 -0
  315. data/node_modules/progress/Makefile +8 -0
  316. data/node_modules/progress/Readme.md +146 -0
  317. data/node_modules/progress/index.js +1 -0
  318. data/node_modules/progress/lib/node-progress.js +235 -0
  319. data/node_modules/progress/package.json +26 -0
  320. data/node_modules/proxy-from-env/.eslintrc +29 -0
  321. data/node_modules/proxy-from-env/.travis.yml +10 -0
  322. data/node_modules/proxy-from-env/LICENSE +20 -0
  323. data/node_modules/proxy-from-env/README.md +131 -0
  324. data/node_modules/proxy-from-env/index.js +108 -0
  325. data/node_modules/proxy-from-env/package.json +34 -0
  326. data/node_modules/proxy-from-env/test.js +483 -0
  327. data/node_modules/pump/.travis.yml +5 -0
  328. data/node_modules/pump/LICENSE +21 -0
  329. data/node_modules/pump/README.md +65 -0
  330. data/node_modules/pump/index.js +82 -0
  331. data/node_modules/pump/package.json +24 -0
  332. data/node_modules/pump/test-browser.js +66 -0
  333. data/node_modules/pump/test-node.js +53 -0
  334. data/node_modules/puppeteer-core/CHANGELOG.md +261 -0
  335. data/node_modules/puppeteer-core/LICENSE +202 -0
  336. data/node_modules/puppeteer-core/README.md +483 -0
  337. data/node_modules/puppeteer-core/cjs-entry-core.js +29 -0
  338. data/node_modules/puppeteer-core/cjs-entry.js +29 -0
  339. data/node_modules/puppeteer-core/install.js +89 -0
  340. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.d.ts +111 -0
  341. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.d.ts.map +1 -0
  342. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.js +81 -0
  343. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.js.map +1 -0
  344. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts +176 -0
  345. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts.map +1 -0
  346. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js +361 -0
  347. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js.map +1 -0
  348. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts +21 -0
  349. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
  350. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js +85 -0
  351. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -0
  352. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts +454 -0
  353. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -0
  354. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js +533 -0
  355. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js.map +1 -0
  356. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts +54 -0
  357. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -0
  358. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js +98 -0
  359. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -0
  360. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
  361. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
  362. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js +35 -0
  363. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js.map +1 -0
  364. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts +130 -0
  365. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -0
  366. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js +281 -0
  367. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js.map +1 -0
  368. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts +25 -0
  369. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
  370. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js +18 -0
  371. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js.map +1 -0
  372. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts +73 -0
  373. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
  374. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js +65 -0
  375. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js.map +1 -0
  376. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts +205 -0
  377. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -0
  378. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js +336 -0
  379. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js.map +1 -0
  380. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts +174 -0
  381. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -0
  382. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js +659 -0
  383. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -0
  384. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts +53 -0
  385. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -0
  386. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js +82 -0
  387. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js.map +1 -0
  388. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts +41 -0
  389. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
  390. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js +1071 -0
  391. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -0
  392. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts +75 -0
  393. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts.map +1 -0
  394. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js +98 -0
  395. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js.map +1 -0
  396. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts +25 -0
  397. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts.map +1 -0
  398. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js +38 -0
  399. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js.map +1 -0
  400. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts +42 -0
  401. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -0
  402. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js +49 -0
  403. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js.map +1 -0
  404. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts +61 -0
  405. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts.map +1 -0
  406. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.js +18 -0
  407. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.js.map +1 -0
  408. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts +93 -0
  409. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +1 -0
  410. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js +117 -0
  411. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -0
  412. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.d.ts +82 -0
  413. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.d.ts.map +1 -0
  414. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.js +87 -0
  415. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.js.map +1 -0
  416. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts +194 -0
  417. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -0
  418. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js +322 -0
  419. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -0
  420. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts +59 -0
  421. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts.map +1 -0
  422. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js +72 -0
  423. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js.map +1 -0
  424. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts +733 -0
  425. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -0
  426. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js +965 -0
  427. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js.map +1 -0
  428. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts +341 -0
  429. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -0
  430. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js +547 -0
  431. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -0
  432. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts +126 -0
  433. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -0
  434. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js +155 -0
  435. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -0
  436. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts +360 -0
  437. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts.map +1 -0
  438. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js +545 -0
  439. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js.map +1 -0
  440. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts +491 -0
  441. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -0
  442. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js +827 -0
  443. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js.map +1 -0
  444. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +66 -0
  445. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
  446. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js +149 -0
  447. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -0
  448. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.d.ts +27 -0
  449. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.d.ts.map +1 -0
  450. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.js +34 -0
  451. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.js.map +1 -0
  452. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts +98 -0
  453. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -0
  454. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js +346 -0
  455. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -0
  456. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts +162 -0
  457. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -0
  458. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js +35 -0
  459. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -0
  460. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts +2027 -0
  461. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts.map +1 -0
  462. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js +2488 -0
  463. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js.map +1 -0
  464. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts +21 -0
  465. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts.map +1 -0
  466. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js +18 -0
  467. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js.map +1 -0
  468. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts +160 -0
  469. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -0
  470. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js +162 -0
  471. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -0
  472. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts +52 -0
  473. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
  474. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js +3 -0
  475. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js.map +1 -0
  476. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts +65 -0
  477. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +1 -0
  478. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js +166 -0
  479. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -0
  480. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts +61 -0
  481. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts.map +1 -0
  482. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js +77 -0
  483. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js.map +1 -0
  484. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts +99 -0
  485. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts.map +1 -0
  486. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js +145 -0
  487. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js.map +1 -0
  488. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts +28 -0
  489. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
  490. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js +48 -0
  491. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js.map +1 -0
  492. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts +47 -0
  493. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -0
  494. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js +110 -0
  495. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js.map +1 -0
  496. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts +40 -0
  497. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
  498. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js +407 -0
  499. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js.map +1 -0
  500. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts +99 -0
  501. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -0
  502. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js +113 -0
  503. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js.map +1 -0
  504. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts +23 -0
  505. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts.map +1 -0
  506. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js +34 -0
  507. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js.map +1 -0
  508. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts +17 -0
  509. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts.map +1 -0
  510. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js +44 -0
  511. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js.map +1 -0
  512. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.d.ts +85 -0
  513. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.d.ts.map +1 -0
  514. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js +328 -0
  515. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js.map +1 -0
  516. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts +17 -0
  517. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts.map +1 -0
  518. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js +20 -0
  519. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js.map +1 -0
  520. data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.d.ts +17 -0
  521. data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.d.ts.map +1 -0
  522. data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.js +3 -0
  523. data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.js.map +1 -0
  524. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.d.ts +18 -0
  525. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.d.ts.map +1 -0
  526. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.js +45 -0
  527. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.js.map +1 -0
  528. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.d.ts +18 -0
  529. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.d.ts.map +1 -0
  530. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.js +27 -0
  531. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.js.map +1 -0
  532. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +134 -0
  533. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
  534. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js +501 -0
  535. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -0
  536. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts +40 -0
  537. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -0
  538. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js +225 -0
  539. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -0
  540. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts +131 -0
  541. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -0
  542. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js +18 -0
  543. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js.map +1 -0
  544. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts +17 -0
  545. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -0
  546. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js +574 -0
  547. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js.map +1 -0
  548. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +27 -0
  549. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
  550. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +48 -0
  551. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -0
  552. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts +30 -0
  553. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +1 -0
  554. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js +65 -0
  555. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -0
  556. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.d.ts +154 -0
  557. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -0
  558. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js +189 -0
  559. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -0
  560. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts +18 -0
  561. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts.map +1 -0
  562. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js +174 -0
  563. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js.map +1 -0
  564. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.d.ts +18 -0
  565. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.d.ts.map +1 -0
  566. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js +25 -0
  567. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js.map +1 -0
  568. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.d.ts +18 -0
  569. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.d.ts.map +1 -0
  570. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js +24 -0
  571. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js.map +1 -0
  572. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts +22 -0
  573. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts.map +1 -0
  574. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js +23 -0
  575. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js.map +1 -0
  576. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.d.ts +18 -0
  577. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.d.ts.map +1 -0
  578. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js +24 -0
  579. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js.map +1 -0
  580. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.d.ts +28 -0
  581. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.d.ts.map +1 -0
  582. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js +57 -0
  583. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js.map +1 -0
  584. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.d.ts +111 -0
  585. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.d.ts.map +1 -0
  586. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.js +81 -0
  587. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.js.map +1 -0
  588. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts +176 -0
  589. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts.map +1 -0
  590. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js +357 -0
  591. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js.map +1 -0
  592. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +21 -0
  593. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
  594. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +82 -0
  595. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -0
  596. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts +454 -0
  597. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts.map +1 -0
  598. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js +528 -0
  599. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js.map +1 -0
  600. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts +54 -0
  601. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -0
  602. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +75 -0
  603. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -0
  604. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
  605. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
  606. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +31 -0
  607. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js.map +1 -0
  608. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts +130 -0
  609. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts.map +1 -0
  610. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js +276 -0
  611. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js.map +1 -0
  612. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts +25 -0
  613. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
  614. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js +17 -0
  615. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js.map +1 -0
  616. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts +73 -0
  617. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
  618. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +61 -0
  619. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js.map +1 -0
  620. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts +205 -0
  621. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -0
  622. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js +330 -0
  623. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js.map +1 -0
  624. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts +174 -0
  625. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -0
  626. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js +654 -0
  627. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js.map +1 -0
  628. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts +53 -0
  629. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts.map +1 -0
  630. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +78 -0
  631. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js.map +1 -0
  632. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +41 -0
  633. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
  634. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js +1068 -0
  635. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -0
  636. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts +75 -0
  637. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -0
  638. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js +94 -0
  639. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js.map +1 -0
  640. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts +25 -0
  641. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts.map +1 -0
  642. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js +34 -0
  643. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js.map +1 -0
  644. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts +42 -0
  645. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts.map +1 -0
  646. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +44 -0
  647. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js.map +1 -0
  648. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts +61 -0
  649. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -0
  650. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.js +17 -0
  651. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.js.map +1 -0
  652. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts +93 -0
  653. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -0
  654. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +110 -0
  655. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js.map +1 -0
  656. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.d.ts +82 -0
  657. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.d.ts.map +1 -0
  658. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.js +84 -0
  659. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.js.map +1 -0
  660. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts +194 -0
  661. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -0
  662. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js +318 -0
  663. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js.map +1 -0
  664. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts +59 -0
  665. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -0
  666. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +68 -0
  667. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js.map +1 -0
  668. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts +733 -0
  669. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -0
  670. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js +960 -0
  671. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js.map +1 -0
  672. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts +341 -0
  673. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -0
  674. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js +543 -0
  675. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -0
  676. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts +126 -0
  677. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -0
  678. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js +151 -0
  679. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -0
  680. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts +360 -0
  681. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts.map +1 -0
  682. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js +539 -0
  683. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js.map +1 -0
  684. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts +491 -0
  685. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -0
  686. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js +802 -0
  687. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js.map +1 -0
  688. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +66 -0
  689. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
  690. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js +145 -0
  691. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -0
  692. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.d.ts +27 -0
  693. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.d.ts.map +1 -0
  694. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.js +31 -0
  695. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.js.map +1 -0
  696. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts +98 -0
  697. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -0
  698. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js +342 -0
  699. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js.map +1 -0
  700. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts +162 -0
  701. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -0
  702. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +32 -0
  703. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js.map +1 -0
  704. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts +2027 -0
  705. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts.map +1 -0
  706. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js +2484 -0
  707. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js.map +1 -0
  708. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts +21 -0
  709. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts.map +1 -0
  710. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js +17 -0
  711. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js.map +1 -0
  712. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts +160 -0
  713. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -0
  714. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +158 -0
  715. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js.map +1 -0
  716. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts +52 -0
  717. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
  718. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js +2 -0
  719. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js.map +1 -0
  720. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts +65 -0
  721. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -0
  722. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +158 -0
  723. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js.map +1 -0
  724. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts +61 -0
  725. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts.map +1 -0
  726. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +73 -0
  727. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js.map +1 -0
  728. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts +99 -0
  729. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts.map +1 -0
  730. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js +141 -0
  731. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js.map +1 -0
  732. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts +28 -0
  733. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
  734. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +44 -0
  735. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js.map +1 -0
  736. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts +47 -0
  737. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -0
  738. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js +106 -0
  739. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js.map +1 -0
  740. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts +40 -0
  741. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
  742. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +404 -0
  743. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js.map +1 -0
  744. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts +99 -0
  745. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -0
  746. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js +109 -0
  747. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js.map +1 -0
  748. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts +23 -0
  749. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts.map +1 -0
  750. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js +29 -0
  751. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js.map +1 -0
  752. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts +17 -0
  753. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts.map +1 -0
  754. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js +21 -0
  755. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js.map +1 -0
  756. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.d.ts +85 -0
  757. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.d.ts.map +1 -0
  758. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js +306 -0
  759. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js.map +1 -0
  760. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts +17 -0
  761. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts.map +1 -0
  762. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +17 -0
  763. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js.map +1 -0
  764. data/node_modules/puppeteer-core/lib/esm/puppeteer/global.d.ts +17 -0
  765. data/node_modules/puppeteer-core/lib/esm/puppeteer/global.d.ts.map +1 -0
  766. data/node_modules/puppeteer-core/lib/esm/puppeteer/global.js +2 -0
  767. data/node_modules/puppeteer-core/lib/esm/puppeteer/global.js.map +1 -0
  768. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.d.ts +18 -0
  769. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.d.ts.map +1 -0
  770. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.js +38 -0
  771. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.js.map +1 -0
  772. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.d.ts +18 -0
  773. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.d.ts.map +1 -0
  774. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.js +23 -0
  775. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.js.map +1 -0
  776. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts +134 -0
  777. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
  778. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js +475 -0
  779. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -0
  780. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts +40 -0
  781. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -0
  782. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js +199 -0
  783. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -0
  784. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts +131 -0
  785. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -0
  786. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js +17 -0
  787. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js.map +1 -0
  788. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts +17 -0
  789. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -0
  790. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js +552 -0
  791. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js.map +1 -0
  792. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +27 -0
  793. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
  794. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js +41 -0
  795. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -0
  796. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts +30 -0
  797. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -0
  798. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js +61 -0
  799. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js.map +1 -0
  800. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.d.ts +154 -0
  801. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -0
  802. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.js +182 -0
  803. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.js.map +1 -0
  804. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts +18 -0
  805. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts.map +1 -0
  806. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js +166 -0
  807. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js.map +1 -0
  808. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.d.ts +18 -0
  809. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.d.ts.map +1 -0
  810. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.js +23 -0
  811. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.js.map +1 -0
  812. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.d.ts +18 -0
  813. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.d.ts.map +1 -0
  814. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.js +22 -0
  815. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.js.map +1 -0
  816. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts +22 -0
  817. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts.map +1 -0
  818. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +20 -0
  819. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js.map +1 -0
  820. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.d.ts +18 -0
  821. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.d.ts.map +1 -0
  822. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.js +22 -0
  823. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.js.map +1 -0
  824. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.d.ts +28 -0
  825. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.d.ts.map +1 -0
  826. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.js +54 -0
  827. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.js.map +1 -0
  828. data/node_modules/puppeteer-core/lib/types.d.ts +7008 -0
  829. data/node_modules/puppeteer-core/package.json +123 -0
  830. data/node_modules/puppeteer-core/typescript-if-required.js +61 -0
  831. data/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  832. data/node_modules/readable-stream/GOVERNANCE.md +136 -0
  833. data/node_modules/readable-stream/LICENSE +47 -0
  834. data/node_modules/readable-stream/README.md +106 -0
  835. data/node_modules/readable-stream/errors-browser.js +127 -0
  836. data/node_modules/readable-stream/errors.js +116 -0
  837. data/node_modules/readable-stream/experimentalWarning.js +17 -0
  838. data/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
  839. data/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
  840. data/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
  841. data/node_modules/readable-stream/lib/_stream_transform.js +201 -0
  842. data/node_modules/readable-stream/lib/_stream_writable.js +697 -0
  843. data/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
  844. data/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
  845. data/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
  846. data/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
  847. data/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  848. data/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
  849. data/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
  850. data/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
  851. data/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  852. data/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  853. data/node_modules/readable-stream/package.json +68 -0
  854. data/node_modules/readable-stream/readable-browser.js +9 -0
  855. data/node_modules/readable-stream/readable.js +16 -0
  856. data/node_modules/rimraf/CHANGELOG.md +65 -0
  857. data/node_modules/rimraf/LICENSE +15 -0
  858. data/node_modules/rimraf/README.md +101 -0
  859. data/node_modules/rimraf/bin.js +68 -0
  860. data/node_modules/rimraf/package.json +32 -0
  861. data/node_modules/rimraf/rimraf.js +360 -0
  862. data/node_modules/safe-buffer/LICENSE +21 -0
  863. data/node_modules/safe-buffer/README.md +584 -0
  864. data/node_modules/safe-buffer/index.d.ts +187 -0
  865. data/node_modules/safe-buffer/index.js +65 -0
  866. data/node_modules/safe-buffer/package.json +51 -0
  867. data/node_modules/string_decoder/LICENSE +48 -0
  868. data/node_modules/string_decoder/README.md +47 -0
  869. data/node_modules/string_decoder/lib/string_decoder.js +296 -0
  870. data/node_modules/string_decoder/package.json +34 -0
  871. data/node_modules/tar-fs/.travis.yml +5 -0
  872. data/node_modules/tar-fs/LICENSE +21 -0
  873. data/node_modules/tar-fs/README.md +163 -0
  874. data/node_modules/tar-fs/index.js +348 -0
  875. data/node_modules/tar-fs/package.json +41 -0
  876. data/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
  877. data/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
  878. data/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  879. data/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  880. data/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  881. data/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  882. data/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  883. data/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  884. data/node_modules/tar-fs/test/fixtures/e/file +0 -0
  885. data/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  886. data/node_modules/tar-fs/test/index.js +346 -0
  887. data/node_modules/tar-stream/LICENSE +21 -0
  888. data/node_modules/tar-stream/README.md +168 -0
  889. data/node_modules/tar-stream/extract.js +257 -0
  890. data/node_modules/tar-stream/headers.js +295 -0
  891. data/node_modules/tar-stream/index.js +2 -0
  892. data/node_modules/tar-stream/pack.js +255 -0
  893. data/node_modules/tar-stream/package.json +58 -0
  894. data/node_modules/tar-stream/sandbox.js +11 -0
  895. data/node_modules/through/.travis.yml +5 -0
  896. data/node_modules/through/LICENSE.APACHE2 +15 -0
  897. data/node_modules/through/LICENSE.MIT +24 -0
  898. data/node_modules/through/index.js +108 -0
  899. data/node_modules/through/package.json +36 -0
  900. data/node_modules/through/readme.markdown +64 -0
  901. data/node_modules/through/test/async.js +28 -0
  902. data/node_modules/through/test/auto-destroy.js +30 -0
  903. data/node_modules/through/test/buffering.js +71 -0
  904. data/node_modules/through/test/end.js +45 -0
  905. data/node_modules/through/test/index.js +133 -0
  906. data/node_modules/unbzip2-stream/LICENSE +24 -0
  907. data/node_modules/unbzip2-stream/README.md +59 -0
  908. data/node_modules/unbzip2-stream/dist/unbzip2-stream.min.js +1 -0
  909. data/node_modules/unbzip2-stream/index.js +92 -0
  910. data/node_modules/unbzip2-stream/lib/bit_iterator.js +39 -0
  911. data/node_modules/unbzip2-stream/lib/bzip2.js +367 -0
  912. data/node_modules/unbzip2-stream/package.json +51 -0
  913. data/node_modules/util-deprecate/History.md +16 -0
  914. data/node_modules/util-deprecate/LICENSE +24 -0
  915. data/node_modules/util-deprecate/README.md +53 -0
  916. data/node_modules/util-deprecate/browser.js +67 -0
  917. data/node_modules/util-deprecate/node.js +6 -0
  918. data/node_modules/util-deprecate/package.json +27 -0
  919. data/node_modules/wrappy/LICENSE +15 -0
  920. data/node_modules/wrappy/README.md +36 -0
  921. data/node_modules/wrappy/package.json +29 -0
  922. data/node_modules/wrappy/wrappy.js +33 -0
  923. data/node_modules/ws/LICENSE +21 -0
  924. data/node_modules/ws/README.md +496 -0
  925. data/node_modules/ws/browser.js +8 -0
  926. data/node_modules/ws/index.js +10 -0
  927. data/node_modules/ws/lib/buffer-util.js +129 -0
  928. data/node_modules/ws/lib/constants.js +10 -0
  929. data/node_modules/ws/lib/event-target.js +184 -0
  930. data/node_modules/ws/lib/extension.js +223 -0
  931. data/node_modules/ws/lib/limiter.js +55 -0
  932. data/node_modules/ws/lib/permessage-deflate.js +517 -0
  933. data/node_modules/ws/lib/receiver.js +507 -0
  934. data/node_modules/ws/lib/sender.js +405 -0
  935. data/node_modules/ws/lib/stream.js +165 -0
  936. data/node_modules/ws/lib/validation.js +104 -0
  937. data/node_modules/ws/lib/websocket-server.js +418 -0
  938. data/node_modules/ws/lib/websocket.js +942 -0
  939. data/node_modules/ws/package.json +56 -0
  940. data/node_modules/yauzl/LICENSE +21 -0
  941. data/node_modules/yauzl/README.md +658 -0
  942. data/node_modules/yauzl/index.js +796 -0
  943. data/node_modules/yauzl/package.json +40 -0
  944. data/package.json +6 -0
  945. metadata +973 -69
@@ -0,0 +1,965 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright 2017 Google Inc. All rights reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.Frame = exports.FrameManager = exports.FrameManagerEmittedEvents = void 0;
19
+ const Debug_js_1 = require("../common/Debug.js");
20
+ const EventEmitter_js_1 = require("./EventEmitter.js");
21
+ const assert_js_1 = require("./assert.js");
22
+ const helper_js_1 = require("./helper.js");
23
+ const ExecutionContext_js_1 = require("./ExecutionContext.js");
24
+ const LifecycleWatcher_js_1 = require("./LifecycleWatcher.js");
25
+ const DOMWorld_js_1 = require("./DOMWorld.js");
26
+ const NetworkManager_js_1 = require("./NetworkManager.js");
27
+ const UTILITY_WORLD_NAME = '__puppeteer_utility_world__';
28
+ const xPathPattern = /^\(\/\/[^\)]+\)|^\/\//;
29
+ /**
30
+ * We use symbols to prevent external parties listening to these events.
31
+ * They are internal to Puppeteer.
32
+ *
33
+ * @internal
34
+ */
35
+ exports.FrameManagerEmittedEvents = {
36
+ FrameAttached: Symbol('FrameManager.FrameAttached'),
37
+ FrameNavigated: Symbol('FrameManager.FrameNavigated'),
38
+ FrameDetached: Symbol('FrameManager.FrameDetached'),
39
+ LifecycleEvent: Symbol('FrameManager.LifecycleEvent'),
40
+ FrameNavigatedWithinDocument: Symbol('FrameManager.FrameNavigatedWithinDocument'),
41
+ ExecutionContextCreated: Symbol('FrameManager.ExecutionContextCreated'),
42
+ ExecutionContextDestroyed: Symbol('FrameManager.ExecutionContextDestroyed'),
43
+ };
44
+ /**
45
+ * @internal
46
+ */
47
+ class FrameManager extends EventEmitter_js_1.EventEmitter {
48
+ constructor(client, page, ignoreHTTPSErrors, timeoutSettings) {
49
+ super();
50
+ this._frames = new Map();
51
+ this._contextIdToContext = new Map();
52
+ this._isolatedWorlds = new Set();
53
+ this._client = client;
54
+ this._page = page;
55
+ this._networkManager = new NetworkManager_js_1.NetworkManager(client, ignoreHTTPSErrors, this);
56
+ this._timeoutSettings = timeoutSettings;
57
+ this._client.on('Page.frameAttached', (event) => this._onFrameAttached(event.frameId, event.parentFrameId));
58
+ this._client.on('Page.frameNavigated', (event) => this._onFrameNavigated(event.frame));
59
+ this._client.on('Page.navigatedWithinDocument', (event) => this._onFrameNavigatedWithinDocument(event.frameId, event.url));
60
+ this._client.on('Page.frameDetached', (event) => this._onFrameDetached(event.frameId));
61
+ this._client.on('Page.frameStoppedLoading', (event) => this._onFrameStoppedLoading(event.frameId));
62
+ this._client.on('Runtime.executionContextCreated', (event) => this._onExecutionContextCreated(event.context));
63
+ this._client.on('Runtime.executionContextDestroyed', (event) => this._onExecutionContextDestroyed(event.executionContextId));
64
+ this._client.on('Runtime.executionContextsCleared', () => this._onExecutionContextsCleared());
65
+ this._client.on('Page.lifecycleEvent', (event) => this._onLifecycleEvent(event));
66
+ this._client.on('Target.attachedToTarget', async (event) => this._onFrameMoved(event));
67
+ }
68
+ async initialize() {
69
+ const result = await Promise.all([
70
+ this._client.send('Page.enable'),
71
+ this._client.send('Page.getFrameTree'),
72
+ ]);
73
+ const { frameTree } = result[1];
74
+ this._handleFrameTree(frameTree);
75
+ await Promise.all([
76
+ this._client.send('Page.setLifecycleEventsEnabled', { enabled: true }),
77
+ this._client
78
+ .send('Runtime.enable')
79
+ .then(() => this._ensureIsolatedWorld(UTILITY_WORLD_NAME)),
80
+ this._networkManager.initialize(),
81
+ ]);
82
+ }
83
+ networkManager() {
84
+ return this._networkManager;
85
+ }
86
+ async navigateFrame(frame, url, options = {}) {
87
+ assertNoLegacyNavigationOptions(options);
88
+ const { referer = this._networkManager.extraHTTPHeaders()['referer'], waitUntil = ['load'], timeout = this._timeoutSettings.navigationTimeout(), } = options;
89
+ const watcher = new LifecycleWatcher_js_1.LifecycleWatcher(this, frame, waitUntil, timeout);
90
+ let ensureNewDocumentNavigation = false;
91
+ let error = await Promise.race([
92
+ navigate(this._client, url, referer, frame._id),
93
+ watcher.timeoutOrTerminationPromise(),
94
+ ]);
95
+ if (!error) {
96
+ error = await Promise.race([
97
+ watcher.timeoutOrTerminationPromise(),
98
+ ensureNewDocumentNavigation
99
+ ? watcher.newDocumentNavigationPromise()
100
+ : watcher.sameDocumentNavigationPromise(),
101
+ ]);
102
+ }
103
+ watcher.dispose();
104
+ if (error)
105
+ throw error;
106
+ return watcher.navigationResponse();
107
+ async function navigate(client, url, referrer, frameId) {
108
+ try {
109
+ const response = await client.send('Page.navigate', {
110
+ url,
111
+ referrer,
112
+ frameId,
113
+ });
114
+ ensureNewDocumentNavigation = !!response.loaderId;
115
+ return response.errorText
116
+ ? new Error(`${response.errorText} at ${url}`)
117
+ : null;
118
+ }
119
+ catch (error) {
120
+ return error;
121
+ }
122
+ }
123
+ }
124
+ async waitForFrameNavigation(frame, options = {}) {
125
+ assertNoLegacyNavigationOptions(options);
126
+ const { waitUntil = ['load'], timeout = this._timeoutSettings.navigationTimeout(), } = options;
127
+ const watcher = new LifecycleWatcher_js_1.LifecycleWatcher(this, frame, waitUntil, timeout);
128
+ const error = await Promise.race([
129
+ watcher.timeoutOrTerminationPromise(),
130
+ watcher.sameDocumentNavigationPromise(),
131
+ watcher.newDocumentNavigationPromise(),
132
+ ]);
133
+ watcher.dispose();
134
+ if (error)
135
+ throw error;
136
+ return watcher.navigationResponse();
137
+ }
138
+ async _onFrameMoved(event) {
139
+ if (event.targetInfo.type !== 'iframe') {
140
+ return;
141
+ }
142
+ // TODO(sadym): Remove debug message once proper OOPIF support is
143
+ // implemented: https://github.com/puppeteer/puppeteer/issues/2548
144
+ Debug_js_1.debug('puppeteer:frame')(`The frame '${event.targetInfo.targetId}' moved to another session. ` +
145
+ `Out-of-process iframes (OOPIF) are not supported by Puppeteer yet. ` +
146
+ `https://github.com/puppeteer/puppeteer/issues/2548`);
147
+ }
148
+ _onLifecycleEvent(event) {
149
+ const frame = this._frames.get(event.frameId);
150
+ if (!frame)
151
+ return;
152
+ frame._onLifecycleEvent(event.loaderId, event.name);
153
+ this.emit(exports.FrameManagerEmittedEvents.LifecycleEvent, frame);
154
+ }
155
+ _onFrameStoppedLoading(frameId) {
156
+ const frame = this._frames.get(frameId);
157
+ if (!frame)
158
+ return;
159
+ frame._onLoadingStopped();
160
+ this.emit(exports.FrameManagerEmittedEvents.LifecycleEvent, frame);
161
+ }
162
+ _handleFrameTree(frameTree) {
163
+ if (frameTree.frame.parentId)
164
+ this._onFrameAttached(frameTree.frame.id, frameTree.frame.parentId);
165
+ this._onFrameNavigated(frameTree.frame);
166
+ if (!frameTree.childFrames)
167
+ return;
168
+ for (const child of frameTree.childFrames)
169
+ this._handleFrameTree(child);
170
+ }
171
+ page() {
172
+ return this._page;
173
+ }
174
+ mainFrame() {
175
+ return this._mainFrame;
176
+ }
177
+ frames() {
178
+ return Array.from(this._frames.values());
179
+ }
180
+ frame(frameId) {
181
+ return this._frames.get(frameId) || null;
182
+ }
183
+ _onFrameAttached(frameId, parentFrameId) {
184
+ if (this._frames.has(frameId))
185
+ return;
186
+ assert_js_1.assert(parentFrameId);
187
+ const parentFrame = this._frames.get(parentFrameId);
188
+ const frame = new Frame(this, parentFrame, frameId);
189
+ this._frames.set(frame._id, frame);
190
+ this.emit(exports.FrameManagerEmittedEvents.FrameAttached, frame);
191
+ }
192
+ _onFrameNavigated(framePayload) {
193
+ const isMainFrame = !framePayload.parentId;
194
+ let frame = isMainFrame
195
+ ? this._mainFrame
196
+ : this._frames.get(framePayload.id);
197
+ assert_js_1.assert(isMainFrame || frame, 'We either navigate top level or have old version of the navigated frame');
198
+ // Detach all child frames first.
199
+ if (frame) {
200
+ for (const child of frame.childFrames())
201
+ this._removeFramesRecursively(child);
202
+ }
203
+ // Update or create main frame.
204
+ if (isMainFrame) {
205
+ if (frame) {
206
+ // Update frame id to retain frame identity on cross-process navigation.
207
+ this._frames.delete(frame._id);
208
+ frame._id = framePayload.id;
209
+ }
210
+ else {
211
+ // Initial main frame navigation.
212
+ frame = new Frame(this, null, framePayload.id);
213
+ }
214
+ this._frames.set(framePayload.id, frame);
215
+ this._mainFrame = frame;
216
+ }
217
+ // Update frame payload.
218
+ frame._navigated(framePayload);
219
+ this.emit(exports.FrameManagerEmittedEvents.FrameNavigated, frame);
220
+ }
221
+ async _ensureIsolatedWorld(name) {
222
+ if (this._isolatedWorlds.has(name))
223
+ return;
224
+ this._isolatedWorlds.add(name);
225
+ await this._client.send('Page.addScriptToEvaluateOnNewDocument', {
226
+ source: `//# sourceURL=${ExecutionContext_js_1.EVALUATION_SCRIPT_URL}`,
227
+ worldName: name,
228
+ });
229
+ // Frames might be removed before we send this.
230
+ await Promise.all(this.frames().map((frame) => this._client
231
+ .send('Page.createIsolatedWorld', {
232
+ frameId: frame._id,
233
+ worldName: name,
234
+ grantUniveralAccess: true,
235
+ })
236
+ .catch(helper_js_1.debugError)));
237
+ }
238
+ _onFrameNavigatedWithinDocument(frameId, url) {
239
+ const frame = this._frames.get(frameId);
240
+ if (!frame)
241
+ return;
242
+ frame._navigatedWithinDocument(url);
243
+ this.emit(exports.FrameManagerEmittedEvents.FrameNavigatedWithinDocument, frame);
244
+ this.emit(exports.FrameManagerEmittedEvents.FrameNavigated, frame);
245
+ }
246
+ _onFrameDetached(frameId) {
247
+ const frame = this._frames.get(frameId);
248
+ if (frame)
249
+ this._removeFramesRecursively(frame);
250
+ }
251
+ _onExecutionContextCreated(contextPayload) {
252
+ const auxData = contextPayload.auxData;
253
+ const frameId = auxData ? auxData.frameId : null;
254
+ const frame = this._frames.get(frameId) || null;
255
+ let world = null;
256
+ if (frame) {
257
+ if (contextPayload.auxData && !!contextPayload.auxData['isDefault']) {
258
+ world = frame._mainWorld;
259
+ }
260
+ else if (contextPayload.name === UTILITY_WORLD_NAME &&
261
+ !frame._secondaryWorld._hasContext()) {
262
+ // In case of multiple sessions to the same target, there's a race between
263
+ // connections so we might end up creating multiple isolated worlds.
264
+ // We can use either.
265
+ world = frame._secondaryWorld;
266
+ }
267
+ }
268
+ const context = new ExecutionContext_js_1.ExecutionContext(this._client, contextPayload, world);
269
+ if (world)
270
+ world._setContext(context);
271
+ this._contextIdToContext.set(contextPayload.id, context);
272
+ }
273
+ _onExecutionContextDestroyed(executionContextId) {
274
+ const context = this._contextIdToContext.get(executionContextId);
275
+ if (!context)
276
+ return;
277
+ this._contextIdToContext.delete(executionContextId);
278
+ if (context._world)
279
+ context._world._setContext(null);
280
+ }
281
+ _onExecutionContextsCleared() {
282
+ for (const context of this._contextIdToContext.values()) {
283
+ if (context._world)
284
+ context._world._setContext(null);
285
+ }
286
+ this._contextIdToContext.clear();
287
+ }
288
+ executionContextById(contextId) {
289
+ const context = this._contextIdToContext.get(contextId);
290
+ assert_js_1.assert(context, 'INTERNAL ERROR: missing context with id = ' + contextId);
291
+ return context;
292
+ }
293
+ _removeFramesRecursively(frame) {
294
+ for (const child of frame.childFrames())
295
+ this._removeFramesRecursively(child);
296
+ frame._detach();
297
+ this._frames.delete(frame._id);
298
+ this.emit(exports.FrameManagerEmittedEvents.FrameDetached, frame);
299
+ }
300
+ }
301
+ exports.FrameManager = FrameManager;
302
+ /**
303
+ * At every point of time, page exposes its current frame tree via the
304
+ * {@link Page.mainFrame | page.mainFrame} and
305
+ * {@link Frame.childFrames | frame.childFrames} methods.
306
+ *
307
+ * @remarks
308
+ *
309
+ * `Frame` object lifecycles are controlled by three events that are all
310
+ * dispatched on the page object:
311
+ *
312
+ * - {@link PageEmittedEvents.FrameAttached}
313
+ *
314
+ * - {@link PageEmittedEvents.FrameNavigated}
315
+ *
316
+ * - {@link PageEmittedEvents.FrameDetached}
317
+ *
318
+ * @Example
319
+ * An example of dumping frame tree:
320
+ *
321
+ * ```js
322
+ * const puppeteer = require('puppeteer');
323
+ *
324
+ * (async () => {
325
+ * const browser = await puppeteer.launch();
326
+ * const page = await browser.newPage();
327
+ * await page.goto('https://www.google.com/chrome/browser/canary.html');
328
+ * dumpFrameTree(page.mainFrame(), '');
329
+ * await browser.close();
330
+ *
331
+ * function dumpFrameTree(frame, indent) {
332
+ * console.log(indent + frame.url());
333
+ * for (const child of frame.childFrames()) {
334
+ * dumpFrameTree(child, indent + ' ');
335
+ * }
336
+ * }
337
+ * })();
338
+ * ```
339
+ *
340
+ * @Example
341
+ * An example of getting text from an iframe element:
342
+ *
343
+ * ```js
344
+ * const frame = page.frames().find(frame => frame.name() === 'myframe');
345
+ * const text = await frame.$eval('.selector', element => element.textContent);
346
+ * console.log(text);
347
+ * ```
348
+ *
349
+ * @public
350
+ */
351
+ class Frame {
352
+ /**
353
+ * @internal
354
+ */
355
+ constructor(frameManager, parentFrame, frameId) {
356
+ this._url = '';
357
+ this._detached = false;
358
+ /**
359
+ * @internal
360
+ */
361
+ this._loaderId = '';
362
+ /**
363
+ * @internal
364
+ */
365
+ this._lifecycleEvents = new Set();
366
+ this._frameManager = frameManager;
367
+ this._parentFrame = parentFrame;
368
+ this._url = '';
369
+ this._id = frameId;
370
+ this._detached = false;
371
+ this._loaderId = '';
372
+ this._mainWorld = new DOMWorld_js_1.DOMWorld(frameManager, this, frameManager._timeoutSettings);
373
+ this._secondaryWorld = new DOMWorld_js_1.DOMWorld(frameManager, this, frameManager._timeoutSettings);
374
+ this._childFrames = new Set();
375
+ if (this._parentFrame)
376
+ this._parentFrame._childFrames.add(this);
377
+ }
378
+ /**
379
+ * @remarks
380
+ *
381
+ * `frame.goto` will throw an error if:
382
+ * - there's an SSL error (e.g. in case of self-signed certificates).
383
+ *
384
+ * - target URL is invalid.
385
+ *
386
+ * - the `timeout` is exceeded during navigation.
387
+ *
388
+ * - the remote server does not respond or is unreachable.
389
+ *
390
+ * - the main resource failed to load.
391
+ *
392
+ * `frame.goto` will not throw an error when any valid HTTP status code is
393
+ * returned by the remote server, including 404 "Not Found" and 500 "Internal
394
+ * Server Error". The status code for such responses can be retrieved by
395
+ * calling {@link HTTPResponse.status}.
396
+ *
397
+ * NOTE: `frame.goto` either throws an error or returns a main resource
398
+ * response. The only exceptions are navigation to `about:blank` or
399
+ * navigation to the same URL with a different hash, which would succeed and
400
+ * return `null`.
401
+ *
402
+ * NOTE: Headless mode doesn't support navigation to a PDF document. See
403
+ * the {@link https://bugs.chromium.org/p/chromium/issues/detail?id=761295 | upstream
404
+ * issue}.
405
+ *
406
+ * @param url - the URL to navigate the frame to. This should include the
407
+ * scheme, e.g. `https://`.
408
+ * @param options - navigation options. `waitUntil` is useful to define when
409
+ * the navigation should be considered successful - see the docs for
410
+ * {@link PuppeteerLifeCycleEvent} for more details.
411
+ *
412
+ * @returns A promise which resolves to the main resource response. In case of
413
+ * multiple redirects, the navigation will resolve with the response of the
414
+ * last redirect.
415
+ */
416
+ async goto(url, options = {}) {
417
+ return await this._frameManager.navigateFrame(this, url, options);
418
+ }
419
+ /**
420
+ * @remarks
421
+ *
422
+ * This resolves when the frame navigates to a new URL. It is useful for when
423
+ * you run code which will indirectly cause the frame to navigate. Consider
424
+ * this example:
425
+ *
426
+ * ```js
427
+ * const [response] = await Promise.all([
428
+ * // The navigation promise resolves after navigation has finished
429
+ * frame.waitForNavigation(),
430
+ * // Clicking the link will indirectly cause a navigation
431
+ * frame.click('a.my-link'),
432
+ * ]);
433
+ * ```
434
+ *
435
+ * Usage of the {@link https://developer.mozilla.org/en-US/docs/Web/API/History_API | History API} to change the URL is considered a navigation.
436
+ *
437
+ * @param options - options to configure when the navigation is consided finished.
438
+ * @returns a promise that resolves when the frame navigates to a new URL.
439
+ */
440
+ async waitForNavigation(options = {}) {
441
+ return await this._frameManager.waitForFrameNavigation(this, options);
442
+ }
443
+ /**
444
+ * @returns a promise that resolves to the frame's default execution context.
445
+ */
446
+ executionContext() {
447
+ return this._mainWorld.executionContext();
448
+ }
449
+ /**
450
+ * @remarks
451
+ *
452
+ * The only difference between {@link Frame.evaluate} and
453
+ * `frame.evaluateHandle` is that `evaluateHandle` will return the value
454
+ * wrapped in an in-page object.
455
+ *
456
+ * This method behaves identically to {@link Page.evaluateHandle} except it's
457
+ * run within the context of the `frame`, rather than the entire page.
458
+ *
459
+ * @param pageFunction - a function that is run within the frame
460
+ * @param args - arguments to be passed to the pageFunction
461
+ */
462
+ async evaluateHandle(pageFunction, ...args) {
463
+ return this._mainWorld.evaluateHandle(pageFunction, ...args);
464
+ }
465
+ /**
466
+ * @remarks
467
+ *
468
+ * This method behaves identically to {@link Page.evaluate} except it's run
469
+ * within the context of the `frame`, rather than the entire page.
470
+ *
471
+ * @param pageFunction - a function that is run within the frame
472
+ * @param args - arguments to be passed to the pageFunction
473
+ */
474
+ async evaluate(pageFunction, ...args) {
475
+ return this._mainWorld.evaluate(pageFunction, ...args);
476
+ }
477
+ /**
478
+ * This method queries the frame for the given selector.
479
+ *
480
+ * @param selector - a selector to query for.
481
+ * @returns A promise which resolves to an `ElementHandle` pointing at the
482
+ * element, or `null` if it was not found.
483
+ */
484
+ async $(selector) {
485
+ return this._mainWorld.$(selector);
486
+ }
487
+ /**
488
+ * This method evaluates the given XPath expression and returns the results.
489
+ *
490
+ * @param expression - the XPath expression to evaluate.
491
+ */
492
+ async $x(expression) {
493
+ return this._mainWorld.$x(expression);
494
+ }
495
+ /**
496
+ * @remarks
497
+ *
498
+ * This method runs `document.querySelector` within
499
+ * the frame and passes it as the first argument to `pageFunction`.
500
+ *
501
+ * If `pageFunction` returns a Promise, then `frame.$eval` would wait for
502
+ * the promise to resolve and return its value.
503
+ *
504
+ * @example
505
+ *
506
+ * ```js
507
+ * const searchValue = await frame.$eval('#search', el => el.value);
508
+ * ```
509
+ *
510
+ * @param selector - the selector to query for
511
+ * @param pageFunction - the function to be evaluated in the frame's context
512
+ * @param args - additional arguments to pass to `pageFuncton`
513
+ */
514
+ async $eval(selector, pageFunction, ...args) {
515
+ return this._mainWorld.$eval(selector, pageFunction, ...args);
516
+ }
517
+ /**
518
+ * @remarks
519
+ *
520
+ * This method runs `Array.from(document.querySelectorAll(selector))` within
521
+ * the frame and passes it as the first argument to `pageFunction`.
522
+ *
523
+ * If `pageFunction` returns a Promise, then `frame.$$eval` would wait for
524
+ * the promise to resolve and return its value.
525
+ *
526
+ * @example
527
+ *
528
+ * ```js
529
+ * const divsCounts = await frame.$$eval('div', divs => divs.length);
530
+ * ```
531
+ *
532
+ * @param selector - the selector to query for
533
+ * @param pageFunction - the function to be evaluated in the frame's context
534
+ * @param args - additional arguments to pass to `pageFuncton`
535
+ */
536
+ async $$eval(selector, pageFunction, ...args) {
537
+ return this._mainWorld.$$eval(selector, pageFunction, ...args);
538
+ }
539
+ /**
540
+ * This runs `document.querySelectorAll` in the frame and returns the result.
541
+ *
542
+ * @param selector - a selector to search for
543
+ * @returns An array of element handles pointing to the found frame elements.
544
+ */
545
+ async $$(selector) {
546
+ return this._mainWorld.$$(selector);
547
+ }
548
+ /**
549
+ * @returns the full HTML contents of the frame, including the doctype.
550
+ */
551
+ async content() {
552
+ return this._secondaryWorld.content();
553
+ }
554
+ /**
555
+ * Set the content of the frame.
556
+ *
557
+ * @param html - HTML markup to assign to the page.
558
+ * @param options - options to configure how long before timing out and at
559
+ * what point to consider the content setting successful.
560
+ */
561
+ async setContent(html, options = {}) {
562
+ return this._secondaryWorld.setContent(html, options);
563
+ }
564
+ /**
565
+ * @remarks
566
+ *
567
+ * If the name is empty, it returns the `id` attribute instead.
568
+ *
569
+ * Note: This value is calculated once when the frame is created, and will not
570
+ * update if the attribute is changed later.
571
+ *
572
+ * @returns the frame's `name` attribute as specified in the tag.
573
+ */
574
+ name() {
575
+ return this._name || '';
576
+ }
577
+ /**
578
+ * @returns the frame's URL.
579
+ */
580
+ url() {
581
+ return this._url;
582
+ }
583
+ /**
584
+ * @returns the parent `Frame`, if any. Detached and main frames return `null`.
585
+ */
586
+ parentFrame() {
587
+ return this._parentFrame;
588
+ }
589
+ /**
590
+ * @returns an array of child frames.
591
+ */
592
+ childFrames() {
593
+ return Array.from(this._childFrames);
594
+ }
595
+ /**
596
+ * @returns `true` if the frame has been detached, or `false` otherwise.
597
+ */
598
+ isDetached() {
599
+ return this._detached;
600
+ }
601
+ /**
602
+ * Adds a `<script>` tag into the page with the desired url or content.
603
+ *
604
+ * @param options - configure the script to add to the page.
605
+ *
606
+ * @returns a promise that resolves to the added tag when the script's
607
+ * `onload` event fires or when the script content was injected into the
608
+ * frame.
609
+ */
610
+ async addScriptTag(options) {
611
+ return this._mainWorld.addScriptTag(options);
612
+ }
613
+ /**
614
+ * Adds a `<link rel="stylesheet">` tag into the page with the desired url or
615
+ * a `<style type="text/css">` tag with the content.
616
+ *
617
+ * @param options - configure the CSS to add to the page.
618
+ *
619
+ * @returns a promise that resolves to the added tag when the stylesheets's
620
+ * `onload` event fires or when the CSS content was injected into the
621
+ * frame.
622
+ */
623
+ async addStyleTag(options) {
624
+ return this._mainWorld.addStyleTag(options);
625
+ }
626
+ /**
627
+ *
628
+ * This method clicks the first element found that matches `selector`.
629
+ *
630
+ * @remarks
631
+ *
632
+ * This method scrolls the element into view if needed, and then uses
633
+ * {@link Page.mouse} to click in the center of the element. If there's no
634
+ * element matching `selector`, the method throws an error.
635
+ *
636
+ * Bear in mind that if `click()` triggers a navigation event and there's a
637
+ * separate `page.waitForNavigation()` promise to be resolved, you may end up
638
+ * with a race condition that yields unexpected results. The correct pattern
639
+ * for click and wait for navigation is the following:
640
+ *
641
+ * ```javascript
642
+ * const [response] = await Promise.all([
643
+ * page.waitForNavigation(waitOptions),
644
+ * frame.click(selector, clickOptions),
645
+ * ]);
646
+ * ```
647
+ * @param selector - the selector to search for to click. If there are
648
+ * multiple elements, the first will be clicked.
649
+ */
650
+ async click(selector, options = {}) {
651
+ return this._secondaryWorld.click(selector, options);
652
+ }
653
+ /**
654
+ * This method fetches an element with `selector` and focuses it.
655
+ *
656
+ * @remarks
657
+ * If there's no element matching `selector`, the method throws an error.
658
+ *
659
+ * @param selector - the selector for the element to focus. If there are
660
+ * multiple elements, the first will be focused.
661
+ */
662
+ async focus(selector) {
663
+ return this._secondaryWorld.focus(selector);
664
+ }
665
+ /**
666
+ * This method fetches an element with `selector`, scrolls it into view if
667
+ * needed, and then uses {@link Page.mouse} to hover over the center of the
668
+ * element.
669
+ *
670
+ * @remarks
671
+ * If there's no element matching `selector`, the method throws an
672
+ *
673
+ * @param selector - the selector for the element to hover. If there are
674
+ * multiple elements, the first will be hovered.
675
+ */
676
+ async hover(selector) {
677
+ return this._secondaryWorld.hover(selector);
678
+ }
679
+ /**
680
+ * Triggers a `change` and `input` event once all the provided options have
681
+ * been selected.
682
+ *
683
+ * @remarks
684
+ *
685
+ * If there's no `<select>` element matching `selector`, the
686
+ * method throws an error.
687
+ *
688
+ * @example
689
+ * ```js
690
+ * frame.select('select#colors', 'blue'); // single selection
691
+ * frame.select('select#colors', 'red', 'green', 'blue'); // multiple selections
692
+ * ```
693
+ *
694
+ * @param selector - a selector to query the frame for
695
+ * @param values - an array of values to select. If the `<select>` has the
696
+ * `multiple` attribute, all values are considered, otherwise only the first
697
+ * one is taken into account.
698
+ * @returns the list of values that were successfully selected.
699
+ */
700
+ select(selector, ...values) {
701
+ return this._secondaryWorld.select(selector, ...values);
702
+ }
703
+ /**
704
+ * This method fetches an element with `selector`, scrolls it into view if
705
+ * needed, and then uses {@link Page.touchscreen} to tap in the center of the
706
+ * element.
707
+ *
708
+ * @remarks
709
+ *
710
+ * If there's no element matching `selector`, the method throws an error.
711
+ *
712
+ * @param selector - the selector to tap.
713
+ * @returns a promise that resolves when the element has been tapped.
714
+ */
715
+ async tap(selector) {
716
+ return this._secondaryWorld.tap(selector);
717
+ }
718
+ /**
719
+ * Sends a `keydown`, `keypress`/`input`, and `keyup` event for each character
720
+ * in the text.
721
+ *
722
+ * @remarks
723
+ * To press a special key, like `Control` or `ArrowDown`, use
724
+ * {@link Keyboard.press}.
725
+ *
726
+ * @example
727
+ * ```js
728
+ * await frame.type('#mytextarea', 'Hello'); // Types instantly
729
+ * await frame.type('#mytextarea', 'World', {delay: 100}); // Types slower, like a user
730
+ * ```
731
+ *
732
+ * @param selector - the selector for the element to type into. If there are
733
+ * multiple the first will be used.
734
+ * @param text - text to type into the element
735
+ * @param options - takes one option, `delay`, which sets the time to wait
736
+ * between key presses in milliseconds. Defaults to `0`.
737
+ *
738
+ * @returns a promise that resolves when the typing is complete.
739
+ */
740
+ async type(selector, text, options) {
741
+ return this._mainWorld.type(selector, text, options);
742
+ }
743
+ /**
744
+ * @remarks
745
+ *
746
+ * This method behaves differently depending on the first parameter. If it's a
747
+ * `string`, it will be treated as a `selector` or `xpath` (if the string
748
+ * starts with `//`). This method then is a shortcut for
749
+ * {@link Frame.waitForSelector} or {@link Frame.waitForXPath}.
750
+ *
751
+ * If the first argument is a function this method is a shortcut for
752
+ * {@link Frame.waitForFunction}.
753
+ *
754
+ * If the first argument is a `number`, it's treated as a timeout in
755
+ * milliseconds and the method returns a promise which resolves after the
756
+ * timeout.
757
+ *
758
+ * @param selectorOrFunctionOrTimeout - a selector, predicate or timeout to
759
+ * wait for.
760
+ * @param options - optional waiting parameters.
761
+ * @param args - arguments to pass to `pageFunction`.
762
+ *
763
+ * @deprecated Don't use this method directly. Instead use the more explicit
764
+ * methods available: {@link Frame.waitForSelector},
765
+ * {@link Frame.waitForXPath}, {@link Frame.waitForFunction} or
766
+ * {@link Frame.waitForTimeout}.
767
+ */
768
+ waitFor(selectorOrFunctionOrTimeout, options = {}, ...args) {
769
+ console.warn('waitFor is deprecated and will be removed in a future release. See https://github.com/puppeteer/puppeteer/issues/6214 for details and how to migrate your code.');
770
+ if (helper_js_1.helper.isString(selectorOrFunctionOrTimeout)) {
771
+ const string = selectorOrFunctionOrTimeout;
772
+ if (xPathPattern.test(string))
773
+ return this.waitForXPath(string, options);
774
+ return this.waitForSelector(string, options);
775
+ }
776
+ if (helper_js_1.helper.isNumber(selectorOrFunctionOrTimeout))
777
+ return new Promise((fulfill) => setTimeout(fulfill, selectorOrFunctionOrTimeout));
778
+ if (typeof selectorOrFunctionOrTimeout === 'function')
779
+ return this.waitForFunction(selectorOrFunctionOrTimeout, options, ...args);
780
+ return Promise.reject(new Error('Unsupported target type: ' + typeof selectorOrFunctionOrTimeout));
781
+ }
782
+ /**
783
+ * Causes your script to wait for the given number of milliseconds.
784
+ *
785
+ * @remarks
786
+ * It's generally recommended to not wait for a number of seconds, but instead
787
+ * use {@link Frame.waitForSelector}, {@link Frame.waitForXPath} or
788
+ * {@link Frame.waitForFunction} to wait for exactly the conditions you want.
789
+ *
790
+ * @example
791
+ *
792
+ * Wait for 1 second:
793
+ *
794
+ * ```
795
+ * await frame.waitForTimeout(1000);
796
+ * ```
797
+ *
798
+ * @param milliseconds - the number of milliseconds to wait.
799
+ */
800
+ waitForTimeout(milliseconds) {
801
+ return new Promise((resolve) => {
802
+ setTimeout(resolve, milliseconds);
803
+ });
804
+ }
805
+ /**
806
+ * @remarks
807
+ *
808
+ *
809
+ * Wait for the `selector` to appear in page. If at the moment of calling the
810
+ * method the `selector` already exists, the method will return immediately.
811
+ * If the selector doesn't appear after the `timeout` milliseconds of waiting,
812
+ * the function will throw.
813
+ *
814
+ * This method works across navigations.
815
+ *
816
+ * @example
817
+ * ```js
818
+ * const puppeteer = require('puppeteer');
819
+ *
820
+ * (async () => {
821
+ * const browser = await puppeteer.launch();
822
+ * const page = await browser.newPage();
823
+ * let currentURL;
824
+ * page.mainFrame()
825
+ * .waitForSelector('img')
826
+ * .then(() => console.log('First URL with image: ' + currentURL));
827
+ *
828
+ * for (currentURL of ['https://example.com', 'https://google.com', 'https://bbc.com']) {
829
+ * await page.goto(currentURL);
830
+ * }
831
+ * await browser.close();
832
+ * })();
833
+ * ```
834
+ * @param selector - the selector to wait for.
835
+ * @param options - options to define if the element should be visible and how
836
+ * long to wait before timing out.
837
+ * @returns a promise which resolves when an element matching the selector
838
+ * string is added to the DOM.
839
+ */
840
+ async waitForSelector(selector, options = {}) {
841
+ const handle = await this._secondaryWorld.waitForSelector(selector, options);
842
+ if (!handle)
843
+ return null;
844
+ const mainExecutionContext = await this._mainWorld.executionContext();
845
+ const result = await mainExecutionContext._adoptElementHandle(handle);
846
+ await handle.dispose();
847
+ return result;
848
+ }
849
+ /**
850
+ * @remarks
851
+ * Wait for the `xpath` to appear in page. If at the moment of calling the
852
+ * method the `xpath` already exists, the method will return immediately. If
853
+ * the xpath doesn't appear after the `timeout` milliseconds of waiting, the
854
+ * function will throw.
855
+ *
856
+ * For a code example, see the example for {@link Frame.waitForSelector}. That
857
+ * function behaves identically other than taking a CSS selector rather than
858
+ * an XPath.
859
+ *
860
+ * @param xpath - the XPath expression to wait for.
861
+ * @param options - options to configure the visiblity of the element and how
862
+ * long to wait before timing out.
863
+ */
864
+ async waitForXPath(xpath, options = {}) {
865
+ const handle = await this._secondaryWorld.waitForXPath(xpath, options);
866
+ if (!handle)
867
+ return null;
868
+ const mainExecutionContext = await this._mainWorld.executionContext();
869
+ const result = await mainExecutionContext._adoptElementHandle(handle);
870
+ await handle.dispose();
871
+ return result;
872
+ }
873
+ /**
874
+ * @remarks
875
+ *
876
+ * @example
877
+ *
878
+ * The `waitForFunction` can be used to observe viewport size change:
879
+ * ```js
880
+ * const puppeteer = require('puppeteer');
881
+ *
882
+ * (async () => {
883
+ * . const browser = await puppeteer.launch();
884
+ * . const page = await browser.newPage();
885
+ * . const watchDog = page.mainFrame().waitForFunction('window.innerWidth < 100');
886
+ * . page.setViewport({width: 50, height: 50});
887
+ * . await watchDog;
888
+ * . await browser.close();
889
+ * })();
890
+ * ```
891
+ *
892
+ * To pass arguments from Node.js to the predicate of `page.waitForFunction` function:
893
+ *
894
+ * ```js
895
+ * const selector = '.foo';
896
+ * await frame.waitForFunction(
897
+ * selector => !!document.querySelector(selector),
898
+ * {}, // empty options object
899
+ * selector
900
+ *);
901
+ * ```
902
+ *
903
+ * @param pageFunction - the function to evaluate in the frame context.
904
+ * @param options - options to configure the polling method and timeout.
905
+ * @param args - arguments to pass to the `pageFunction`.
906
+ * @returns the promise which resolve when the `pageFunction` returns a truthy value.
907
+ */
908
+ waitForFunction(pageFunction, options = {}, ...args) {
909
+ return this._mainWorld.waitForFunction(pageFunction, options, ...args);
910
+ }
911
+ /**
912
+ * @returns the frame's title.
913
+ */
914
+ async title() {
915
+ return this._secondaryWorld.title();
916
+ }
917
+ /**
918
+ * @internal
919
+ */
920
+ _navigated(framePayload) {
921
+ this._name = framePayload.name;
922
+ this._url = `${framePayload.url}${framePayload.urlFragment || ''}`;
923
+ }
924
+ /**
925
+ * @internal
926
+ */
927
+ _navigatedWithinDocument(url) {
928
+ this._url = url;
929
+ }
930
+ /**
931
+ * @internal
932
+ */
933
+ _onLifecycleEvent(loaderId, name) {
934
+ if (name === 'init') {
935
+ this._loaderId = loaderId;
936
+ this._lifecycleEvents.clear();
937
+ }
938
+ this._lifecycleEvents.add(name);
939
+ }
940
+ /**
941
+ * @internal
942
+ */
943
+ _onLoadingStopped() {
944
+ this._lifecycleEvents.add('DOMContentLoaded');
945
+ this._lifecycleEvents.add('load');
946
+ }
947
+ /**
948
+ * @internal
949
+ */
950
+ _detach() {
951
+ this._detached = true;
952
+ this._mainWorld._detach();
953
+ this._secondaryWorld._detach();
954
+ if (this._parentFrame)
955
+ this._parentFrame._childFrames.delete(this);
956
+ this._parentFrame = null;
957
+ }
958
+ }
959
+ exports.Frame = Frame;
960
+ function assertNoLegacyNavigationOptions(options) {
961
+ assert_js_1.assert(options['networkIdleTimeout'] === undefined, 'ERROR: networkIdleTimeout option is no longer supported.');
962
+ assert_js_1.assert(options['networkIdleInflight'] === undefined, 'ERROR: networkIdleInflight option is no longer supported.');
963
+ assert_js_1.assert(options.waitUntil !== 'networkidle', 'ERROR: "networkidle" option is no longer supported. Use "networkidle2" instead');
964
+ }
965
+ //# sourceMappingURL=FrameManager.js.map