puppeteer-ruby 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +71 -0
  3. data/.github/stale.yml +16 -0
  4. data/.gitignore +19 -0
  5. data/.rspec +3 -0
  6. data/.rubocop.yml +302 -0
  7. data/.travis.yml +7 -0
  8. data/Dockerfile +6 -0
  9. data/Gemfile +6 -0
  10. data/README.md +54 -0
  11. data/Rakefile +1 -0
  12. data/bin/console +11 -0
  13. data/bin/setup +8 -0
  14. data/docker-compose.yml +15 -0
  15. data/docs/Puppeteer.html +2020 -0
  16. data/docs/Puppeteer/AsyncAwaitBehavior.html +105 -0
  17. data/docs/Puppeteer/Browser.html +2148 -0
  18. data/docs/Puppeteer/BrowserContext.html +809 -0
  19. data/docs/Puppeteer/BrowserFetcher.html +214 -0
  20. data/docs/Puppeteer/BrowserRunner.html +914 -0
  21. data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +477 -0
  22. data/docs/Puppeteer/CDPSession.html +813 -0
  23. data/docs/Puppeteer/CDPSession/Error.html +124 -0
  24. data/docs/Puppeteer/ConcurrentRubyUtils.html +430 -0
  25. data/docs/Puppeteer/Connection.html +960 -0
  26. data/docs/Puppeteer/Connection/MessageCallback.html +434 -0
  27. data/docs/Puppeteer/Connection/ProtocolError.html +216 -0
  28. data/docs/Puppeteer/Connection/RequestDebugPrinter.html +217 -0
  29. data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +244 -0
  30. data/docs/Puppeteer/ConsoleMessage.html +565 -0
  31. data/docs/Puppeteer/ConsoleMessage/Location.html +433 -0
  32. data/docs/Puppeteer/DOMWorld.html +2219 -0
  33. data/docs/Puppeteer/DOMWorld/DetachedError.html +124 -0
  34. data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +124 -0
  35. data/docs/Puppeteer/DebugPrint.html +233 -0
  36. data/docs/Puppeteer/Device.html +470 -0
  37. data/docs/Puppeteer/Devices.html +139 -0
  38. data/docs/Puppeteer/ElementHandle.html +2542 -0
  39. data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +206 -0
  40. data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +206 -0
  41. data/docs/Puppeteer/ElementHandle/Point.html +492 -0
  42. data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +124 -0
  43. data/docs/Puppeteer/EmulationManager.html +454 -0
  44. data/docs/Puppeteer/EventCallbackable.html +433 -0
  45. data/docs/Puppeteer/EventCallbackable/EventListeners.html +435 -0
  46. data/docs/Puppeteer/ExecutionContext.html +998 -0
  47. data/docs/Puppeteer/ExecutionContext/EvaluationError.html +124 -0
  48. data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +357 -0
  49. data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +389 -0
  50. data/docs/Puppeteer/FileChooser.html +455 -0
  51. data/docs/Puppeteer/Frame.html +3677 -0
  52. data/docs/Puppeteer/FrameManager.html +2410 -0
  53. data/docs/Puppeteer/FrameManager/NavigationError.html +124 -0
  54. data/docs/Puppeteer/IfPresent.html +222 -0
  55. data/docs/Puppeteer/JSHandle.html +1352 -0
  56. data/docs/Puppeteer/Keyboard.html +1557 -0
  57. data/docs/Puppeteer/Keyboard/KeyDefinition.html +831 -0
  58. data/docs/Puppeteer/Keyboard/KeyDescription.html +603 -0
  59. data/docs/Puppeteer/Launcher.html +237 -0
  60. data/docs/Puppeteer/Launcher/Base.html +385 -0
  61. data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +124 -0
  62. data/docs/Puppeteer/Launcher/BrowserOptions.html +441 -0
  63. data/docs/Puppeteer/Launcher/Chrome.html +669 -0
  64. data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +382 -0
  65. data/docs/Puppeteer/Launcher/ChromeArgOptions.html +531 -0
  66. data/docs/Puppeteer/Launcher/LaunchOptions.html +893 -0
  67. data/docs/Puppeteer/LifecycleWatcher.html +834 -0
  68. data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +363 -0
  69. data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +206 -0
  70. data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +124 -0
  71. data/docs/Puppeteer/Mouse.html +1105 -0
  72. data/docs/Puppeteer/Mouse/Button.html +136 -0
  73. data/docs/Puppeteer/NetworkManager.html +901 -0
  74. data/docs/Puppeteer/NetworkManager/Credentials.html +385 -0
  75. data/docs/Puppeteer/Page.html +5970 -0
  76. data/docs/Puppeteer/Page/FileChooserTimeoutError.html +206 -0
  77. data/docs/Puppeteer/Page/ScreenshotOptions.html +845 -0
  78. data/docs/Puppeteer/Page/ScriptTag.html +555 -0
  79. data/docs/Puppeteer/Page/StyleTag.html +448 -0
  80. data/docs/Puppeteer/Page/TargetCrashedError.html +124 -0
  81. data/docs/Puppeteer/RemoteObject.html +1087 -0
  82. data/docs/Puppeteer/Target.html +1336 -0
  83. data/docs/Puppeteer/Target/InitializeFailure.html +124 -0
  84. data/docs/Puppeteer/Target/TargetInfo.html +729 -0
  85. data/docs/Puppeteer/TimeoutError.html +135 -0
  86. data/docs/Puppeteer/TimeoutSettings.html +496 -0
  87. data/docs/Puppeteer/TouchScreen.html +464 -0
  88. data/docs/Puppeteer/Viewport.html +837 -0
  89. data/docs/Puppeteer/WaitTask.html +637 -0
  90. data/docs/Puppeteer/WaitTask/TerminatedError.html +124 -0
  91. data/docs/Puppeteer/WaitTask/TimeoutError.html +206 -0
  92. data/docs/Puppeteer/WebSocket.html +673 -0
  93. data/docs/Puppeteer/WebSocket/DriverImpl.html +412 -0
  94. data/docs/Puppeteer/WebSocketTransport.html +600 -0
  95. data/docs/Puppeteer/WebSocktTransportError.html +124 -0
  96. data/docs/_index.html +823 -0
  97. data/docs/class_list.html +51 -0
  98. data/docs/css/common.css +1 -0
  99. data/docs/css/full_list.css +58 -0
  100. data/docs/css/style.css +496 -0
  101. data/docs/file.README.html +123 -0
  102. data/docs/file_list.html +56 -0
  103. data/docs/frames.html +17 -0
  104. data/docs/index.html +123 -0
  105. data/docs/js/app.js +314 -0
  106. data/docs/js/full_list.js +216 -0
  107. data/docs/js/jquery.js +4 -0
  108. data/docs/method_list.html +4075 -0
  109. data/docs/top-level-namespace.html +126 -0
  110. data/lib/puppeteer.rb +200 -0
  111. data/lib/puppeteer/async_await_behavior.rb +38 -0
  112. data/lib/puppeteer/browser.rb +259 -0
  113. data/lib/puppeteer/browser_context.rb +90 -0
  114. data/lib/puppeteer/browser_fetcher.rb +6 -0
  115. data/lib/puppeteer/browser_runner.rb +161 -0
  116. data/lib/puppeteer/cdp_session.rb +100 -0
  117. data/lib/puppeteer/concurrent_ruby_utils.rb +37 -0
  118. data/lib/puppeteer/connection.rb +254 -0
  119. data/lib/puppeteer/console_message.rb +24 -0
  120. data/lib/puppeteer/debug_print.rb +20 -0
  121. data/lib/puppeteer/device.rb +12 -0
  122. data/lib/puppeteer/devices.rb +885 -0
  123. data/lib/puppeteer/dom_world.rb +484 -0
  124. data/lib/puppeteer/element_handle.rb +433 -0
  125. data/lib/puppeteer/element_handle/bounding_box.rb +12 -0
  126. data/lib/puppeteer/element_handle/box_model.rb +19 -0
  127. data/lib/puppeteer/element_handle/point.rb +26 -0
  128. data/lib/puppeteer/emulation_manager.rb +46 -0
  129. data/lib/puppeteer/errors.rb +2 -0
  130. data/lib/puppeteer/event_callbackable.rb +88 -0
  131. data/lib/puppeteer/execution_context.rb +254 -0
  132. data/lib/puppeteer/file_chooser.rb +29 -0
  133. data/lib/puppeteer/frame.rb +286 -0
  134. data/lib/puppeteer/frame_manager.rb +378 -0
  135. data/lib/puppeteer/if_present.rb +18 -0
  136. data/lib/puppeteer/js_handle.rb +142 -0
  137. data/lib/puppeteer/keyboard.rb +183 -0
  138. data/lib/puppeteer/keyboard/key_description.rb +19 -0
  139. data/lib/puppeteer/keyboard/us_keyboard_layout.rb +283 -0
  140. data/lib/puppeteer/launcher.rb +25 -0
  141. data/lib/puppeteer/launcher/base.rb +48 -0
  142. data/lib/puppeteer/launcher/browser_options.rb +41 -0
  143. data/lib/puppeteer/launcher/chrome.rb +211 -0
  144. data/lib/puppeteer/launcher/chrome_arg_options.rb +49 -0
  145. data/lib/puppeteer/launcher/launch_options.rb +68 -0
  146. data/lib/puppeteer/lifecycle_watcher.rb +171 -0
  147. data/lib/puppeteer/mouse.rb +123 -0
  148. data/lib/puppeteer/network_manager.rb +122 -0
  149. data/lib/puppeteer/page.rb +1065 -0
  150. data/lib/puppeteer/page/screenshot_options.rb +78 -0
  151. data/lib/puppeteer/remote_object.rb +143 -0
  152. data/lib/puppeteer/target.rb +150 -0
  153. data/lib/puppeteer/timeout_settings.rb +15 -0
  154. data/lib/puppeteer/touch_screen.rb +43 -0
  155. data/lib/puppeteer/version.rb +3 -0
  156. data/lib/puppeteer/viewport.rb +54 -0
  157. data/lib/puppeteer/wait_task.rb +188 -0
  158. data/lib/puppeteer/web_socket.rb +122 -0
  159. data/lib/puppeteer/web_socket_transport.rb +49 -0
  160. data/puppeteer-ruby.gemspec +32 -0
  161. metadata +355 -0
@@ -0,0 +1,3677 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Puppeteer::Frame
8
+
9
+ &mdash; Documentation by YARD 0.9.24
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Puppeteer::Frame";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (F)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span>
41
+ &raquo;
42
+ <span class="title">Frame</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Puppeteer::Frame
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Puppeteer::Frame</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/puppeteer/frame.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+
103
+
104
+
105
+
106
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
107
+ <ul class="summary">
108
+
109
+ <li class="public ">
110
+ <span class="summary_signature">
111
+
112
+ <a href="#frame_manager-instance_method" title="#frame_manager (instance method)">#<strong>frame_manager</strong> &#x21d2; Object </a>
113
+
114
+
115
+
116
+ </span>
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+ <span class="summary_desc"><div class='inline'>
130
+ <p>Returns the value of attribute frame_manager.</p>
131
+ </div></span>
132
+
133
+ </li>
134
+
135
+
136
+ <li class="public ">
137
+ <span class="summary_signature">
138
+
139
+ <a href="#id-instance_method" title="#id (instance method)">#<strong>id</strong> &#x21d2; Object </a>
140
+
141
+
142
+
143
+ </span>
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+ <span class="summary_desc"><div class='inline'>
157
+ <p>Returns the value of attribute id.</p>
158
+ </div></span>
159
+
160
+ </li>
161
+
162
+
163
+ <li class="public ">
164
+ <span class="summary_signature">
165
+
166
+ <a href="#lifecycle_events-instance_method" title="#lifecycle_events (instance method)">#<strong>lifecycle_events</strong> &#x21d2; Object </a>
167
+
168
+
169
+
170
+ </span>
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+ <span class="summary_desc"><div class='inline'>
184
+ <p>Returns the value of attribute lifecycle_events.</p>
185
+ </div></span>
186
+
187
+ </li>
188
+
189
+
190
+ <li class="public ">
191
+ <span class="summary_signature">
192
+
193
+ <a href="#loader_id-instance_method" title="#loader_id (instance method)">#<strong>loader_id</strong> &#x21d2; Object </a>
194
+
195
+
196
+
197
+ </span>
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+ <span class="summary_desc"><div class='inline'>
211
+ <p>Returns the value of attribute loader_id.</p>
212
+ </div></span>
213
+
214
+ </li>
215
+
216
+
217
+ <li class="public ">
218
+ <span class="summary_signature">
219
+
220
+ <a href="#main_world-instance_method" title="#main_world (instance method)">#<strong>main_world</strong> &#x21d2; Object </a>
221
+
222
+
223
+
224
+ </span>
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+ <span class="summary_desc"><div class='inline'>
238
+ <p>Returns the value of attribute main_world.</p>
239
+ </div></span>
240
+
241
+ </li>
242
+
243
+
244
+ <li class="public ">
245
+ <span class="summary_signature">
246
+
247
+ <a href="#secondary_world-instance_method" title="#secondary_world (instance method)">#<strong>secondary_world</strong> &#x21d2; Object </a>
248
+
249
+
250
+
251
+ </span>
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+ <span class="summary_desc"><div class='inline'>
265
+ <p>Returns the value of attribute secondary_world.</p>
266
+ </div></span>
267
+
268
+ </li>
269
+
270
+
271
+ </ul>
272
+
273
+
274
+
275
+
276
+
277
+ <h2>
278
+ Instance Method Summary
279
+ <small><a href="#" class="summary_toggle">collapse</a></small>
280
+ </h2>
281
+
282
+ <ul class="summary">
283
+
284
+ <li class="public ">
285
+ <span class="summary_signature">
286
+
287
+ <a href="#add_script_tag-instance_method" title="#add_script_tag (instance method)">#<strong>add_script_tag</strong>(script_tag) &#x21d2; !Promise&lt;!ElementHandle&gt; </a>
288
+
289
+
290
+
291
+ </span>
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+ <span class="summary_desc"><div class='inline'></div></span>
302
+
303
+ </li>
304
+
305
+
306
+ <li class="public ">
307
+ <span class="summary_signature">
308
+
309
+ <a href="#add_style_tag-instance_method" title="#add_style_tag (instance method)">#<strong>add_style_tag</strong>(style_tag) &#x21d2; !Promise&lt;!ElementHandle&gt; </a>
310
+
311
+
312
+
313
+ </span>
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+ <span class="summary_desc"><div class='inline'></div></span>
324
+
325
+ </li>
326
+
327
+
328
+ <li class="public ">
329
+ <span class="summary_signature">
330
+
331
+ <a href="#child_frames-instance_method" title="#child_frames (instance method)">#<strong>child_frames</strong> &#x21d2; Object </a>
332
+
333
+
334
+
335
+ </span>
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+ <span class="summary_desc"><div class='inline'></div></span>
346
+
347
+ </li>
348
+
349
+
350
+ <li class="public ">
351
+ <span class="summary_signature">
352
+
353
+ <a href="#click-instance_method" title="#click (instance method)">#<strong>click</strong>(selector, delay: nil, button: nil, click_count: nil) &#x21d2; Object </a>
354
+
355
+
356
+
357
+ </span>
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+ <span class="summary_desc"><div class='inline'></div></span>
368
+
369
+ </li>
370
+
371
+
372
+ <li class="public ">
373
+ <span class="summary_signature">
374
+
375
+ <a href="#content-instance_method" title="#content (instance method)">#<strong>content</strong> &#x21d2; Object </a>
376
+
377
+
378
+
379
+ </span>
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+ <span class="summary_desc"><div class='inline'></div></span>
390
+
391
+ </li>
392
+
393
+
394
+ <li class="public ">
395
+ <span class="summary_signature">
396
+
397
+ <a href="#detach-instance_method" title="#detach (instance method)">#<strong>detach</strong> &#x21d2; Object </a>
398
+
399
+
400
+
401
+ </span>
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+ <span class="summary_desc"><div class='inline'></div></span>
412
+
413
+ </li>
414
+
415
+
416
+ <li class="public ">
417
+ <span class="summary_signature">
418
+
419
+ <a href="#detached%3F-instance_method" title="#detached? (instance method)">#<strong>detached?</strong> &#x21d2; Boolean </a>
420
+
421
+
422
+
423
+ </span>
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+ <span class="summary_desc"><div class='inline'></div></span>
434
+
435
+ </li>
436
+
437
+
438
+ <li class="public ">
439
+ <span class="summary_signature">
440
+
441
+ <a href="#evaluate-instance_method" title="#evaluate (instance method)">#<strong>evaluate</strong>(page_function, *args) &#x21d2; Object </a>
442
+
443
+
444
+
445
+ </span>
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+ <span class="summary_desc"><div class='inline'></div></span>
456
+
457
+ </li>
458
+
459
+
460
+ <li class="public ">
461
+ <span class="summary_signature">
462
+
463
+ <a href="#evaluate_handle-instance_method" title="#evaluate_handle (instance method)">#<strong>evaluate_handle</strong>(page_function, *args) &#x21d2; !Promise&lt;!Puppeteer.JSHandle&gt; </a>
464
+
465
+
466
+
467
+ </span>
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+ <span class="summary_desc"><div class='inline'></div></span>
478
+
479
+ </li>
480
+
481
+
482
+ <li class="public ">
483
+ <span class="summary_signature">
484
+
485
+ <a href="#execution_context-instance_method" title="#execution_context (instance method)">#<strong>execution_context</strong> &#x21d2; Object </a>
486
+
487
+
488
+
489
+ </span>
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+ <span class="summary_desc"><div class='inline'></div></span>
500
+
501
+ </li>
502
+
503
+
504
+ <li class="public ">
505
+ <span class="summary_signature">
506
+
507
+ <a href="#focus-instance_method" title="#focus (instance method)">#<strong>focus</strong>(selector) &#x21d2; Object </a>
508
+
509
+
510
+
511
+ </span>
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+ <span class="summary_desc"><div class='inline'></div></span>
522
+
523
+ </li>
524
+
525
+
526
+ <li class="public ">
527
+ <span class="summary_signature">
528
+
529
+ <a href="#goto-instance_method" title="#goto (instance method)">#<strong>goto</strong>(url, referer: nil, timeout: nil, wait_until: nil) &#x21d2; Puppeteer::Response </a>
530
+
531
+
532
+
533
+ </span>
534
+
535
+
536
+
537
+
538
+
539
+
540
+
541
+
542
+
543
+ <span class="summary_desc"><div class='inline'></div></span>
544
+
545
+ </li>
546
+
547
+
548
+ <li class="public ">
549
+ <span class="summary_signature">
550
+
551
+ <a href="#handle_lifecycle_event-instance_method" title="#handle_lifecycle_event (instance method)">#<strong>handle_lifecycle_event</strong>(loader_id, name) &#x21d2; Object </a>
552
+
553
+
554
+
555
+ </span>
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+
564
+
565
+ <span class="summary_desc"><div class='inline'></div></span>
566
+
567
+ </li>
568
+
569
+
570
+ <li class="public ">
571
+ <span class="summary_signature">
572
+
573
+ <a href="#handle_loading_stopped-instance_method" title="#handle_loading_stopped (instance method)">#<strong>handle_loading_stopped</strong> &#x21d2; Object </a>
574
+
575
+
576
+
577
+ </span>
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+ <span class="summary_desc"><div class='inline'></div></span>
588
+
589
+ </li>
590
+
591
+
592
+ <li class="public ">
593
+ <span class="summary_signature">
594
+
595
+ <a href="#hover-instance_method" title="#hover (instance method)">#<strong>hover</strong>(selector) &#x21d2; Object </a>
596
+
597
+
598
+
599
+ </span>
600
+
601
+
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+ <span class="summary_desc"><div class='inline'></div></span>
610
+
611
+ </li>
612
+
613
+
614
+ <li class="public ">
615
+ <span class="summary_signature">
616
+
617
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(frame_manager, client, parent_frame, frame_id) &#x21d2; Frame </a>
618
+
619
+
620
+
621
+ </span>
622
+
623
+
624
+ <span class="note title constructor">constructor</span>
625
+
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+ <span class="summary_desc"><div class='inline'>
634
+ <p>A new instance of Frame.</p>
635
+ </div></span>
636
+
637
+ </li>
638
+
639
+
640
+ <li class="public ">
641
+ <span class="summary_signature">
642
+
643
+ <a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> &#x21d2; String </a>
644
+
645
+
646
+
647
+ </span>
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+ <span class="summary_desc"><div class='inline'></div></span>
658
+
659
+ </li>
660
+
661
+
662
+ <li class="public ">
663
+ <span class="summary_signature">
664
+
665
+ <a href="#navigated-instance_method" title="#navigated (instance method)">#<strong>navigated</strong>(frame_payload) &#x21d2; Object </a>
666
+
667
+
668
+
669
+ </span>
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+ <span class="summary_desc"><div class='inline'></div></span>
680
+
681
+ </li>
682
+
683
+
684
+ <li class="public ">
685
+ <span class="summary_signature">
686
+
687
+ <a href="#navigated_within_document-instance_method" title="#navigated_within_document (instance method)">#<strong>navigated_within_document</strong>(url) &#x21d2; Object </a>
688
+
689
+
690
+
691
+ </span>
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+ <span class="summary_desc"><div class='inline'></div></span>
702
+
703
+ </li>
704
+
705
+
706
+ <li class="public ">
707
+ <span class="summary_signature">
708
+
709
+ <a href="#parent_frame-instance_method" title="#parent_frame (instance method)">#<strong>parent_frame</strong> &#x21d2; Frame? </a>
710
+
711
+
712
+
713
+ </span>
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+ <span class="summary_desc"><div class='inline'></div></span>
724
+
725
+ </li>
726
+
727
+
728
+ <li class="public ">
729
+ <span class="summary_signature">
730
+
731
+ <a href="#S-instance_method" title="#S (instance method)">#<strong>S</strong>(selector) &#x21d2; !Promise&lt;?Puppeteer.ElementHandle&gt; </a>
732
+
733
+
734
+
735
+ </span>
736
+
737
+
738
+
739
+
740
+
741
+
742
+
743
+
744
+
745
+ <span class="summary_desc"><div class='inline'>
746
+ <p>`$()` in JavaScript.</p>
747
+ </div></span>
748
+
749
+ </li>
750
+
751
+
752
+ <li class="public ">
753
+ <span class="summary_signature">
754
+
755
+ <a href="#select-instance_method" title="#select (instance method)">#<strong>select</strong>(selector, *values) &#x21d2; !Promise&lt;!Array&lt;string&gt;&gt; </a>
756
+
757
+
758
+
759
+ </span>
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+ <span class="summary_desc"><div class='inline'></div></span>
770
+
771
+ </li>
772
+
773
+
774
+ <li class="public ">
775
+ <span class="summary_signature">
776
+
777
+ <a href="#set_content-instance_method" title="#set_content (instance method)">#<strong>set_content</strong>(html, timeout: nil, wait_until: nil) &#x21d2; Object </a>
778
+
779
+
780
+
781
+ </span>
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+ <span class="summary_desc"><div class='inline'></div></span>
792
+
793
+ </li>
794
+
795
+
796
+ <li class="public ">
797
+ <span class="summary_signature">
798
+
799
+ <a href="#Seval-instance_method" title="#Seval (instance method)">#<strong>Seval</strong>(selector, page_function, *args) &#x21d2; !Promise&lt;(!Object|undefined)&gt; </a>
800
+
801
+
802
+
803
+ </span>
804
+
805
+
806
+
807
+
808
+
809
+
810
+
811
+
812
+
813
+ <span class="summary_desc"><div class='inline'>
814
+ <p>`$eval()` in JavaScript.</p>
815
+ </div></span>
816
+
817
+ </li>
818
+
819
+
820
+ <li class="public ">
821
+ <span class="summary_signature">
822
+
823
+ <a href="#SS-instance_method" title="#SS (instance method)">#<strong>SS</strong>(selector) &#x21d2; !Promise&lt;!Array&lt;!Puppeteer.ElementHandle&gt;&gt; </a>
824
+
825
+
826
+
827
+ </span>
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+
836
+
837
+ <span class="summary_desc"><div class='inline'>
838
+ <p>`$$()` in JavaScript.</p>
839
+ </div></span>
840
+
841
+ </li>
842
+
843
+
844
+ <li class="public ">
845
+ <span class="summary_signature">
846
+
847
+ <a href="#SSeval-instance_method" title="#SSeval (instance method)">#<strong>SSeval</strong>(selector, page_function, *args) &#x21d2; !Promise&lt;(!Object|undefined)&gt; </a>
848
+
849
+
850
+
851
+ </span>
852
+
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+ <span class="summary_desc"><div class='inline'>
862
+ <p>`$$eval()` in JavaScript.</p>
863
+ </div></span>
864
+
865
+ </li>
866
+
867
+
868
+ <li class="public ">
869
+ <span class="summary_signature">
870
+
871
+ <a href="#Sx-instance_method" title="#Sx (instance method)">#<strong>Sx</strong>(expression) &#x21d2; !Promise&lt;!Array&lt;!Puppeteer.ElementHandle&gt;&gt; </a>
872
+
873
+
874
+
875
+ </span>
876
+
877
+
878
+
879
+
880
+
881
+
882
+
883
+
884
+
885
+ <span class="summary_desc"><div class='inline'>
886
+ <p>`$x()` in JavaScript.</p>
887
+ </div></span>
888
+
889
+ </li>
890
+
891
+
892
+ <li class="public ">
893
+ <span class="summary_signature">
894
+
895
+ <a href="#tap-instance_method" title="#tap (instance method)">#<strong>tap</strong>(selector) &#x21d2; Object </a>
896
+
897
+
898
+
899
+ </span>
900
+
901
+
902
+
903
+
904
+
905
+
906
+
907
+
908
+
909
+ <span class="summary_desc"><div class='inline'></div></span>
910
+
911
+ </li>
912
+
913
+
914
+ <li class="public ">
915
+ <span class="summary_signature">
916
+
917
+ <a href="#title-instance_method" title="#title (instance method)">#<strong>title</strong> &#x21d2; Object </a>
918
+
919
+
920
+
921
+ </span>
922
+
923
+
924
+
925
+
926
+
927
+
928
+
929
+
930
+
931
+ <span class="summary_desc"><div class='inline'></div></span>
932
+
933
+ </li>
934
+
935
+
936
+ <li class="public ">
937
+ <span class="summary_signature">
938
+
939
+ <a href="#type_text-instance_method" title="#type_text (instance method)">#<strong>type_text</strong>(selector, text, delay: nil) &#x21d2; Object </a>
940
+
941
+
942
+
943
+ </span>
944
+
945
+
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+ <span class="summary_desc"><div class='inline'></div></span>
954
+
955
+ </li>
956
+
957
+
958
+ <li class="public ">
959
+ <span class="summary_signature">
960
+
961
+ <a href="#url-instance_method" title="#url (instance method)">#<strong>url</strong> &#x21d2; String </a>
962
+
963
+
964
+
965
+ </span>
966
+
967
+
968
+
969
+
970
+
971
+
972
+
973
+
974
+
975
+ <span class="summary_desc"><div class='inline'></div></span>
976
+
977
+ </li>
978
+
979
+
980
+ <li class="public ">
981
+ <span class="summary_signature">
982
+
983
+ <a href="#wait_for_function-instance_method" title="#wait_for_function (instance method)">#<strong>wait_for_function</strong>(page_function, options = {}, *args) &#x21d2; !Promise&lt;!Puppeteer.JSHandle&gt; </a>
984
+
985
+
986
+
987
+ </span>
988
+
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+ <span class="summary_desc"><div class='inline'></div></span>
998
+
999
+ </li>
1000
+
1001
+
1002
+ <li class="public ">
1003
+ <span class="summary_signature">
1004
+
1005
+ <a href="#wait_for_navigation-instance_method" title="#wait_for_navigation (instance method)">#<strong>wait_for_navigation</strong>(timeout: nil, wait_until: nil) &#x21d2; Object </a>
1006
+
1007
+
1008
+
1009
+ </span>
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+ <span class="summary_desc"><div class='inline'></div></span>
1020
+
1021
+ </li>
1022
+
1023
+
1024
+ <li class="public ">
1025
+ <span class="summary_signature">
1026
+
1027
+ <a href="#wait_for_selector-instance_method" title="#wait_for_selector (instance method)">#<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) &#x21d2; Object </a>
1028
+
1029
+
1030
+
1031
+ </span>
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+ <span class="summary_desc"><div class='inline'></div></span>
1042
+
1043
+ </li>
1044
+
1045
+
1046
+ <li class="public ">
1047
+ <span class="summary_signature">
1048
+
1049
+ <a href="#wait_for_xpath-instance_method" title="#wait_for_xpath (instance method)">#<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) &#x21d2; Object </a>
1050
+
1051
+
1052
+
1053
+ </span>
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+ <span class="summary_desc"><div class='inline'></div></span>
1064
+
1065
+ </li>
1066
+
1067
+
1068
+ </ul>
1069
+
1070
+
1071
+ <div id="constructor_details" class="method_details_list">
1072
+ <h2>Constructor Details</h2>
1073
+
1074
+ <div class="method_details first">
1075
+ <h3 class="signature first" id="initialize-instance_method">
1076
+
1077
+ #<strong>initialize</strong>(frame_manager, client, parent_frame, frame_id) &#x21d2; <tt><span class='object_link'><a href="" title="Puppeteer::Frame (class)">Frame</a></span></tt>
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+ </h3><div class="docstring">
1084
+ <div class="discussion">
1085
+
1086
+ <p>Returns a new instance of Frame.</p>
1087
+
1088
+
1089
+ </div>
1090
+ </div>
1091
+ <div class="tags">
1092
+ <p class="tag_title">Parameters:</p>
1093
+ <ul class="param">
1094
+
1095
+ <li>
1096
+
1097
+ <span class='name'>frameManager</span>
1098
+
1099
+
1100
+ <span class='type'>(<tt>!<span class='object_link'><a href="FrameManager.html" title="Puppeteer::FrameManager (class)">FrameManager</a></span></tt>)</span>
1101
+
1102
+
1103
+
1104
+ </li>
1105
+
1106
+ <li>
1107
+
1108
+ <span class='name'>client</span>
1109
+
1110
+
1111
+ <span class='type'>(<tt>!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="CDPSession.html" title="Puppeteer::CDPSession (class)">CDPSession</a></span></tt>)</span>
1112
+
1113
+
1114
+
1115
+ </li>
1116
+
1117
+ <li>
1118
+
1119
+ <span class='name'>parentFrame</span>
1120
+
1121
+
1122
+ <span class='type'>(<tt>?<span class='object_link'><a href="" title="Puppeteer::Frame (class)">Frame</a></span></tt>)</span>
1123
+
1124
+
1125
+
1126
+ </li>
1127
+
1128
+ <li>
1129
+
1130
+ <span class='name'>frameId</span>
1131
+
1132
+
1133
+ <span class='type'>(<tt>string</tt>)</span>
1134
+
1135
+
1136
+
1137
+ </li>
1138
+
1139
+ </ul>
1140
+
1141
+
1142
+ </div><table class="source_code">
1143
+ <tr>
1144
+ <td>
1145
+ <pre class="lines">
1146
+
1147
+
1148
+ 6
1149
+ 7
1150
+ 8
1151
+ 9
1152
+ 10
1153
+ 11
1154
+ 12
1155
+ 13
1156
+ 14
1157
+ 15
1158
+ 16
1159
+ 17
1160
+ 18
1161
+ 19
1162
+ 20
1163
+ 21</pre>
1164
+ </td>
1165
+ <td>
1166
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 6</span>
1167
+
1168
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_frame_manager'>frame_manager</span><span class='comma'>,</span> <span class='id identifier rubyid_client'>client</span><span class='comma'>,</span> <span class='id identifier rubyid_parent_frame'>parent_frame</span><span class='comma'>,</span> <span class='id identifier rubyid_frame_id'>frame_id</span><span class='rparen'>)</span>
1169
+ <span class='ivar'>@frame_manager</span> <span class='op'>=</span> <span class='id identifier rubyid_frame_manager'>frame_manager</span>
1170
+ <span class='ivar'>@client</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span>
1171
+ <span class='ivar'>@parent_frame</span> <span class='op'>=</span> <span class='id identifier rubyid_parent_frame'>parent_frame</span>
1172
+ <span class='ivar'>@id</span> <span class='op'>=</span> <span class='id identifier rubyid_frame_id'>frame_id</span>
1173
+ <span class='ivar'>@detached</span> <span class='op'>=</span> <span class='kw'>false</span>
1174
+
1175
+ <span class='ivar'>@loader_id</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
1176
+ <span class='ivar'>@lifecycle_events</span> <span class='op'>=</span> <span class='const'>Set</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
1177
+ <span class='ivar'>@main_world</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="DOMWorld.html" title="Puppeteer::DOMWorld (class)">DOMWorld</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="DOMWorld.html#initialize-instance_method" title="Puppeteer::DOMWorld#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_frame_manager'>frame_manager</span><span class='comma'>,</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_frame_manager'>frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_timeout_settings'>timeout_settings</span><span class='rparen'>)</span>
1178
+ <span class='ivar'>@secondary_world</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="DOMWorld.html" title="Puppeteer::DOMWorld (class)">DOMWorld</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="DOMWorld.html#initialize-instance_method" title="Puppeteer::DOMWorld#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_frame_manager'>frame_manager</span><span class='comma'>,</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_frame_manager'>frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_timeout_settings'>timeout_settings</span><span class='rparen'>)</span>
1179
+ <span class='ivar'>@child_frames</span> <span class='op'>=</span> <span class='const'>Set</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
1180
+ <span class='kw'>if</span> <span class='id identifier rubyid_parent_frame'>parent_frame</span>
1181
+ <span class='id identifier rubyid_parent_frame'>parent_frame</span><span class='period'>.</span><span class='id identifier rubyid__child_frames'>_child_frames</span> <span class='op'>&lt;&lt;</span> <span class='kw'>self</span>
1182
+ <span class='kw'>end</span>
1183
+ <span class='kw'>end</span></pre>
1184
+ </td>
1185
+ </tr>
1186
+ </table>
1187
+ </div>
1188
+
1189
+ </div>
1190
+
1191
+ <div id="instance_attr_details" class="attr_details">
1192
+ <h2>Instance Attribute Details</h2>
1193
+
1194
+
1195
+ <span id="frame_manager=-instance_method"></span>
1196
+ <div class="method_details first">
1197
+ <h3 class="signature first" id="frame_manager-instance_method">
1198
+
1199
+ #<strong>frame_manager</strong> &#x21d2; <tt>Object</tt>
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+ </h3><div class="docstring">
1206
+ <div class="discussion">
1207
+
1208
+ <p>Returns the value of attribute frame_manager.</p>
1209
+
1210
+
1211
+ </div>
1212
+ </div>
1213
+ <div class="tags">
1214
+
1215
+
1216
+ </div><table class="source_code">
1217
+ <tr>
1218
+ <td>
1219
+ <pre class="lines">
1220
+
1221
+
1222
+ 23
1223
+ 24
1224
+ 25</pre>
1225
+ </td>
1226
+ <td>
1227
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 23</span>
1228
+
1229
+ <span class='kw'>def</span> <span class='id identifier rubyid_frame_manager'>frame_manager</span>
1230
+ <span class='ivar'>@frame_manager</span>
1231
+ <span class='kw'>end</span></pre>
1232
+ </td>
1233
+ </tr>
1234
+ </table>
1235
+ </div>
1236
+
1237
+
1238
+ <span id="id=-instance_method"></span>
1239
+ <div class="method_details ">
1240
+ <h3 class="signature " id="id-instance_method">
1241
+
1242
+ #<strong>id</strong> &#x21d2; <tt>Object</tt>
1243
+
1244
+
1245
+
1246
+
1247
+
1248
+ </h3><div class="docstring">
1249
+ <div class="discussion">
1250
+
1251
+ <p>Returns the value of attribute id.</p>
1252
+
1253
+
1254
+ </div>
1255
+ </div>
1256
+ <div class="tags">
1257
+
1258
+
1259
+ </div><table class="source_code">
1260
+ <tr>
1261
+ <td>
1262
+ <pre class="lines">
1263
+
1264
+
1265
+ 23
1266
+ 24
1267
+ 25</pre>
1268
+ </td>
1269
+ <td>
1270
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 23</span>
1271
+
1272
+ <span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
1273
+ <span class='ivar'>@id</span>
1274
+ <span class='kw'>end</span></pre>
1275
+ </td>
1276
+ </tr>
1277
+ </table>
1278
+ </div>
1279
+
1280
+
1281
+ <span id="lifecycle_events=-instance_method"></span>
1282
+ <div class="method_details ">
1283
+ <h3 class="signature " id="lifecycle_events-instance_method">
1284
+
1285
+ #<strong>lifecycle_events</strong> &#x21d2; <tt>Object</tt>
1286
+
1287
+
1288
+
1289
+
1290
+
1291
+ </h3><div class="docstring">
1292
+ <div class="discussion">
1293
+
1294
+ <p>Returns the value of attribute lifecycle_events.</p>
1295
+
1296
+
1297
+ </div>
1298
+ </div>
1299
+ <div class="tags">
1300
+
1301
+
1302
+ </div><table class="source_code">
1303
+ <tr>
1304
+ <td>
1305
+ <pre class="lines">
1306
+
1307
+
1308
+ 23
1309
+ 24
1310
+ 25</pre>
1311
+ </td>
1312
+ <td>
1313
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 23</span>
1314
+
1315
+ <span class='kw'>def</span> <span class='id identifier rubyid_lifecycle_events'>lifecycle_events</span>
1316
+ <span class='ivar'>@lifecycle_events</span>
1317
+ <span class='kw'>end</span></pre>
1318
+ </td>
1319
+ </tr>
1320
+ </table>
1321
+ </div>
1322
+
1323
+
1324
+ <span id="loader_id=-instance_method"></span>
1325
+ <div class="method_details ">
1326
+ <h3 class="signature " id="loader_id-instance_method">
1327
+
1328
+ #<strong>loader_id</strong> &#x21d2; <tt>Object</tt>
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+ </h3><div class="docstring">
1335
+ <div class="discussion">
1336
+
1337
+ <p>Returns the value of attribute loader_id.</p>
1338
+
1339
+
1340
+ </div>
1341
+ </div>
1342
+ <div class="tags">
1343
+
1344
+
1345
+ </div><table class="source_code">
1346
+ <tr>
1347
+ <td>
1348
+ <pre class="lines">
1349
+
1350
+
1351
+ 23
1352
+ 24
1353
+ 25</pre>
1354
+ </td>
1355
+ <td>
1356
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 23</span>
1357
+
1358
+ <span class='kw'>def</span> <span class='id identifier rubyid_loader_id'>loader_id</span>
1359
+ <span class='ivar'>@loader_id</span>
1360
+ <span class='kw'>end</span></pre>
1361
+ </td>
1362
+ </tr>
1363
+ </table>
1364
+ </div>
1365
+
1366
+
1367
+ <span id="main_world=-instance_method"></span>
1368
+ <div class="method_details ">
1369
+ <h3 class="signature " id="main_world-instance_method">
1370
+
1371
+ #<strong>main_world</strong> &#x21d2; <tt>Object</tt>
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+ </h3><div class="docstring">
1378
+ <div class="discussion">
1379
+
1380
+ <p>Returns the value of attribute main_world.</p>
1381
+
1382
+
1383
+ </div>
1384
+ </div>
1385
+ <div class="tags">
1386
+
1387
+
1388
+ </div><table class="source_code">
1389
+ <tr>
1390
+ <td>
1391
+ <pre class="lines">
1392
+
1393
+
1394
+ 23
1395
+ 24
1396
+ 25</pre>
1397
+ </td>
1398
+ <td>
1399
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 23</span>
1400
+
1401
+ <span class='kw'>def</span> <span class='id identifier rubyid_main_world'>main_world</span>
1402
+ <span class='ivar'>@main_world</span>
1403
+ <span class='kw'>end</span></pre>
1404
+ </td>
1405
+ </tr>
1406
+ </table>
1407
+ </div>
1408
+
1409
+
1410
+ <span id="secondary_world=-instance_method"></span>
1411
+ <div class="method_details ">
1412
+ <h3 class="signature " id="secondary_world-instance_method">
1413
+
1414
+ #<strong>secondary_world</strong> &#x21d2; <tt>Object</tt>
1415
+
1416
+
1417
+
1418
+
1419
+
1420
+ </h3><div class="docstring">
1421
+ <div class="discussion">
1422
+
1423
+ <p>Returns the value of attribute secondary_world.</p>
1424
+
1425
+
1426
+ </div>
1427
+ </div>
1428
+ <div class="tags">
1429
+
1430
+
1431
+ </div><table class="source_code">
1432
+ <tr>
1433
+ <td>
1434
+ <pre class="lines">
1435
+
1436
+
1437
+ 23
1438
+ 24
1439
+ 25</pre>
1440
+ </td>
1441
+ <td>
1442
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 23</span>
1443
+
1444
+ <span class='kw'>def</span> <span class='id identifier rubyid_secondary_world'>secondary_world</span>
1445
+ <span class='ivar'>@secondary_world</span>
1446
+ <span class='kw'>end</span></pre>
1447
+ </td>
1448
+ </tr>
1449
+ </table>
1450
+ </div>
1451
+
1452
+ </div>
1453
+
1454
+
1455
+ <div id="instance_method_details" class="method_details_list">
1456
+ <h2>Instance Method Details</h2>
1457
+
1458
+
1459
+ <div class="method_details first">
1460
+ <h3 class="signature first" id="add_script_tag-instance_method">
1461
+
1462
+ #<strong>add_script_tag</strong>(script_tag) &#x21d2; <tt>!Promise&lt;!<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;</tt>
1463
+
1464
+
1465
+
1466
+
1467
+
1468
+ </h3><div class="docstring">
1469
+ <div class="discussion">
1470
+
1471
+
1472
+ </div>
1473
+ </div>
1474
+ <div class="tags">
1475
+ <p class="tag_title">Parameters:</p>
1476
+ <ul class="param">
1477
+
1478
+ <li>
1479
+
1480
+ <span class='name'>style_tag</span>
1481
+
1482
+
1483
+ <span class='type'>(<tt><span class='object_link'><a href="Page/ScriptTag.html" title="Puppeteer::Page::ScriptTag (class)">Puppeteer::Page::ScriptTag</a></span></tt>)</span>
1484
+
1485
+
1486
+
1487
+ </li>
1488
+
1489
+ </ul>
1490
+
1491
+ <p class="tag_title">Returns:</p>
1492
+ <ul class="return">
1493
+
1494
+ <li>
1495
+
1496
+
1497
+ <span class='type'>(<tt>!Promise&lt;!<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;</tt>)</span>
1498
+
1499
+
1500
+
1501
+ </li>
1502
+
1503
+ </ul>
1504
+
1505
+ </div><table class="source_code">
1506
+ <tr>
1507
+ <td>
1508
+ <pre class="lines">
1509
+
1510
+
1511
+ 136
1512
+ 137
1513
+ 138</pre>
1514
+ </td>
1515
+ <td>
1516
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 136</span>
1517
+
1518
+ <span class='kw'>def</span> <span class='id identifier rubyid_add_script_tag'>add_script_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_script_tag'>script_tag</span><span class='rparen'>)</span>
1519
+ <span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_add_script_tag'>add_script_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_script_tag'>script_tag</span><span class='rparen'>)</span>
1520
+ <span class='kw'>end</span></pre>
1521
+ </td>
1522
+ </tr>
1523
+ </table>
1524
+ </div>
1525
+
1526
+ <div class="method_details ">
1527
+ <h3 class="signature " id="add_style_tag-instance_method">
1528
+
1529
+ #<strong>add_style_tag</strong>(style_tag) &#x21d2; <tt>!Promise&lt;!<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;</tt>
1530
+
1531
+
1532
+
1533
+
1534
+
1535
+ </h3><div class="docstring">
1536
+ <div class="discussion">
1537
+
1538
+
1539
+ </div>
1540
+ </div>
1541
+ <div class="tags">
1542
+ <p class="tag_title">Parameters:</p>
1543
+ <ul class="param">
1544
+
1545
+ <li>
1546
+
1547
+ <span class='name'>style_tag</span>
1548
+
1549
+
1550
+ <span class='type'>(<tt><span class='object_link'><a href="Page/StyleTag.html" title="Puppeteer::Page::StyleTag (class)">Puppeteer::Page::StyleTag</a></span></tt>)</span>
1551
+
1552
+
1553
+
1554
+ </li>
1555
+
1556
+ </ul>
1557
+
1558
+ <p class="tag_title">Returns:</p>
1559
+ <ul class="return">
1560
+
1561
+ <li>
1562
+
1563
+
1564
+ <span class='type'>(<tt>!Promise&lt;!<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;</tt>)</span>
1565
+
1566
+
1567
+
1568
+ </li>
1569
+
1570
+ </ul>
1571
+
1572
+ </div><table class="source_code">
1573
+ <tr>
1574
+ <td>
1575
+ <pre class="lines">
1576
+
1577
+
1578
+ 142
1579
+ 143
1580
+ 144</pre>
1581
+ </td>
1582
+ <td>
1583
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 142</span>
1584
+
1585
+ <span class='kw'>def</span> <span class='id identifier rubyid_add_style_tag'>add_style_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_style_tag'>style_tag</span><span class='rparen'>)</span>
1586
+ <span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_add_style_tag'>add_style_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_style_tag'>style_tag</span><span class='rparen'>)</span>
1587
+ <span class='kw'>end</span></pre>
1588
+ </td>
1589
+ </tr>
1590
+ </table>
1591
+ </div>
1592
+
1593
+ <div class="method_details ">
1594
+ <h3 class="signature " id="child_frames-instance_method">
1595
+
1596
+ #<strong>child_frames</strong> &#x21d2; <tt>Object</tt>
1597
+
1598
+
1599
+
1600
+
1601
+
1602
+ </h3><table class="source_code">
1603
+ <tr>
1604
+ <td>
1605
+ <pre class="lines">
1606
+
1607
+
1608
+ 126
1609
+ 127
1610
+ 128</pre>
1611
+ </td>
1612
+ <td>
1613
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 126</span>
1614
+
1615
+ <span class='kw'>def</span> <span class='id identifier rubyid_child_frames'>child_frames</span>
1616
+ <span class='ivar'>@child_frames</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
1617
+ <span class='kw'>end</span></pre>
1618
+ </td>
1619
+ </tr>
1620
+ </table>
1621
+ </div>
1622
+
1623
+ <div class="method_details ">
1624
+ <h3 class="signature " id="click-instance_method">
1625
+
1626
+ #<strong>click</strong>(selector, delay: nil, button: nil, click_count: nil) &#x21d2; <tt>Object</tt>
1627
+
1628
+
1629
+
1630
+
1631
+
1632
+ </h3><div class="docstring">
1633
+ <div class="discussion">
1634
+
1635
+
1636
+ </div>
1637
+ </div>
1638
+ <div class="tags">
1639
+ <p class="tag_title">Parameters:</p>
1640
+ <ul class="param">
1641
+
1642
+ <li>
1643
+
1644
+ <span class='name'>selector</span>
1645
+
1646
+
1647
+ <span class='type'>(<tt>String</tt>)</span>
1648
+
1649
+
1650
+
1651
+ </li>
1652
+
1653
+ <li>
1654
+
1655
+ <span class='name'>delay</span>
1656
+
1657
+
1658
+ <span class='type'>(<tt>Number</tt>)</span>
1659
+
1660
+
1661
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1662
+
1663
+
1664
+ </li>
1665
+
1666
+ <li>
1667
+
1668
+ <span class='name'>button</span>
1669
+
1670
+
1671
+ <span class='type'>(<tt>String</tt>)</span>
1672
+
1673
+
1674
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1675
+
1676
+
1677
+ &mdash;
1678
+ <div class='inline'>
1679
+ <p>“left”|“right”|“middle”</p>
1680
+ </div>
1681
+
1682
+ </li>
1683
+
1684
+ <li>
1685
+
1686
+ <span class='name'>click_count</span>
1687
+
1688
+
1689
+ <span class='type'>(<tt>Number</tt>)</span>
1690
+
1691
+
1692
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1693
+
1694
+
1695
+ </li>
1696
+
1697
+ </ul>
1698
+
1699
+
1700
+ </div><table class="source_code">
1701
+ <tr>
1702
+ <td>
1703
+ <pre class="lines">
1704
+
1705
+
1706
+ 150
1707
+ 151
1708
+ 152</pre>
1709
+ </td>
1710
+ <td>
1711
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 150</span>
1712
+
1713
+ <span class='kw'>def</span> <span class='id identifier rubyid_click'>click</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>button:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1714
+ <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_click'>click</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='id identifier rubyid_delay'>delay</span><span class='comma'>,</span> <span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span>
1715
+ <span class='kw'>end</span></pre>
1716
+ </td>
1717
+ </tr>
1718
+ </table>
1719
+ </div>
1720
+
1721
+ <div class="method_details ">
1722
+ <h3 class="signature " id="content-instance_method">
1723
+
1724
+ #<strong>content</strong> &#x21d2; <tt>Object</tt>
1725
+
1726
+
1727
+
1728
+
1729
+
1730
+ </h3><table class="source_code">
1731
+ <tr>
1732
+ <td>
1733
+ <pre class="lines">
1734
+
1735
+
1736
+ 97
1737
+ 98
1738
+ 99</pre>
1739
+ </td>
1740
+ <td>
1741
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 97</span>
1742
+
1743
+ <span class='kw'>def</span> <span class='id identifier rubyid_content'>content</span>
1744
+ <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span>
1745
+ <span class='kw'>end</span></pre>
1746
+ </td>
1747
+ </tr>
1748
+ </table>
1749
+ </div>
1750
+
1751
+ <div class="method_details ">
1752
+ <h3 class="signature " id="detach-instance_method">
1753
+
1754
+ #<strong>detach</strong> &#x21d2; <tt>Object</tt>
1755
+
1756
+
1757
+
1758
+
1759
+
1760
+ </h3><table class="source_code">
1761
+ <tr>
1762
+ <td>
1763
+ <pre class="lines">
1764
+
1765
+
1766
+ 277
1767
+ 278
1768
+ 279
1769
+ 280
1770
+ 281
1771
+ 282
1772
+ 283
1773
+ 284
1774
+ 285</pre>
1775
+ </td>
1776
+ <td>
1777
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 277</span>
1778
+
1779
+ <span class='kw'>def</span> <span class='id identifier rubyid_detach'>detach</span>
1780
+ <span class='ivar'>@detached</span> <span class='op'>=</span> <span class='kw'>true</span>
1781
+ <span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_detach'>detach</span>
1782
+ <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_detach'>detach</span>
1783
+ <span class='kw'>if</span> <span class='ivar'>@parent_frame</span>
1784
+ <span class='ivar'>@parent_frame</span><span class='period'>.</span><span class='id identifier rubyid__child_frames'>_child_frames</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
1785
+ <span class='kw'>end</span>
1786
+ <span class='ivar'>@parent_frame</span> <span class='op'>=</span> <span class='kw'>nil</span>
1787
+ <span class='kw'>end</span></pre>
1788
+ </td>
1789
+ </tr>
1790
+ </table>
1791
+ </div>
1792
+
1793
+ <div class="method_details ">
1794
+ <h3 class="signature " id="detached?-instance_method">
1795
+
1796
+ #<strong>detached?</strong> &#x21d2; <tt>Boolean</tt>
1797
+
1798
+
1799
+
1800
+
1801
+
1802
+ </h3><div class="docstring">
1803
+ <div class="discussion">
1804
+
1805
+
1806
+ </div>
1807
+ </div>
1808
+ <div class="tags">
1809
+
1810
+ <p class="tag_title">Returns:</p>
1811
+ <ul class="return">
1812
+
1813
+ <li>
1814
+
1815
+
1816
+ <span class='type'>(<tt>Boolean</tt>)</span>
1817
+
1818
+
1819
+
1820
+ </li>
1821
+
1822
+ </ul>
1823
+
1824
+ </div><table class="source_code">
1825
+ <tr>
1826
+ <td>
1827
+ <pre class="lines">
1828
+
1829
+
1830
+ 130
1831
+ 131
1832
+ 132</pre>
1833
+ </td>
1834
+ <td>
1835
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 130</span>
1836
+
1837
+ <span class='kw'>def</span> <span class='id identifier rubyid_detached?'>detached?</span>
1838
+ <span class='ivar'>@detached</span>
1839
+ <span class='kw'>end</span></pre>
1840
+ </td>
1841
+ </tr>
1842
+ </table>
1843
+ </div>
1844
+
1845
+ <div class="method_details ">
1846
+ <h3 class="signature " id="evaluate-instance_method">
1847
+
1848
+ #<strong>evaluate</strong>(page_function, *args) &#x21d2; <tt>Object</tt>
1849
+
1850
+
1851
+
1852
+
1853
+
1854
+ </h3><div class="docstring">
1855
+ <div class="discussion">
1856
+
1857
+
1858
+ </div>
1859
+ </div>
1860
+ <div class="tags">
1861
+ <p class="tag_title">Parameters:</p>
1862
+ <ul class="param">
1863
+
1864
+ <li>
1865
+
1866
+ <span class='name'>pageFunction</span>
1867
+
1868
+
1869
+ <span class='type'>(<tt>Function|string</tt>)</span>
1870
+
1871
+
1872
+
1873
+ </li>
1874
+
1875
+ <li>
1876
+
1877
+ <span class='name'>args</span>
1878
+
1879
+
1880
+ <span class='type'>(<tt>!Array&lt;*&gt;</tt>)</span>
1881
+
1882
+
1883
+
1884
+ </li>
1885
+
1886
+ </ul>
1887
+
1888
+
1889
+ </div><table class="source_code">
1890
+ <tr>
1891
+ <td>
1892
+ <pre class="lines">
1893
+
1894
+
1895
+ 52
1896
+ 53
1897
+ 54</pre>
1898
+ </td>
1899
+ <td>
1900
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 52</span>
1901
+
1902
+ <span class='kw'>def</span> <span class='id identifier rubyid_evaluate'>evaluate</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
1903
+ <span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_evaluate'>evaluate</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
1904
+ <span class='kw'>end</span></pre>
1905
+ </td>
1906
+ </tr>
1907
+ </table>
1908
+ </div>
1909
+
1910
+ <div class="method_details ">
1911
+ <h3 class="signature " id="evaluate_handle-instance_method">
1912
+
1913
+ #<strong>evaluate_handle</strong>(page_function, *args) &#x21d2; <tt>!Promise&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="JSHandle.html" title="Puppeteer::JSHandle (class)">JSHandle</a></span>&gt;</tt>
1914
+
1915
+
1916
+
1917
+
1918
+
1919
+ </h3><div class="docstring">
1920
+ <div class="discussion">
1921
+
1922
+
1923
+ </div>
1924
+ </div>
1925
+ <div class="tags">
1926
+ <p class="tag_title">Parameters:</p>
1927
+ <ul class="param">
1928
+
1929
+ <li>
1930
+
1931
+ <span class='name'>pageFunction</span>
1932
+
1933
+
1934
+ <span class='type'>(<tt>Function|string</tt>)</span>
1935
+
1936
+
1937
+
1938
+ </li>
1939
+
1940
+ </ul>
1941
+
1942
+ <p class="tag_title">Returns:</p>
1943
+ <ul class="return">
1944
+
1945
+ <li>
1946
+
1947
+
1948
+ <span class='type'>(<tt>!Promise&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="JSHandle.html" title="Puppeteer::JSHandle (class)">JSHandle</a></span>&gt;</tt>)</span>
1949
+
1950
+
1951
+
1952
+ </li>
1953
+
1954
+ </ul>
1955
+
1956
+ </div><table class="source_code">
1957
+ <tr>
1958
+ <td>
1959
+ <pre class="lines">
1960
+
1961
+
1962
+ 46
1963
+ 47
1964
+ 48</pre>
1965
+ </td>
1966
+ <td>
1967
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 46</span>
1968
+
1969
+ <span class='kw'>def</span> <span class='id identifier rubyid_evaluate_handle'>evaluate_handle</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
1970
+ <span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_evaluate_handle'>evaluate_handle</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
1971
+ <span class='kw'>end</span></pre>
1972
+ </td>
1973
+ </tr>
1974
+ </table>
1975
+ </div>
1976
+
1977
+ <div class="method_details ">
1978
+ <h3 class="signature " id="execution_context-instance_method">
1979
+
1980
+ #<strong>execution_context</strong> &#x21d2; <tt>Object</tt>
1981
+
1982
+
1983
+
1984
+
1985
+
1986
+ </h3><table class="source_code">
1987
+ <tr>
1988
+ <td>
1989
+ <pre class="lines">
1990
+
1991
+
1992
+ 40
1993
+ 41
1994
+ 42</pre>
1995
+ </td>
1996
+ <td>
1997
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 40</span>
1998
+
1999
+ <span class='kw'>def</span> <span class='id identifier rubyid_execution_context'>execution_context</span>
2000
+ <span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span>
2001
+ <span class='kw'>end</span></pre>
2002
+ </td>
2003
+ </tr>
2004
+ </table>
2005
+ </div>
2006
+
2007
+ <div class="method_details ">
2008
+ <h3 class="signature " id="focus-instance_method">
2009
+
2010
+ #<strong>focus</strong>(selector) &#x21d2; <tt>Object</tt>
2011
+
2012
+
2013
+
2014
+
2015
+
2016
+ </h3><div class="docstring">
2017
+ <div class="discussion">
2018
+
2019
+
2020
+ </div>
2021
+ </div>
2022
+ <div class="tags">
2023
+ <p class="tag_title">Parameters:</p>
2024
+ <ul class="param">
2025
+
2026
+ <li>
2027
+
2028
+ <span class='name'>selector</span>
2029
+
2030
+
2031
+ <span class='type'>(<tt>string</tt>)</span>
2032
+
2033
+
2034
+
2035
+ </li>
2036
+
2037
+ </ul>
2038
+
2039
+
2040
+ </div><table class="source_code">
2041
+ <tr>
2042
+ <td>
2043
+ <pre class="lines">
2044
+
2045
+
2046
+ 155
2047
+ 156
2048
+ 157</pre>
2049
+ </td>
2050
+ <td>
2051
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 155</span>
2052
+
2053
+ <span class='kw'>def</span> <span class='id identifier rubyid_focus'>focus</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
2054
+ <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_focus'>focus</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
2055
+ <span class='kw'>end</span></pre>
2056
+ </td>
2057
+ </tr>
2058
+ </table>
2059
+ </div>
2060
+
2061
+ <div class="method_details ">
2062
+ <h3 class="signature " id="goto-instance_method">
2063
+
2064
+ #<strong>goto</strong>(url, referer: nil, timeout: nil, wait_until: nil) &#x21d2; <tt>Puppeteer::Response</tt>
2065
+
2066
+
2067
+
2068
+
2069
+
2070
+ </h3><div class="docstring">
2071
+ <div class="discussion">
2072
+
2073
+
2074
+ </div>
2075
+ </div>
2076
+ <div class="tags">
2077
+ <p class="tag_title">Parameters:</p>
2078
+ <ul class="param">
2079
+
2080
+ <li>
2081
+
2082
+ <span class='name'>url</span>
2083
+
2084
+
2085
+ <span class='type'>(<tt>String</tt>)</span>
2086
+
2087
+
2088
+
2089
+ </li>
2090
+
2091
+ <li>
2092
+
2093
+ <span class='name'>rederer</span>
2094
+
2095
+
2096
+ <span class='type'>(<tt>String</tt>)</span>
2097
+
2098
+
2099
+
2100
+ </li>
2101
+
2102
+ <li>
2103
+
2104
+ <span class='name'>timeout</span>
2105
+
2106
+
2107
+ <span class='type'>(<tt>number|nil</tt>)</span>
2108
+
2109
+
2110
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
2111
+
2112
+
2113
+ </li>
2114
+
2115
+ <li>
2116
+
2117
+ <span class='name'>wait_until</span>
2118
+
2119
+
2120
+ <span class='type'>(<tt>string|nil</tt>)</span>
2121
+
2122
+
2123
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
2124
+
2125
+
2126
+ &mdash;
2127
+ <div class='inline'>
2128
+ <p>&#39;load&#39; | &#39;domcontentloaded&#39; | &#39;networkidle0&#39; | &#39;networkidle2&#39;</p>
2129
+ </div>
2130
+
2131
+ </li>
2132
+
2133
+ </ul>
2134
+
2135
+ <p class="tag_title">Returns:</p>
2136
+ <ul class="return">
2137
+
2138
+ <li>
2139
+
2140
+
2141
+ <span class='type'>(<tt>Puppeteer::Response</tt>)</span>
2142
+
2143
+
2144
+
2145
+ </li>
2146
+
2147
+ </ul>
2148
+
2149
+ </div><table class="source_code">
2150
+ <tr>
2151
+ <td>
2152
+ <pre class="lines">
2153
+
2154
+
2155
+ 30
2156
+ 31
2157
+ 32</pre>
2158
+ </td>
2159
+ <td>
2160
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 30</span>
2161
+
2162
+ <span class='kw'>def</span> <span class='id identifier rubyid_goto'>goto</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='label'>referer:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
2163
+ <span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_navigate_frame'>navigate_frame</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='label'>referer:</span> <span class='id identifier rubyid_referer'>referer</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
2164
+ <span class='kw'>end</span></pre>
2165
+ </td>
2166
+ </tr>
2167
+ </table>
2168
+ </div>
2169
+
2170
+ <div class="method_details ">
2171
+ <h3 class="signature " id="handle_lifecycle_event-instance_method">
2172
+
2173
+ #<strong>handle_lifecycle_event</strong>(loader_id, name) &#x21d2; <tt>Object</tt>
2174
+
2175
+
2176
+
2177
+
2178
+
2179
+ </h3><table class="source_code">
2180
+ <tr>
2181
+ <td>
2182
+ <pre class="lines">
2183
+
2184
+
2185
+ 264
2186
+ 265
2187
+ 266
2188
+ 267
2189
+ 268
2190
+ 269
2191
+ 270</pre>
2192
+ </td>
2193
+ <td>
2194
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 264</span>
2195
+
2196
+ <span class='kw'>def</span> <span class='id identifier rubyid_handle_lifecycle_event'>handle_lifecycle_event</span><span class='lparen'>(</span><span class='id identifier rubyid_loader_id'>loader_id</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
2197
+ <span class='kw'>if</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>init</span><span class='tstring_end'>&#39;</span></span>
2198
+ <span class='ivar'>@loader_id</span> <span class='op'>=</span> <span class='id identifier rubyid_loader_id'>loader_id</span>
2199
+ <span class='ivar'>@lifecycle_events</span><span class='period'>.</span><span class='id identifier rubyid_clear'>clear</span>
2200
+ <span class='kw'>end</span>
2201
+ <span class='ivar'>@lifecycle_events</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_name'>name</span>
2202
+ <span class='kw'>end</span></pre>
2203
+ </td>
2204
+ </tr>
2205
+ </table>
2206
+ </div>
2207
+
2208
+ <div class="method_details ">
2209
+ <h3 class="signature " id="handle_loading_stopped-instance_method">
2210
+
2211
+ #<strong>handle_loading_stopped</strong> &#x21d2; <tt>Object</tt>
2212
+
2213
+
2214
+
2215
+
2216
+
2217
+ </h3><table class="source_code">
2218
+ <tr>
2219
+ <td>
2220
+ <pre class="lines">
2221
+
2222
+
2223
+ 272
2224
+ 273
2225
+ 274
2226
+ 275</pre>
2227
+ </td>
2228
+ <td>
2229
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 272</span>
2230
+
2231
+ <span class='kw'>def</span> <span class='id identifier rubyid_handle_loading_stopped'>handle_loading_stopped</span>
2232
+ <span class='ivar'>@lifecycle_events</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>DOMContentLoaded</span><span class='tstring_end'>&#39;</span></span>
2233
+ <span class='ivar'>@lifecycle_events</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>load</span><span class='tstring_end'>&#39;</span></span>
2234
+ <span class='kw'>end</span></pre>
2235
+ </td>
2236
+ </tr>
2237
+ </table>
2238
+ </div>
2239
+
2240
+ <div class="method_details ">
2241
+ <h3 class="signature " id="hover-instance_method">
2242
+
2243
+ #<strong>hover</strong>(selector) &#x21d2; <tt>Object</tt>
2244
+
2245
+
2246
+
2247
+
2248
+
2249
+ </h3><div class="docstring">
2250
+ <div class="discussion">
2251
+
2252
+
2253
+ </div>
2254
+ </div>
2255
+ <div class="tags">
2256
+ <p class="tag_title">Parameters:</p>
2257
+ <ul class="param">
2258
+
2259
+ <li>
2260
+
2261
+ <span class='name'>selector</span>
2262
+
2263
+
2264
+ <span class='type'>(<tt>string</tt>)</span>
2265
+
2266
+
2267
+
2268
+ </li>
2269
+
2270
+ </ul>
2271
+
2272
+
2273
+ </div><table class="source_code">
2274
+ <tr>
2275
+ <td>
2276
+ <pre class="lines">
2277
+
2278
+
2279
+ 160
2280
+ 161
2281
+ 162</pre>
2282
+ </td>
2283
+ <td>
2284
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 160</span>
2285
+
2286
+ <span class='kw'>def</span> <span class='id identifier rubyid_hover'>hover</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
2287
+ <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_hover'>hover</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
2288
+ <span class='kw'>end</span></pre>
2289
+ </td>
2290
+ </tr>
2291
+ </table>
2292
+ </div>
2293
+
2294
+ <div class="method_details ">
2295
+ <h3 class="signature " id="name-instance_method">
2296
+
2297
+ #<strong>name</strong> &#x21d2; <tt>String</tt>
2298
+
2299
+
2300
+
2301
+
2302
+
2303
+ </h3><div class="docstring">
2304
+ <div class="discussion">
2305
+
2306
+
2307
+ </div>
2308
+ </div>
2309
+ <div class="tags">
2310
+
2311
+ <p class="tag_title">Returns:</p>
2312
+ <ul class="return">
2313
+
2314
+ <li>
2315
+
2316
+
2317
+ <span class='type'>(<tt>String</tt>)</span>
2318
+
2319
+
2320
+
2321
+ </li>
2322
+
2323
+ </ul>
2324
+
2325
+ </div><table class="source_code">
2326
+ <tr>
2327
+ <td>
2328
+ <pre class="lines">
2329
+
2330
+
2331
+ 108
2332
+ 109
2333
+ 110</pre>
2334
+ </td>
2335
+ <td>
2336
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 108</span>
2337
+
2338
+ <span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
2339
+ <span class='ivar'>@name</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
2340
+ <span class='kw'>end</span></pre>
2341
+ </td>
2342
+ </tr>
2343
+ </table>
2344
+ </div>
2345
+
2346
+ <div class="method_details ">
2347
+ <h3 class="signature " id="navigated-instance_method">
2348
+
2349
+ #<strong>navigated</strong>(frame_payload) &#x21d2; <tt>Object</tt>
2350
+
2351
+
2352
+
2353
+
2354
+
2355
+ </h3><div class="docstring">
2356
+ <div class="discussion">
2357
+
2358
+
2359
+ </div>
2360
+ </div>
2361
+ <div class="tags">
2362
+ <p class="tag_title">Parameters:</p>
2363
+ <ul class="param">
2364
+
2365
+ <li>
2366
+
2367
+ <span class='name'>frame_payload</span>
2368
+
2369
+
2370
+ <span class='type'>(<tt>Hash</tt>)</span>
2371
+
2372
+
2373
+
2374
+ </li>
2375
+
2376
+ </ul>
2377
+
2378
+
2379
+ </div><table class="source_code">
2380
+ <tr>
2381
+ <td>
2382
+ <pre class="lines">
2383
+
2384
+
2385
+ 248
2386
+ 249
2387
+ 250
2388
+ 251
2389
+ 252
2390
+ 253
2391
+ 254
2392
+ 255
2393
+ 256
2394
+ 257</pre>
2395
+ </td>
2396
+ <td>
2397
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 248</span>
2398
+
2399
+ <span class='kw'>def</span> <span class='id identifier rubyid_navigated'>navigated</span><span class='lparen'>(</span><span class='id identifier rubyid_frame_payload'>frame_payload</span><span class='rparen'>)</span>
2400
+ <span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_frame_payload'>frame_payload</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>name</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
2401
+ <span class='comment'># TODO(lushnikov): remove this once requestInterception has loaderId exposed.
2402
+ </span> <span class='ivar'>@navigation_url</span> <span class='op'>=</span> <span class='id identifier rubyid_frame_payload'>frame_payload</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>url</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
2403
+ <span class='ivar'>@url</span> <span class='op'>=</span> <span class='id identifier rubyid_frame_payload'>frame_payload</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>url</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
2404
+
2405
+ <span class='comment'># Ensure loaderId updated.
2406
+ </span> <span class='comment'># The order of [Page.lifecycleEvent name=&quot;init&quot;] and [Page.frameNavigated] is random... for some reason...
2407
+ </span> <span class='ivar'>@loader_id</span> <span class='op'>=</span> <span class='id identifier rubyid_frame_payload'>frame_payload</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>loaderId</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
2408
+ <span class='kw'>end</span></pre>
2409
+ </td>
2410
+ </tr>
2411
+ </table>
2412
+ </div>
2413
+
2414
+ <div class="method_details ">
2415
+ <h3 class="signature " id="navigated_within_document-instance_method">
2416
+
2417
+ #<strong>navigated_within_document</strong>(url) &#x21d2; <tt>Object</tt>
2418
+
2419
+
2420
+
2421
+
2422
+
2423
+ </h3><div class="docstring">
2424
+ <div class="discussion">
2425
+
2426
+
2427
+ </div>
2428
+ </div>
2429
+ <div class="tags">
2430
+ <p class="tag_title">Parameters:</p>
2431
+ <ul class="param">
2432
+
2433
+ <li>
2434
+
2435
+ <span class='name'>url</span>
2436
+
2437
+
2438
+ <span class='type'>(<tt>String</tt>)</span>
2439
+
2440
+
2441
+
2442
+ </li>
2443
+
2444
+ </ul>
2445
+
2446
+
2447
+ </div><table class="source_code">
2448
+ <tr>
2449
+ <td>
2450
+ <pre class="lines">
2451
+
2452
+
2453
+ 260
2454
+ 261
2455
+ 262</pre>
2456
+ </td>
2457
+ <td>
2458
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 260</span>
2459
+
2460
+ <span class='kw'>def</span> <span class='id identifier rubyid_navigated_within_document'>navigated_within_document</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
2461
+ <span class='ivar'>@url</span> <span class='op'>=</span> <span class='id identifier rubyid_url'>url</span>
2462
+ <span class='kw'>end</span></pre>
2463
+ </td>
2464
+ </tr>
2465
+ </table>
2466
+ </div>
2467
+
2468
+ <div class="method_details ">
2469
+ <h3 class="signature " id="parent_frame-instance_method">
2470
+
2471
+ #<strong>parent_frame</strong> &#x21d2; <tt><span class='object_link'><a href="" title="Puppeteer::Frame (class)">Frame</a></span>?</tt>
2472
+
2473
+
2474
+
2475
+
2476
+
2477
+ </h3><div class="docstring">
2478
+ <div class="discussion">
2479
+
2480
+
2481
+ </div>
2482
+ </div>
2483
+ <div class="tags">
2484
+
2485
+ <p class="tag_title">Returns:</p>
2486
+ <ul class="return">
2487
+
2488
+ <li>
2489
+
2490
+
2491
+ <span class='type'>(<tt><span class='object_link'><a href="" title="Puppeteer::Frame (class)">Frame</a></span>?</tt>)</span>
2492
+
2493
+
2494
+
2495
+ </li>
2496
+
2497
+ </ul>
2498
+
2499
+ </div><table class="source_code">
2500
+ <tr>
2501
+ <td>
2502
+ <pre class="lines">
2503
+
2504
+
2505
+ 118
2506
+ 119
2507
+ 120</pre>
2508
+ </td>
2509
+ <td>
2510
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 118</span>
2511
+
2512
+ <span class='kw'>def</span> <span class='id identifier rubyid_parent_frame'>parent_frame</span>
2513
+ <span class='ivar'>@parent_frame</span>
2514
+ <span class='kw'>end</span></pre>
2515
+ </td>
2516
+ </tr>
2517
+ </table>
2518
+ </div>
2519
+
2520
+ <div class="method_details ">
2521
+ <h3 class="signature " id="S-instance_method">
2522
+
2523
+ #<strong>S</strong>(selector) &#x21d2; <tt>!Promise&lt;?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;</tt>
2524
+
2525
+
2526
+
2527
+
2528
+
2529
+ </h3><div class="docstring">
2530
+ <div class="discussion">
2531
+
2532
+ <p>`$()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
2533
+
2534
+
2535
+ </div>
2536
+ </div>
2537
+ <div class="tags">
2538
+ <p class="tag_title">Parameters:</p>
2539
+ <ul class="param">
2540
+
2541
+ <li>
2542
+
2543
+ <span class='name'>selector</span>
2544
+
2545
+
2546
+ <span class='type'>(<tt>string</tt>)</span>
2547
+
2548
+
2549
+
2550
+ </li>
2551
+
2552
+ </ul>
2553
+
2554
+ <p class="tag_title">Returns:</p>
2555
+ <ul class="return">
2556
+
2557
+ <li>
2558
+
2559
+
2560
+ <span class='type'>(<tt>!Promise&lt;?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;</tt>)</span>
2561
+
2562
+
2563
+
2564
+ </li>
2565
+
2566
+ </ul>
2567
+
2568
+ </div><table class="source_code">
2569
+ <tr>
2570
+ <td>
2571
+ <pre class="lines">
2572
+
2573
+
2574
+ 59
2575
+ 60
2576
+ 61</pre>
2577
+ </td>
2578
+ <td>
2579
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 59</span>
2580
+
2581
+ <span class='kw'>def</span> <span class='const'>S</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
2582
+ <span class='ivar'>@main_world</span><span class='period'>.</span><span class='const'>S</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
2583
+ <span class='kw'>end</span></pre>
2584
+ </td>
2585
+ </tr>
2586
+ </table>
2587
+ </div>
2588
+
2589
+ <div class="method_details ">
2590
+ <h3 class="signature " id="select-instance_method">
2591
+
2592
+ #<strong>select</strong>(selector, *values) &#x21d2; <tt>!Promise&lt;!Array&lt;string&gt;&gt;</tt>
2593
+
2594
+
2595
+
2596
+
2597
+
2598
+ </h3><div class="docstring">
2599
+ <div class="discussion">
2600
+
2601
+
2602
+ </div>
2603
+ </div>
2604
+ <div class="tags">
2605
+ <p class="tag_title">Parameters:</p>
2606
+ <ul class="param">
2607
+
2608
+ <li>
2609
+
2610
+ <span class='name'>selector</span>
2611
+
2612
+
2613
+ <span class='type'>(<tt>string</tt>)</span>
2614
+
2615
+
2616
+
2617
+ </li>
2618
+
2619
+ <li>
2620
+
2621
+ <span class='name'>values</span>
2622
+
2623
+
2624
+ <span class='type'>(<tt>!Array&lt;string&gt;</tt>)</span>
2625
+
2626
+
2627
+
2628
+ </li>
2629
+
2630
+ </ul>
2631
+
2632
+ <p class="tag_title">Returns:</p>
2633
+ <ul class="return">
2634
+
2635
+ <li>
2636
+
2637
+
2638
+ <span class='type'>(<tt>!Promise&lt;!Array&lt;string&gt;&gt;</tt>)</span>
2639
+
2640
+
2641
+
2642
+ </li>
2643
+
2644
+ </ul>
2645
+
2646
+ </div><table class="source_code">
2647
+ <tr>
2648
+ <td>
2649
+ <pre class="lines">
2650
+
2651
+
2652
+ 167
2653
+ 168
2654
+ 169</pre>
2655
+ </td>
2656
+ <td>
2657
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 167</span>
2658
+
2659
+ <span class='kw'>def</span> <span class='id identifier rubyid_select'>select</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span>
2660
+ <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_select'>select</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span>
2661
+ <span class='kw'>end</span></pre>
2662
+ </td>
2663
+ </tr>
2664
+ </table>
2665
+ </div>
2666
+
2667
+ <div class="method_details ">
2668
+ <h3 class="signature " id="set_content-instance_method">
2669
+
2670
+ #<strong>set_content</strong>(html, timeout: nil, wait_until: nil) &#x21d2; <tt>Object</tt>
2671
+
2672
+
2673
+
2674
+
2675
+
2676
+ </h3><div class="docstring">
2677
+ <div class="discussion">
2678
+
2679
+
2680
+ </div>
2681
+ </div>
2682
+ <div class="tags">
2683
+ <p class="tag_title">Parameters:</p>
2684
+ <ul class="param">
2685
+
2686
+ <li>
2687
+
2688
+ <span class='name'>html</span>
2689
+
2690
+
2691
+ <span class='type'>(<tt>string</tt>)</span>
2692
+
2693
+
2694
+
2695
+ </li>
2696
+
2697
+ <li>
2698
+
2699
+ <span class='name'>options</span>
2700
+
2701
+
2702
+ <span class='type'>(<tt>!{timeout?: number, waitUntil?: string|!Array&lt;string&gt;}=</tt>)</span>
2703
+
2704
+
2705
+
2706
+ </li>
2707
+
2708
+ </ul>
2709
+
2710
+
2711
+ </div><table class="source_code">
2712
+ <tr>
2713
+ <td>
2714
+ <pre class="lines">
2715
+
2716
+
2717
+ 103
2718
+ 104
2719
+ 105</pre>
2720
+ </td>
2721
+ <td>
2722
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 103</span>
2723
+
2724
+ <span class='kw'>def</span> <span class='id identifier rubyid_set_content'>set_content</span><span class='lparen'>(</span><span class='id identifier rubyid_html'>html</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
2725
+ <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_set_content'>set_content</span><span class='lparen'>(</span><span class='id identifier rubyid_html'>html</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
2726
+ <span class='kw'>end</span></pre>
2727
+ </td>
2728
+ </tr>
2729
+ </table>
2730
+ </div>
2731
+
2732
+ <div class="method_details ">
2733
+ <h3 class="signature " id="Seval-instance_method">
2734
+
2735
+ #<strong>Seval</strong>(selector, page_function, *args) &#x21d2; <tt>!Promise&lt;(!Object|undefined)&gt;</tt>
2736
+
2737
+
2738
+
2739
+
2740
+
2741
+ </h3><div class="docstring">
2742
+ <div class="discussion">
2743
+
2744
+ <p>`$eval()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
2745
+
2746
+
2747
+ </div>
2748
+ </div>
2749
+ <div class="tags">
2750
+ <p class="tag_title">Parameters:</p>
2751
+ <ul class="param">
2752
+
2753
+ <li>
2754
+
2755
+ <span class='name'>selector</span>
2756
+
2757
+
2758
+ <span class='type'>(<tt>string</tt>)</span>
2759
+
2760
+
2761
+
2762
+ </li>
2763
+
2764
+ <li>
2765
+
2766
+ <span class='name'>pageFunction</span>
2767
+
2768
+
2769
+ <span class='type'>(<tt>Function|string</tt>)</span>
2770
+
2771
+
2772
+
2773
+ </li>
2774
+
2775
+ <li>
2776
+
2777
+ <span class='name'>args</span>
2778
+
2779
+
2780
+ <span class='type'>(<tt>!Array&lt;*&gt;</tt>)</span>
2781
+
2782
+
2783
+
2784
+ </li>
2785
+
2786
+ </ul>
2787
+
2788
+ <p class="tag_title">Returns:</p>
2789
+ <ul class="return">
2790
+
2791
+ <li>
2792
+
2793
+
2794
+ <span class='type'>(<tt>!Promise&lt;(!Object|undefined)&gt;</tt>)</span>
2795
+
2796
+
2797
+
2798
+ </li>
2799
+
2800
+ </ul>
2801
+
2802
+ </div><table class="source_code">
2803
+ <tr>
2804
+ <td>
2805
+ <pre class="lines">
2806
+
2807
+
2808
+ 77
2809
+ 78
2810
+ 79</pre>
2811
+ </td>
2812
+ <td>
2813
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 77</span>
2814
+
2815
+ <span class='kw'>def</span> <span class='const'>Seval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
2816
+ <span class='ivar'>@main_world</span><span class='period'>.</span><span class='const'>Seval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
2817
+ <span class='kw'>end</span></pre>
2818
+ </td>
2819
+ </tr>
2820
+ </table>
2821
+ </div>
2822
+
2823
+ <div class="method_details ">
2824
+ <h3 class="signature " id="SS-instance_method">
2825
+
2826
+ #<strong>SS</strong>(selector) &#x21d2; <tt>!Promise&lt;!Array&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;&gt;</tt>
2827
+
2828
+
2829
+
2830
+
2831
+
2832
+ </h3><div class="docstring">
2833
+ <div class="discussion">
2834
+
2835
+ <p>`$$()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
2836
+
2837
+
2838
+ </div>
2839
+ </div>
2840
+ <div class="tags">
2841
+ <p class="tag_title">Parameters:</p>
2842
+ <ul class="param">
2843
+
2844
+ <li>
2845
+
2846
+ <span class='name'>selector</span>
2847
+
2848
+
2849
+ <span class='type'>(<tt>string</tt>)</span>
2850
+
2851
+
2852
+
2853
+ </li>
2854
+
2855
+ </ul>
2856
+
2857
+ <p class="tag_title">Returns:</p>
2858
+ <ul class="return">
2859
+
2860
+ <li>
2861
+
2862
+
2863
+ <span class='type'>(<tt>!Promise&lt;!Array&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;&gt;</tt>)</span>
2864
+
2865
+
2866
+
2867
+ </li>
2868
+
2869
+ </ul>
2870
+
2871
+ </div><table class="source_code">
2872
+ <tr>
2873
+ <td>
2874
+ <pre class="lines">
2875
+
2876
+
2877
+ 93
2878
+ 94
2879
+ 95</pre>
2880
+ </td>
2881
+ <td>
2882
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 93</span>
2883
+
2884
+ <span class='kw'>def</span> <span class='const'>SS</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
2885
+ <span class='ivar'>@main_world</span><span class='period'>.</span><span class='const'>SS</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
2886
+ <span class='kw'>end</span></pre>
2887
+ </td>
2888
+ </tr>
2889
+ </table>
2890
+ </div>
2891
+
2892
+ <div class="method_details ">
2893
+ <h3 class="signature " id="SSeval-instance_method">
2894
+
2895
+ #<strong>SSeval</strong>(selector, page_function, *args) &#x21d2; <tt>!Promise&lt;(!Object|undefined)&gt;</tt>
2896
+
2897
+
2898
+
2899
+
2900
+
2901
+ </h3><div class="docstring">
2902
+ <div class="discussion">
2903
+
2904
+ <p>`$$eval()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
2905
+
2906
+
2907
+ </div>
2908
+ </div>
2909
+ <div class="tags">
2910
+ <p class="tag_title">Parameters:</p>
2911
+ <ul class="param">
2912
+
2913
+ <li>
2914
+
2915
+ <span class='name'>selector</span>
2916
+
2917
+
2918
+ <span class='type'>(<tt>string</tt>)</span>
2919
+
2920
+
2921
+
2922
+ </li>
2923
+
2924
+ <li>
2925
+
2926
+ <span class='name'>pageFunction</span>
2927
+
2928
+
2929
+ <span class='type'>(<tt>Function|string</tt>)</span>
2930
+
2931
+
2932
+
2933
+ </li>
2934
+
2935
+ <li>
2936
+
2937
+ <span class='name'>args</span>
2938
+
2939
+
2940
+ <span class='type'>(<tt>!Array&lt;*&gt;</tt>)</span>
2941
+
2942
+
2943
+
2944
+ </li>
2945
+
2946
+ </ul>
2947
+
2948
+ <p class="tag_title">Returns:</p>
2949
+ <ul class="return">
2950
+
2951
+ <li>
2952
+
2953
+
2954
+ <span class='type'>(<tt>!Promise&lt;(!Object|undefined)&gt;</tt>)</span>
2955
+
2956
+
2957
+
2958
+ </li>
2959
+
2960
+ </ul>
2961
+
2962
+ </div><table class="source_code">
2963
+ <tr>
2964
+ <td>
2965
+ <pre class="lines">
2966
+
2967
+
2968
+ 86
2969
+ 87
2970
+ 88</pre>
2971
+ </td>
2972
+ <td>
2973
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 86</span>
2974
+
2975
+ <span class='kw'>def</span> <span class='const'>SSeval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
2976
+ <span class='ivar'>@main_world</span><span class='period'>.</span><span class='const'>SSeval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
2977
+ <span class='kw'>end</span></pre>
2978
+ </td>
2979
+ </tr>
2980
+ </table>
2981
+ </div>
2982
+
2983
+ <div class="method_details ">
2984
+ <h3 class="signature " id="Sx-instance_method">
2985
+
2986
+ #<strong>Sx</strong>(expression) &#x21d2; <tt>!Promise&lt;!Array&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;&gt;</tt>
2987
+
2988
+
2989
+
2990
+
2991
+
2992
+ </h3><div class="docstring">
2993
+ <div class="discussion">
2994
+
2995
+ <p>`$x()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
2996
+
2997
+
2998
+ </div>
2999
+ </div>
3000
+ <div class="tags">
3001
+ <p class="tag_title">Parameters:</p>
3002
+ <ul class="param">
3003
+
3004
+ <li>
3005
+
3006
+ <span class='name'>expression</span>
3007
+
3008
+
3009
+ <span class='type'>(<tt>string</tt>)</span>
3010
+
3011
+
3012
+
3013
+ </li>
3014
+
3015
+ </ul>
3016
+
3017
+ <p class="tag_title">Returns:</p>
3018
+ <ul class="return">
3019
+
3020
+ <li>
3021
+
3022
+
3023
+ <span class='type'>(<tt>!Promise&lt;!Array&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>&gt;&gt;</tt>)</span>
3024
+
3025
+
3026
+
3027
+ </li>
3028
+
3029
+ </ul>
3030
+
3031
+ </div><table class="source_code">
3032
+ <tr>
3033
+ <td>
3034
+ <pre class="lines">
3035
+
3036
+
3037
+ 67
3038
+ 68
3039
+ 69</pre>
3040
+ </td>
3041
+ <td>
3042
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 67</span>
3043
+
3044
+ <span class='kw'>def</span> <span class='const'>Sx</span><span class='lparen'>(</span><span class='id identifier rubyid_expression'>expression</span><span class='rparen'>)</span>
3045
+ <span class='ivar'>@main_world</span><span class='period'>.</span><span class='const'>Sx</span><span class='lparen'>(</span><span class='id identifier rubyid_expression'>expression</span><span class='rparen'>)</span>
3046
+ <span class='kw'>end</span></pre>
3047
+ </td>
3048
+ </tr>
3049
+ </table>
3050
+ </div>
3051
+
3052
+ <div class="method_details ">
3053
+ <h3 class="signature " id="tap-instance_method">
3054
+
3055
+ #<strong>tap</strong>(selector) &#x21d2; <tt>Object</tt>
3056
+
3057
+
3058
+
3059
+
3060
+
3061
+ </h3><div class="docstring">
3062
+ <div class="discussion">
3063
+
3064
+
3065
+ </div>
3066
+ </div>
3067
+ <div class="tags">
3068
+ <p class="tag_title">Parameters:</p>
3069
+ <ul class="param">
3070
+
3071
+ <li>
3072
+
3073
+ <span class='name'>selector</span>
3074
+
3075
+
3076
+ <span class='type'>(<tt>string</tt>)</span>
3077
+
3078
+
3079
+
3080
+ </li>
3081
+
3082
+ </ul>
3083
+
3084
+
3085
+ </div><table class="source_code">
3086
+ <tr>
3087
+ <td>
3088
+ <pre class="lines">
3089
+
3090
+
3091
+ 172
3092
+ 173
3093
+ 174</pre>
3094
+ </td>
3095
+ <td>
3096
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 172</span>
3097
+
3098
+ <span class='kw'>def</span> <span class='id identifier rubyid_tap'>tap</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
3099
+ <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
3100
+ <span class='kw'>end</span></pre>
3101
+ </td>
3102
+ </tr>
3103
+ </table>
3104
+ </div>
3105
+
3106
+ <div class="method_details ">
3107
+ <h3 class="signature " id="title-instance_method">
3108
+
3109
+ #<strong>title</strong> &#x21d2; <tt>Object</tt>
3110
+
3111
+
3112
+
3113
+
3114
+
3115
+ </h3><table class="source_code">
3116
+ <tr>
3117
+ <td>
3118
+ <pre class="lines">
3119
+
3120
+
3121
+ 243
3122
+ 244
3123
+ 245</pre>
3124
+ </td>
3125
+ <td>
3126
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 243</span>
3127
+
3128
+ <span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span>
3129
+ <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_title'>title</span>
3130
+ <span class='kw'>end</span></pre>
3131
+ </td>
3132
+ </tr>
3133
+ </table>
3134
+ </div>
3135
+
3136
+ <div class="method_details ">
3137
+ <h3 class="signature " id="type_text-instance_method">
3138
+
3139
+ #<strong>type_text</strong>(selector, text, delay: nil) &#x21d2; <tt>Object</tt>
3140
+
3141
+
3142
+
3143
+
3144
+
3145
+ </h3><div class="docstring">
3146
+ <div class="discussion">
3147
+
3148
+
3149
+ </div>
3150
+ </div>
3151
+ <div class="tags">
3152
+ <p class="tag_title">Parameters:</p>
3153
+ <ul class="param">
3154
+
3155
+ <li>
3156
+
3157
+ <span class='name'>selector</span>
3158
+
3159
+
3160
+ <span class='type'>(<tt>String</tt>)</span>
3161
+
3162
+
3163
+
3164
+ </li>
3165
+
3166
+ <li>
3167
+
3168
+ <span class='name'>text</span>
3169
+
3170
+
3171
+ <span class='type'>(<tt>String</tt>)</span>
3172
+
3173
+
3174
+
3175
+ </li>
3176
+
3177
+ <li>
3178
+
3179
+ <span class='name'>delay</span>
3180
+
3181
+
3182
+ <span class='type'>(<tt>Number</tt>)</span>
3183
+
3184
+
3185
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3186
+
3187
+
3188
+ </li>
3189
+
3190
+ </ul>
3191
+
3192
+
3193
+ </div><table class="source_code">
3194
+ <tr>
3195
+ <td>
3196
+ <pre class="lines">
3197
+
3198
+
3199
+ 179
3200
+ 180
3201
+ 181</pre>
3202
+ </td>
3203
+ <td>
3204
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 179</span>
3205
+
3206
+ <span class='kw'>def</span> <span class='id identifier rubyid_type_text'>type_text</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
3207
+ <span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_type_text'>type_text</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='id identifier rubyid_delay'>delay</span><span class='rparen'>)</span>
3208
+ <span class='kw'>end</span></pre>
3209
+ </td>
3210
+ </tr>
3211
+ </table>
3212
+ </div>
3213
+
3214
+ <div class="method_details ">
3215
+ <h3 class="signature " id="url-instance_method">
3216
+
3217
+ #<strong>url</strong> &#x21d2; <tt>String</tt>
3218
+
3219
+
3220
+
3221
+
3222
+
3223
+ </h3><div class="docstring">
3224
+ <div class="discussion">
3225
+
3226
+
3227
+ </div>
3228
+ </div>
3229
+ <div class="tags">
3230
+
3231
+ <p class="tag_title">Returns:</p>
3232
+ <ul class="return">
3233
+
3234
+ <li>
3235
+
3236
+
3237
+ <span class='type'>(<tt>String</tt>)</span>
3238
+
3239
+
3240
+
3241
+ </li>
3242
+
3243
+ </ul>
3244
+
3245
+ </div><table class="source_code">
3246
+ <tr>
3247
+ <td>
3248
+ <pre class="lines">
3249
+
3250
+
3251
+ 113
3252
+ 114
3253
+ 115</pre>
3254
+ </td>
3255
+ <td>
3256
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 113</span>
3257
+
3258
+ <span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
3259
+ <span class='ivar'>@url</span>
3260
+ <span class='kw'>end</span></pre>
3261
+ </td>
3262
+ </tr>
3263
+ </table>
3264
+ </div>
3265
+
3266
+ <div class="method_details ">
3267
+ <h3 class="signature " id="wait_for_function-instance_method">
3268
+
3269
+ #<strong>wait_for_function</strong>(page_function, options = {}, *args) &#x21d2; <tt>!Promise&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="JSHandle.html" title="Puppeteer::JSHandle (class)">JSHandle</a></span>&gt;</tt>
3270
+
3271
+
3272
+
3273
+
3274
+
3275
+ </h3><div class="docstring">
3276
+ <div class="discussion">
3277
+
3278
+
3279
+ </div>
3280
+ </div>
3281
+ <div class="tags">
3282
+ <p class="tag_title">Parameters:</p>
3283
+ <ul class="param">
3284
+
3285
+ <li>
3286
+
3287
+ <span class='name'>pageFunction</span>
3288
+
3289
+
3290
+ <span class='type'>(<tt>Function|string</tt>)</span>
3291
+
3292
+
3293
+
3294
+ </li>
3295
+
3296
+ <li>
3297
+
3298
+ <span class='name'>options</span>
3299
+
3300
+
3301
+ <span class='type'>(<tt>!{polling?: string|number, timeout?: number}=</tt>)</span>
3302
+
3303
+
3304
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
3305
+
3306
+
3307
+ </li>
3308
+
3309
+ <li>
3310
+
3311
+ <span class='name'>args</span>
3312
+
3313
+
3314
+ <span class='type'>(<tt>!Array&lt;*&gt;</tt>)</span>
3315
+
3316
+
3317
+
3318
+ </li>
3319
+
3320
+ </ul>
3321
+
3322
+ <p class="tag_title">Returns:</p>
3323
+ <ul class="return">
3324
+
3325
+ <li>
3326
+
3327
+
3328
+ <span class='type'>(<tt>!Promise&lt;!<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="JSHandle.html" title="Puppeteer::JSHandle (class)">JSHandle</a></span>&gt;</tt>)</span>
3329
+
3330
+
3331
+
3332
+ </li>
3333
+
3334
+ </ul>
3335
+
3336
+ </div><table class="source_code">
3337
+ <tr>
3338
+ <td>
3339
+ <pre class="lines">
3340
+
3341
+
3342
+ 239
3343
+ 240
3344
+ 241</pre>
3345
+ </td>
3346
+ <td>
3347
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 239</span>
3348
+
3349
+ <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_function'>wait_for_function</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
3350
+ <span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_function'>wait_for_function</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
3351
+ <span class='kw'>end</span></pre>
3352
+ </td>
3353
+ </tr>
3354
+ </table>
3355
+ </div>
3356
+
3357
+ <div class="method_details ">
3358
+ <h3 class="signature " id="wait_for_navigation-instance_method">
3359
+
3360
+ #<strong>wait_for_navigation</strong>(timeout: nil, wait_until: nil) &#x21d2; <tt>Object</tt>
3361
+
3362
+
3363
+
3364
+
3365
+
3366
+ </h3><div class="docstring">
3367
+ <div class="discussion">
3368
+
3369
+
3370
+ </div>
3371
+ </div>
3372
+ <div class="tags">
3373
+ <p class="tag_title">Parameters:</p>
3374
+ <ul class="param">
3375
+
3376
+ <li>
3377
+
3378
+ <span class='name'>timeout</span>
3379
+
3380
+
3381
+ <span class='type'>(<tt>number|nil</tt>)</span>
3382
+
3383
+
3384
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3385
+
3386
+
3387
+ </li>
3388
+
3389
+ <li>
3390
+
3391
+ <span class='name'>wait_until</span>
3392
+
3393
+
3394
+ <span class='type'>(<tt>string|nil</tt>)</span>
3395
+
3396
+
3397
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3398
+
3399
+
3400
+ &mdash;
3401
+ <div class='inline'>
3402
+ <p>&#39;load&#39; | &#39;domcontentloaded&#39; | &#39;networkidle0&#39; | &#39;networkidle2&#39;</p>
3403
+ </div>
3404
+
3405
+ </li>
3406
+
3407
+ </ul>
3408
+
3409
+
3410
+ </div><table class="source_code">
3411
+ <tr>
3412
+ <td>
3413
+ <pre class="lines">
3414
+
3415
+
3416
+ 36
3417
+ 37
3418
+ 38</pre>
3419
+ </td>
3420
+ <td>
3421
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 36</span>
3422
+
3423
+ <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_navigation'>wait_for_navigation</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
3424
+ <span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_frame_navigation'>wait_for_frame_navigation</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
3425
+ <span class='kw'>end</span></pre>
3426
+ </td>
3427
+ </tr>
3428
+ </table>
3429
+ </div>
3430
+
3431
+ <div class="method_details ">
3432
+ <h3 class="signature " id="wait_for_selector-instance_method">
3433
+
3434
+ #<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) &#x21d2; <tt>Object</tt>
3435
+
3436
+
3437
+
3438
+
3439
+
3440
+ </h3><div class="docstring">
3441
+ <div class="discussion">
3442
+
3443
+
3444
+ </div>
3445
+ </div>
3446
+ <div class="tags">
3447
+ <p class="tag_title">Parameters:</p>
3448
+ <ul class="param">
3449
+
3450
+ <li>
3451
+
3452
+ <span class='name'>selector</span>
3453
+
3454
+
3455
+ <span class='type'>(<tt>String</tt>)</span>
3456
+
3457
+
3458
+
3459
+ </li>
3460
+
3461
+ <li>
3462
+
3463
+ <span class='name'>visible</span>
3464
+
3465
+
3466
+ <span class='type'>(<tt>Boolean</tt>)</span>
3467
+
3468
+
3469
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3470
+
3471
+
3472
+ &mdash;
3473
+ <div class='inline'>
3474
+ <p>Wait for element visible (not &#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
3475
+ </div>
3476
+
3477
+ </li>
3478
+
3479
+ <li>
3480
+
3481
+ <span class='name'>hidden</span>
3482
+
3483
+
3484
+ <span class='type'>(<tt>Boolean</tt>)</span>
3485
+
3486
+
3487
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3488
+
3489
+
3490
+ &mdash;
3491
+ <div class='inline'>
3492
+ <p>Wait for element invisible (&#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
3493
+ </div>
3494
+
3495
+ </li>
3496
+
3497
+ <li>
3498
+
3499
+ <span class='name'>timeout</span>
3500
+
3501
+
3502
+ <span class='type'>(<tt>Integer</tt>)</span>
3503
+
3504
+
3505
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3506
+
3507
+
3508
+ </li>
3509
+
3510
+ </ul>
3511
+
3512
+
3513
+ </div><table class="source_code">
3514
+ <tr>
3515
+ <td>
3516
+ <pre class="lines">
3517
+
3518
+
3519
+ 209
3520
+ 210
3521
+ 211
3522
+ 212
3523
+ 213
3524
+ 214
3525
+ 215
3526
+ 216
3527
+ 217
3528
+ 218</pre>
3529
+ </td>
3530
+ <td>
3531
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 209</span>
3532
+
3533
+ <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_selector'>wait_for_selector</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
3534
+ <span class='id identifier rubyid_handle'>handle</span> <span class='op'>=</span> <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_selector'>wait_for_selector</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='id identifier rubyid_visible'>visible</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='id identifier rubyid_hidden'>hidden</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
3535
+ <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_handle'>handle</span>
3536
+ <span class='kw'>return</span> <span class='kw'>nil</span>
3537
+ <span class='kw'>end</span>
3538
+ <span class='id identifier rubyid_main_execution_context'>main_execution_context</span> <span class='op'>=</span> <span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span>
3539
+ <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_main_execution_context'>main_execution_context</span><span class='period'>.</span><span class='id identifier rubyid_adopt_element_handle'>adopt_element_handle</span><span class='lparen'>(</span><span class='id identifier rubyid_handle'>handle</span><span class='rparen'>)</span>
3540
+ <span class='id identifier rubyid_handle'>handle</span><span class='period'>.</span><span class='id identifier rubyid_dispose'>dispose</span>
3541
+ <span class='id identifier rubyid_result'>result</span>
3542
+ <span class='kw'>end</span></pre>
3543
+ </td>
3544
+ </tr>
3545
+ </table>
3546
+ </div>
3547
+
3548
+ <div class="method_details ">
3549
+ <h3 class="signature " id="wait_for_xpath-instance_method">
3550
+
3551
+ #<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) &#x21d2; <tt>Object</tt>
3552
+
3553
+
3554
+
3555
+
3556
+
3557
+ </h3><div class="docstring">
3558
+ <div class="discussion">
3559
+
3560
+
3561
+ </div>
3562
+ </div>
3563
+ <div class="tags">
3564
+ <p class="tag_title">Parameters:</p>
3565
+ <ul class="param">
3566
+
3567
+ <li>
3568
+
3569
+ <span class='name'>xpath</span>
3570
+
3571
+
3572
+ <span class='type'>(<tt>String</tt>)</span>
3573
+
3574
+
3575
+
3576
+ </li>
3577
+
3578
+ <li>
3579
+
3580
+ <span class='name'>visible</span>
3581
+
3582
+
3583
+ <span class='type'>(<tt>Boolean</tt>)</span>
3584
+
3585
+
3586
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3587
+
3588
+
3589
+ &mdash;
3590
+ <div class='inline'>
3591
+ <p>Wait for element visible (not &#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
3592
+ </div>
3593
+
3594
+ </li>
3595
+
3596
+ <li>
3597
+
3598
+ <span class='name'>hidden</span>
3599
+
3600
+
3601
+ <span class='type'>(<tt>Boolean</tt>)</span>
3602
+
3603
+
3604
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3605
+
3606
+
3607
+ &mdash;
3608
+ <div class='inline'>
3609
+ <p>Wait for element invisible (&#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
3610
+ </div>
3611
+
3612
+ </li>
3613
+
3614
+ <li>
3615
+
3616
+ <span class='name'>timeout</span>
3617
+
3618
+
3619
+ <span class='type'>(<tt>Integer</tt>)</span>
3620
+
3621
+
3622
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3623
+
3624
+
3625
+ </li>
3626
+
3627
+ </ul>
3628
+
3629
+
3630
+ </div><table class="source_code">
3631
+ <tr>
3632
+ <td>
3633
+ <pre class="lines">
3634
+
3635
+
3636
+ 224
3637
+ 225
3638
+ 226
3639
+ 227
3640
+ 228
3641
+ 229
3642
+ 230
3643
+ 231
3644
+ 232
3645
+ 233</pre>
3646
+ </td>
3647
+ <td>
3648
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 224</span>
3649
+
3650
+ <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_xpath'>wait_for_xpath</span><span class='lparen'>(</span><span class='id identifier rubyid_xpath'>xpath</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
3651
+ <span class='id identifier rubyid_handle'>handle</span> <span class='op'>=</span> <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_xpath'>wait_for_xpath</span><span class='lparen'>(</span><span class='id identifier rubyid_xpath'>xpath</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='id identifier rubyid_visible'>visible</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='id identifier rubyid_hidden'>hidden</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
3652
+ <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_handle'>handle</span>
3653
+ <span class='kw'>return</span> <span class='kw'>nil</span>
3654
+ <span class='kw'>end</span>
3655
+ <span class='id identifier rubyid_main_execution_context'>main_execution_context</span> <span class='op'>=</span> <span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span>
3656
+ <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_main_execution_context'>main_execution_context</span><span class='period'>.</span><span class='id identifier rubyid_adopt_element_handle'>adopt_element_handle</span><span class='lparen'>(</span><span class='id identifier rubyid_handle'>handle</span><span class='rparen'>)</span>
3657
+ <span class='id identifier rubyid_handle'>handle</span><span class='period'>.</span><span class='id identifier rubyid_dispose'>dispose</span>
3658
+ <span class='id identifier rubyid_result'>result</span>
3659
+ <span class='kw'>end</span></pre>
3660
+ </td>
3661
+ </tr>
3662
+ </table>
3663
+ </div>
3664
+
3665
+ </div>
3666
+
3667
+ </div>
3668
+
3669
+ <div id="footer">
3670
+ Generated on Fri Jun 12 12:38:33 2020 by
3671
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
3672
+ 0.9.24 (ruby-2.6.3).
3673
+ </div>
3674
+
3675
+ </div>
3676
+ </body>
3677
+ </html>