puppeteer-ruby 0.0.13 → 0.0.14

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