puppeteer-ruby 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/docs/Puppeteer.html +2 -2
  3. data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
  4. data/docs/Puppeteer/Browser.html +1 -1
  5. data/docs/Puppeteer/BrowserContext.html +1 -1
  6. data/docs/Puppeteer/BrowserFetcher.html +1 -1
  7. data/docs/Puppeteer/BrowserRunner.html +1 -1
  8. data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +1 -1
  9. data/docs/Puppeteer/CDPSession.html +86 -57
  10. data/docs/Puppeteer/CDPSession/Error.html +1 -1
  11. data/docs/Puppeteer/ConcurrentRubyUtils.html +1 -1
  12. data/docs/Puppeteer/Connection.html +1 -1
  13. data/docs/Puppeteer/Connection/MessageCallback.html +1 -1
  14. data/docs/Puppeteer/Connection/ProtocolError.html +1 -1
  15. data/docs/Puppeteer/Connection/RequestDebugPrinter.html +1 -1
  16. data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +1 -1
  17. data/docs/Puppeteer/ConsoleMessage.html +1 -1
  18. data/docs/Puppeteer/ConsoleMessage/Location.html +1 -1
  19. data/docs/Puppeteer/DOMWorld.html +610 -68
  20. data/docs/Puppeteer/DOMWorld/DetachedError.html +1 -1
  21. data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +1 -1
  22. data/docs/Puppeteer/DebugPrint.html +2 -2
  23. data/docs/Puppeteer/Device.html +1 -1
  24. data/docs/Puppeteer/Devices.html +1 -1
  25. data/docs/Puppeteer/ElementHandle.html +306 -109
  26. data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +5 -5
  27. data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +5 -5
  28. data/docs/Puppeteer/ElementHandle/Point.html +28 -28
  29. data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +1 -1
  30. data/docs/Puppeteer/EmulationManager.html +1 -1
  31. data/docs/Puppeteer/EventCallbackable.html +1 -1
  32. data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
  33. data/docs/Puppeteer/ExecutionContext.html +124 -1
  34. data/docs/Puppeteer/ExecutionContext/EvaluationError.html +1 -1
  35. data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +1 -1
  36. data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +2 -2
  37. data/docs/Puppeteer/Frame.html +117 -65
  38. data/docs/Puppeteer/FrameManager.html +1 -1
  39. data/docs/Puppeteer/FrameManager/NavigationError.html +1 -1
  40. data/docs/Puppeteer/IfPresent.html +1 -1
  41. data/docs/Puppeteer/JSHandle.html +1 -1
  42. data/docs/Puppeteer/Keyboard.html +1 -1
  43. data/docs/Puppeteer/Keyboard/KeyDefinition.html +1 -1
  44. data/docs/Puppeteer/Keyboard/KeyDescription.html +1 -1
  45. data/docs/Puppeteer/Launcher.html +1 -1
  46. data/docs/Puppeteer/Launcher/Base.html +1 -1
  47. data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +1 -1
  48. data/docs/Puppeteer/Launcher/BrowserOptions.html +1 -1
  49. data/docs/Puppeteer/Launcher/Chrome.html +1 -1
  50. data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +1 -1
  51. data/docs/Puppeteer/Launcher/ChromeArgOptions.html +1 -1
  52. data/docs/Puppeteer/Launcher/LaunchOptions.html +1 -1
  53. data/docs/Puppeteer/LifecycleWatcher.html +1 -1
  54. data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +1 -1
  55. data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +1 -1
  56. data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +1 -1
  57. data/docs/Puppeteer/Mouse.html +1 -1
  58. data/docs/Puppeteer/Mouse/Button.html +1 -1
  59. data/docs/Puppeteer/NetworkManager.html +1 -1
  60. data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
  61. data/docs/Puppeteer/Page.html +95 -43
  62. data/docs/Puppeteer/Page/ScreenshotOptions.html +1 -1
  63. data/docs/Puppeteer/Page/ScriptTag.html +1 -1
  64. data/docs/Puppeteer/Page/StyleTag.html +1 -1
  65. data/docs/Puppeteer/Page/TargetCrashedError.html +1 -1
  66. data/docs/Puppeteer/RemoteObject.html +1 -1
  67. data/docs/Puppeteer/Target.html +1 -1
  68. data/docs/Puppeteer/Target/InitializeFailure.html +1 -1
  69. data/docs/Puppeteer/Target/TargetInfo.html +1 -1
  70. data/docs/Puppeteer/TimeoutError.html +1 -1
  71. data/docs/Puppeteer/TimeoutSettings.html +1 -1
  72. data/docs/Puppeteer/TouchScreen.html +1 -1
  73. data/docs/Puppeteer/Viewport.html +1 -1
  74. data/docs/Puppeteer/WaitTask.html +434 -8
  75. data/docs/Puppeteer/WaitTask/TerminatedError.html +1 -1
  76. data/docs/Puppeteer/WaitTask/TimeoutError.html +206 -0
  77. data/docs/Puppeteer/WebSocket.html +1 -1
  78. data/docs/Puppeteer/WebSocket/DriverImpl.html +1 -1
  79. data/docs/Puppeteer/WebSocketTransport.html +1 -1
  80. data/docs/Puppeteer/WebSocktTransportError.html +1 -1
  81. data/docs/_index.html +8 -1
  82. data/docs/class_list.html +1 -1
  83. data/docs/file.README.html +1 -1
  84. data/docs/index.html +1 -1
  85. data/docs/method_list.html +615 -519
  86. data/docs/top-level-namespace.html +1 -1
  87. data/lib/puppeteer/cdp_session.rb +33 -11
  88. data/lib/puppeteer/dom_world.rb +97 -90
  89. data/lib/puppeteer/element_handle.rb +36 -54
  90. data/lib/puppeteer/execution_context.rb +23 -17
  91. data/lib/puppeteer/frame.rb +13 -11
  92. data/lib/puppeteer/page.rb +29 -11
  93. data/lib/puppeteer/version.rb +1 -1
  94. data/lib/puppeteer/wait_task.rb +183 -1
  95. metadata +3 -2
@@ -175,12 +175,12 @@
175
175
  <pre class="lines">
176
176
 
177
177
 
178
- 387
179
- 388
180
- 389</pre>
178
+ 376
179
+ 377
180
+ 378</pre>
181
181
  </td>
182
182
  <td>
183
- <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 387</span>
183
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 376</span>
184
184
 
185
185
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
186
186
  <span class='kw'>super</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>failed to find element matching selector \&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_selector'>selector</span><span class='embexpr_end'>}</span><span class='tstring_content'>\&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
@@ -196,7 +196,7 @@
196
196
  </div>
197
197
 
198
198
  <div id="footer">
199
- Generated on Sun Apr 26 15:52:57 2020 by
199
+ Generated on Mon May 25 23:22:50 2020 by
200
200
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
201
201
  0.9.24 (ruby-2.6.3).
202
202
  </div>
@@ -175,12 +175,12 @@
175
175
  <pre class="lines">
176
176
 
177
177
 
178
- 87
179
- 88
180
- 89</pre>
178
+ 78
179
+ 79
180
+ 80</pre>
181
181
  </td>
182
182
  <td>
183
- <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 87</span>
183
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 78</span>
184
184
 
185
185
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
186
186
  <span class='kw'>super</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Node is either not visible or not an HTMLElement</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
@@ -196,7 +196,7 @@
196
196
  </div>
197
197
 
198
198
  <div id="footer">
199
- Generated on Sun Apr 26 15:52:57 2020 by
199
+ Generated on Mon May 25 23:22:50 2020 by
200
200
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
201
201
  0.9.24 (ruby-2.6.3).
202
202
  </div>
@@ -279,13 +279,13 @@
279
279
  <pre class="lines">
280
280
 
281
281
 
282
- 64
283
- 65
284
- 66
285
- 67</pre>
282
+ 55
283
+ 56
284
+ 57
285
+ 58</pre>
286
286
  </td>
287
287
  <td>
288
- <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 64</span>
288
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 55</span>
289
289
 
290
290
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>x:</span><span class='comma'>,</span> <span class='label'>y:</span><span class='rparen'>)</span>
291
291
  <span class='ivar'>@x</span> <span class='op'>=</span> <span class='id identifier rubyid_x'>x</span>
@@ -329,12 +329,12 @@
329
329
  <pre class="lines">
330
330
 
331
331
 
332
- 83
333
- 84
334
- 85</pre>
332
+ 74
333
+ 75
334
+ 76</pre>
335
335
  </td>
336
336
  <td>
337
- <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 83</span>
337
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 74</span>
338
338
 
339
339
  <span class='kw'>def</span> <span class='id identifier rubyid_x'>x</span>
340
340
  <span class='ivar'>@x</span>
@@ -372,12 +372,12 @@
372
372
  <pre class="lines">
373
373
 
374
374
 
375
- 83
376
- 84
377
- 85</pre>
375
+ 74
376
+ 75
377
+ 76</pre>
378
378
  </td>
379
379
  <td>
380
- <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 83</span>
380
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 74</span>
381
381
 
382
382
  <span class='kw'>def</span> <span class='id identifier rubyid_y'>y</span>
383
383
  <span class='ivar'>@y</span>
@@ -409,15 +409,15 @@
409
409
  <pre class="lines">
410
410
 
411
411
 
412
- 69
413
- 70
414
- 71
415
- 72
416
- 73
417
- 74</pre>
412
+ 60
413
+ 61
414
+ 62
415
+ 63
416
+ 64
417
+ 65</pre>
418
418
  </td>
419
419
  <td>
420
- <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 69</span>
420
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 60</span>
421
421
 
422
422
  <span class='kw'>def</span> <span class='op'>+</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
423
423
  <span class='const'><span class='object_link'><a href="" title="Puppeteer::ElementHandle::Point (class)">Point</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Puppeteer::ElementHandle::Point#initialize (method)">new</a></span></span><span class='lparen'>(</span>
@@ -445,15 +445,15 @@
445
445
  <pre class="lines">
446
446
 
447
447
 
448
- 76
449
- 77
450
- 78
451
- 79
452
- 80
453
- 81</pre>
448
+ 67
449
+ 68
450
+ 69
451
+ 70
452
+ 71
453
+ 72</pre>
454
454
  </td>
455
455
  <td>
456
- <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 76</span>
456
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 67</span>
457
457
 
458
458
  <span class='kw'>def</span> <span class='op'>/</span><span class='lparen'>(</span><span class='id identifier rubyid_num'>num</span><span class='rparen'>)</span>
459
459
  <span class='const'><span class='object_link'><a href="" title="Puppeteer::ElementHandle::Point (class)">Point</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Puppeteer::ElementHandle::Point#initialize (method)">new</a></span></span><span class='lparen'>(</span>
@@ -471,7 +471,7 @@
471
471
  </div>
472
472
 
473
473
  <div id="footer">
474
- Generated on Sun Apr 26 15:52:57 2020 by
474
+ Generated on Mon May 25 23:22:50 2020 by
475
475
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
476
476
  0.9.24 (ruby-2.6.3).
477
477
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Sun Apr 26 15:52:57 2020 by
117
+ Generated on Mon May 25 23:22:50 2020 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
119
  0.9.24 (ruby-2.6.3).
120
120
  </div>
@@ -444,7 +444,7 @@
444
444
  </div>
445
445
 
446
446
  <div id="footer">
447
- Generated on Sun Apr 26 15:52:58 2020 by
447
+ Generated on Mon May 25 23:22:50 2020 by
448
448
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
449
449
  0.9.24 (ruby-2.6.3).
450
450
  </div>
@@ -423,7 +423,7 @@
423
423
  </div>
424
424
 
425
425
  <div id="footer">
426
- Generated on Sun Apr 26 15:52:55 2020 by
426
+ Generated on Mon May 25 23:22:48 2020 by
427
427
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
428
428
  0.9.24 (ruby-2.6.3).
429
429
  </div>
@@ -425,7 +425,7 @@
425
425
  </div>
426
426
 
427
427
  <div id="footer">
428
- Generated on Sun Apr 26 15:52:58 2020 by
428
+ Generated on Mon May 25 23:22:51 2020 by
429
429
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
430
430
  0.9.24 (ruby-2.6.3).
431
431
  </div>
@@ -234,6 +234,28 @@
234
234
  <p>only used in DomWorld#delete_context.</p>
235
235
  </div></span>
236
236
 
237
+ </li>
238
+
239
+
240
+ <li class="public ">
241
+ <span class="summary_signature">
242
+
243
+ <a href="#adopt_element_handle-instance_method" title="#adopt_element_handle (instance method)">#<strong>adopt_element_handle</strong>(element_handle) &#x21d2; Puppeteer::ElementHandle </a>
244
+
245
+
246
+
247
+ </span>
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+ <span class="summary_desc"><div class='inline'></div></span>
258
+
237
259
  </li>
238
260
 
239
261
 
@@ -565,6 +587,107 @@
565
587
  </td>
566
588
  </tr>
567
589
  </table>
590
+ </div>
591
+
592
+ <div class="method_details ">
593
+ <h3 class="signature " id="adopt_element_handle-instance_method">
594
+
595
+ #<strong>adopt_element_handle</strong>(element_handle) &#x21d2; <tt><span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">Puppeteer::ElementHandle</a></span></tt>
596
+
597
+
598
+
599
+
600
+
601
+ </h3><div class="docstring">
602
+ <div class="discussion">
603
+
604
+
605
+ </div>
606
+ </div>
607
+ <div class="tags">
608
+ <p class="tag_title">Parameters:</p>
609
+ <ul class="param">
610
+
611
+ <li>
612
+
613
+ <span class='name'>element_handle</span>
614
+
615
+
616
+ <span class='type'>(<tt><span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">Puppeteer::ElementHandle</a></span></tt>)</span>
617
+
618
+
619
+
620
+ </li>
621
+
622
+ </ul>
623
+
624
+ <p class="tag_title">Returns:</p>
625
+ <ul class="return">
626
+
627
+ <li>
628
+
629
+
630
+ <span class='type'>(<tt><span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">Puppeteer::ElementHandle</a></span></tt>)</span>
631
+
632
+
633
+
634
+ </li>
635
+
636
+ </ul>
637
+
638
+ </div><table class="source_code">
639
+ <tr>
640
+ <td>
641
+ <pre class="lines">
642
+
643
+
644
+ 221
645
+ 222
646
+ 223
647
+ 224
648
+ 225
649
+ 226
650
+ 227
651
+ 228
652
+ 229
653
+ 230
654
+ 231
655
+ 232
656
+ 233
657
+ 234
658
+ 235
659
+ 236
660
+ 237
661
+ 238
662
+ 239
663
+ 240</pre>
664
+ </td>
665
+ <td>
666
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/execution_context.rb', line 221</span>
667
+
668
+ <span class='kw'>def</span> <span class='id identifier rubyid_adopt_element_handle'>adopt_element_handle</span><span class='lparen'>(</span><span class='id identifier rubyid_element_handle'>element_handle</span><span class='rparen'>)</span>
669
+ <span class='kw'>if</span> <span class='id identifier rubyid_element_handle'>element_handle</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span> <span class='op'>==</span> <span class='kw'>self</span>
670
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Cannot adopt handle that already belongs to this execution context</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
671
+ <span class='kw'>end</span>
672
+
673
+ <span class='kw'>unless</span> <span class='ivar'>@world</span>
674
+ <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Cannot adopt handle without DOMWorld</span><span class='tstring_end'>&#39;</span></span>
675
+ <span class='kw'>end</span>
676
+
677
+ <span class='id identifier rubyid_node_info'>node_info</span> <span class='op'>=</span> <span class='id identifier rubyid_element_handle'>element_handle</span><span class='period'>.</span><span class='id identifier rubyid_remote_object'>remote_object</span><span class='period'>.</span><span class='id identifier rubyid_node_info'>node_info</span><span class='lparen'>(</span><span class='ivar'>@client</span><span class='rparen'>)</span>
678
+ <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_send_message'>send_message</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>DOM.resolveNode</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
679
+ <span class='label'>backendNodeId:</span> <span class='id identifier rubyid_node_info'>node_info</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>node</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>backendNodeId</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
680
+ <span class='label'>executionContextId:</span> <span class='ivar'>@context_id</span><span class='comma'>,</span>
681
+ <span class='rparen'>)</span>
682
+
683
+ <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="JSHandle.html" title="Puppeteer::JSHandle (class)">JSHandle</a></span></span><span class='period'>.</span><span class='id identifier rubyid_create'><span class='object_link'><a href="JSHandle.html#create-class_method" title="Puppeteer::JSHandle.create (method)">create</a></span></span><span class='lparen'>(</span>
684
+ <span class='label'>context:</span> <span class='kw'>self</span><span class='comma'>,</span>
685
+ <span class='label'>remote_object:</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="RemoteObject.html" title="Puppeteer::RemoteObject (class)">RemoteObject</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="RemoteObject.html#initialize-instance_method" title="Puppeteer::RemoteObject#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>object</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
686
+ <span class='rparen'>)</span>
687
+ <span class='kw'>end</span></pre>
688
+ </td>
689
+ </tr>
690
+ </table>
568
691
  </div>
569
692
 
570
693
  <div class="method_details ">
@@ -762,7 +885,7 @@
762
885
  </div>
763
886
 
764
887
  <div id="footer">
765
- Generated on Sun Apr 26 15:52:58 2020 by
888
+ Generated on Mon May 25 23:22:50 2020 by
766
889
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
767
890
  0.9.24 (ruby-2.6.3).
768
891
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Sun Apr 26 15:52:58 2020 by
117
+ Generated on Mon May 25 23:22:50 2020 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
119
  0.9.24 (ruby-2.6.3).
120
120
  </div>
@@ -347,7 +347,7 @@
347
347
  </div>
348
348
 
349
349
  <div id="footer">
350
- Generated on Sun Apr 26 15:52:58 2020 by
350
+ Generated on Mon May 25 23:22:50 2020 by
351
351
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
352
352
  0.9.24 (ruby-2.6.3).
353
353
  </div>
@@ -357,7 +357,7 @@
357
357
  <span class='id identifier rubyid_remote_object'>remote_object</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="../RemoteObject.html" title="Puppeteer::RemoteObject (class)">RemoteObject</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../RemoteObject.html#initialize-instance_method" title="Puppeteer::RemoteObject#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_result'>result</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>result</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
358
358
 
359
359
  <span class='kw'>if</span> <span class='id identifier rubyid_exception_details'>exception_details</span>
360
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="EvaluationError.html" title="Puppeteer::ExecutionContext::EvaluationError (class)">EvaluationError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../ExecutionContext.html#initialize-instance_method" title="Puppeteer::ExecutionContext#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Evaluation failed: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_exceptionDetails'>exceptionDetails</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
360
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="EvaluationError.html" title="Puppeteer::ExecutionContext::EvaluationError (class)">EvaluationError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../ExecutionContext.html#initialize-instance_method" title="Puppeteer::ExecutionContext#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Evaluation failed: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_exception_details'>exception_details</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
361
361
  <span class='kw'>end</span>
362
362
 
363
363
  <span class='kw'>if</span> <span class='ivar'>@return_by_value</span>
@@ -379,7 +379,7 @@
379
379
  </div>
380
380
 
381
381
  <div id="footer">
382
- Generated on Sun Apr 26 15:52:58 2020 by
382
+ Generated on Mon May 25 23:22:50 2020 by
383
383
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
384
384
  0.9.24 (ruby-2.6.3).
385
385
  </div>
@@ -936,7 +936,7 @@
936
936
  <li class="public ">
937
937
  <span class="summary_signature">
938
938
 
939
- <a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong>(selector, text, delay: nil) &#x21d2; Object </a>
939
+ <a href="#type_text-instance_method" title="#type_text (instance method)">#<strong>type_text</strong>(selector, text, delay: nil) &#x21d2; Object </a>
940
940
 
941
941
 
942
942
 
@@ -1024,7 +1024,7 @@
1024
1024
  <li class="public ">
1025
1025
  <span class="summary_signature">
1026
1026
 
1027
- <a href="#wait_for_selector-instance_method" title="#wait_for_selector (instance method)">#<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) &#x21d2; !Promise&lt;?Puppeteer.ElementHandle&gt; </a>
1027
+ <a href="#wait_for_selector-instance_method" title="#wait_for_selector (instance method)">#<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) &#x21d2; Object </a>
1028
1028
 
1029
1029
 
1030
1030
 
@@ -1046,7 +1046,7 @@
1046
1046
  <li class="public ">
1047
1047
  <span class="summary_signature">
1048
1048
 
1049
- <a href="#wait_for_xpath-instance_method" title="#wait_for_xpath (instance method)">#<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) &#x21d2; !Promise&lt;?Puppeteer.ElementHandle&gt; </a>
1049
+ <a href="#wait_for_xpath-instance_method" title="#wait_for_xpath (instance method)">#<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) &#x21d2; Object </a>
1050
1050
 
1051
1051
 
1052
1052
 
@@ -1763,18 +1763,18 @@
1763
1763
  <pre class="lines">
1764
1764
 
1765
1765
 
1766
- 275
1767
- 276
1768
1766
  277
1769
1767
  278
1770
1768
  279
1771
1769
  280
1772
1770
  281
1773
1771
  282
1774
- 283</pre>
1772
+ 283
1773
+ 284
1774
+ 285</pre>
1775
1775
  </td>
1776
1776
  <td>
1777
- <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 275</span>
1777
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 277</span>
1778
1778
 
1779
1779
  <span class='kw'>def</span> <span class='id identifier rubyid_detach'>detach</span>
1780
1780
  <span class='ivar'>@detached</span> <span class='op'>=</span> <span class='kw'>true</span>
@@ -2182,16 +2182,16 @@
2182
2182
  <pre class="lines">
2183
2183
 
2184
2184
 
2185
- 262
2186
- 263
2187
2185
  264
2188
2186
  265
2189
2187
  266
2190
2188
  267
2191
- 268</pre>
2189
+ 268
2190
+ 269
2191
+ 270</pre>
2192
2192
  </td>
2193
2193
  <td>
2194
- <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 262</span>
2194
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 264</span>
2195
2195
 
2196
2196
  <span class='kw'>def</span> <span class='id identifier rubyid_handle_lifecycle_event'>handle_lifecycle_event</span><span class='lparen'>(</span><span class='id identifier rubyid_loader_id'>loader_id</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
2197
2197
  <span class='kw'>if</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>init</span><span class='tstring_end'>&#39;</span></span>
@@ -2220,13 +2220,13 @@
2220
2220
  <pre class="lines">
2221
2221
 
2222
2222
 
2223
- 270
2224
- 271
2225
2223
  272
2226
- 273</pre>
2224
+ 273
2225
+ 274
2226
+ 275</pre>
2227
2227
  </td>
2228
2228
  <td>
2229
- <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 270</span>
2229
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 272</span>
2230
2230
 
2231
2231
  <span class='kw'>def</span> <span class='id identifier rubyid_handle_loading_stopped'>handle_loading_stopped</span>
2232
2232
  <span class='ivar'>@lifecycle_events</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>DOMContentLoaded</span><span class='tstring_end'>&#39;</span></span>
@@ -2382,8 +2382,6 @@
2382
2382
  <pre class="lines">
2383
2383
 
2384
2384
 
2385
- 246
2386
- 247
2387
2385
  248
2388
2386
  249
2389
2387
  250
@@ -2391,10 +2389,12 @@
2391
2389
  252
2392
2390
  253
2393
2391
  254
2394
- 255</pre>
2392
+ 255
2393
+ 256
2394
+ 257</pre>
2395
2395
  </td>
2396
2396
  <td>
2397
- <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 246</span>
2397
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 248</span>
2398
2398
 
2399
2399
  <span class='kw'>def</span> <span class='id identifier rubyid_navigated'>navigated</span><span class='lparen'>(</span><span class='id identifier rubyid_frame_payload'>frame_payload</span><span class='rparen'>)</span>
2400
2400
  <span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_frame_payload'>frame_payload</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>name</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
@@ -2450,12 +2450,12 @@
2450
2450
  <pre class="lines">
2451
2451
 
2452
2452
 
2453
- 258
2454
- 259
2455
- 260</pre>
2453
+ 260
2454
+ 261
2455
+ 262</pre>
2456
2456
  </td>
2457
2457
  <td>
2458
- <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 258</span>
2458
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 260</span>
2459
2459
 
2460
2460
  <span class='kw'>def</span> <span class='id identifier rubyid_navigated_within_document'>navigated_within_document</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
2461
2461
  <span class='ivar'>@url</span> <span class='op'>=</span> <span class='id identifier rubyid_url'>url</span>
@@ -3118,12 +3118,12 @@
3118
3118
  <pre class="lines">
3119
3119
 
3120
3120
 
3121
- 241
3122
- 242
3123
- 243</pre>
3121
+ 243
3122
+ 244
3123
+ 245</pre>
3124
3124
  </td>
3125
3125
  <td>
3126
- <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 241</span>
3126
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 243</span>
3127
3127
 
3128
3128
  <span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span>
3129
3129
  <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_title'>title</span>
@@ -3134,9 +3134,9 @@
3134
3134
  </div>
3135
3135
 
3136
3136
  <div class="method_details ">
3137
- <h3 class="signature " id="type-instance_method">
3137
+ <h3 class="signature " id="type_text-instance_method">
3138
3138
 
3139
- #<strong>type</strong>(selector, text, delay: nil) &#x21d2; <tt>Object</tt>
3139
+ #<strong>type_text</strong>(selector, text, delay: nil) &#x21d2; <tt>Object</tt>
3140
3140
 
3141
3141
 
3142
3142
 
@@ -3157,7 +3157,7 @@
3157
3157
  <span class='name'>selector</span>
3158
3158
 
3159
3159
 
3160
- <span class='type'>(<tt>string</tt>)</span>
3160
+ <span class='type'>(<tt>String</tt>)</span>
3161
3161
 
3162
3162
 
3163
3163
 
@@ -3168,7 +3168,7 @@
3168
3168
  <span class='name'>text</span>
3169
3169
 
3170
3170
 
3171
- <span class='type'>(<tt>string</tt>)</span>
3171
+ <span class='type'>(<tt>String</tt>)</span>
3172
3172
 
3173
3173
 
3174
3174
 
@@ -3176,12 +3176,14 @@
3176
3176
 
3177
3177
  <li>
3178
3178
 
3179
- <span class='name'>options</span>
3179
+ <span class='name'>delay</span>
3180
3180
 
3181
3181
 
3182
- <span class='type'>(<tt>{delay: (number|undefined)}=</tt>)</span>
3182
+ <span class='type'>(<tt>Number</tt>)</span>
3183
3183
 
3184
3184
 
3185
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3186
+
3185
3187
 
3186
3188
  </li>
3187
3189
 
@@ -3201,8 +3203,8 @@
3201
3203
  <td>
3202
3204
  <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 179</span>
3203
3205
 
3204
- <span class='kw'>def</span> <span class='id identifier rubyid_type'>type</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>
3205
- <span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</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>
3206
+ <span class='kw'>def</span> <span class='id identifier rubyid_type_text'>type_text</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
3207
+ <span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_type_text'>type_text</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='id identifier rubyid_delay'>delay</span><span class='rparen'>)</span>
3206
3208
  <span class='kw'>end</span></pre>
3207
3209
  </td>
3208
3210
  </tr>
@@ -3337,12 +3339,12 @@
3337
3339
  <pre class="lines">
3338
3340
 
3339
3341
 
3340
- 237
3341
- 238
3342
- 239</pre>
3342
+ 239
3343
+ 240
3344
+ 241</pre>
3343
3345
  </td>
3344
3346
  <td>
3345
- <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 237</span>
3347
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 239</span>
3346
3348
 
3347
3349
  <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_function'>wait_for_function</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
3348
3350
  <span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_function'>wait_for_function</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
@@ -3429,7 +3431,7 @@
3429
3431
  <div class="method_details ">
3430
3432
  <h3 class="signature " id="wait_for_selector-instance_method">
3431
3433
 
3432
- #<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) &#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>
3434
+ #<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) &#x21d2; <tt>Object</tt>
3433
3435
 
3434
3436
 
3435
3437
 
@@ -3450,7 +3452,7 @@
3450
3452
  <span class='name'>selector</span>
3451
3453
 
3452
3454
 
3453
- <span class='type'>(<tt>string</tt>)</span>
3455
+ <span class='type'>(<tt>String</tt>)</span>
3454
3456
 
3455
3457
 
3456
3458
 
@@ -3458,38 +3460,62 @@
3458
3460
 
3459
3461
  <li>
3460
3462
 
3461
- <span class='name'>options</span>
3463
+ <span class='name'>visible</span>
3464
+
3465
+
3466
+ <span class='type'>(<tt>Boolean</tt>)</span>
3462
3467
 
3463
3468
 
3464
- <span class='type'>(<tt>!{visible?: boolean, hidden?: boolean, timeout?: number}=</tt>)</span>
3469
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3465
3470
 
3466
3471
 
3472
+ &mdash;
3473
+ <div class='inline'>
3474
+ <p>Wait for element visible (not &#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
3475
+ </div>
3467
3476
 
3468
3477
  </li>
3469
3478
 
3470
- </ul>
3471
-
3472
- <p class="tag_title">Returns:</p>
3473
- <ul class="return">
3479
+ <li>
3480
+
3481
+ <span class='name'>hidden</span>
3482
+
3483
+
3484
+ <span class='type'>(<tt>Boolean</tt>)</span>
3485
+
3486
+
3487
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3488
+
3489
+
3490
+ &mdash;
3491
+ <div class='inline'>
3492
+ <p>Wait for element invisible (&#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
3493
+ </div>
3494
+
3495
+ </li>
3474
3496
 
3475
3497
  <li>
3476
3498
 
3499
+ <span class='name'>timeout</span>
3477
3500
 
3478
- <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>
3479
3501
 
3502
+ <span class='type'>(<tt>Integer</tt>)</span>
3503
+
3504
+
3505
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3480
3506
 
3481
3507
 
3482
3508
  </li>
3483
3509
 
3484
3510
  </ul>
3485
3511
 
3512
+
3486
3513
  </div><table class="source_code">
3487
3514
  <tr>
3488
3515
  <td>
3489
3516
  <pre class="lines">
3490
3517
 
3491
3518
 
3492
- 208
3493
3519
  209
3494
3520
  210
3495
3521
  211
@@ -3498,10 +3524,11 @@
3498
3524
  214
3499
3525
  215
3500
3526
  216
3501
- 217</pre>
3527
+ 217
3528
+ 218</pre>
3502
3529
  </td>
3503
3530
  <td>
3504
- <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 208</span>
3531
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 209</span>
3505
3532
 
3506
3533
  <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_selector'>wait_for_selector</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
3507
3534
  <span class='id identifier rubyid_handle'>handle</span> <span class='op'>=</span> <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_selector'>wait_for_selector</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='id identifier rubyid_visible'>visible</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='id identifier rubyid_hidden'>hidden</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
@@ -3521,7 +3548,7 @@
3521
3548
  <div class="method_details ">
3522
3549
  <h3 class="signature " id="wait_for_xpath-instance_method">
3523
3550
 
3524
- #<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) &#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>
3551
+ #<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) &#x21d2; <tt>Object</tt>
3525
3552
 
3526
3553
 
3527
3554
 
@@ -3542,7 +3569,7 @@
3542
3569
  <span class='name'>xpath</span>
3543
3570
 
3544
3571
 
3545
- <span class='type'>(<tt>string</tt>)</span>
3572
+ <span class='type'>(<tt>String</tt>)</span>
3546
3573
 
3547
3574
 
3548
3575
 
@@ -3550,39 +3577,62 @@
3550
3577
 
3551
3578
  <li>
3552
3579
 
3553
- <span class='name'>options</span>
3580
+ <span class='name'>visible</span>
3581
+
3582
+
3583
+ <span class='type'>(<tt>Boolean</tt>)</span>
3554
3584
 
3555
3585
 
3556
- <span class='type'>(<tt>!{visible?: boolean, hidden?: boolean, timeout?: number}=</tt>)</span>
3586
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3557
3587
 
3558
3588
 
3589
+ &mdash;
3590
+ <div class='inline'>
3591
+ <p>Wait for element visible (not &#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
3592
+ </div>
3559
3593
 
3560
3594
  </li>
3561
3595
 
3562
- </ul>
3563
-
3564
- <p class="tag_title">Returns:</p>
3565
- <ul class="return">
3596
+ <li>
3597
+
3598
+ <span class='name'>hidden</span>
3599
+
3600
+
3601
+ <span class='type'>(<tt>Boolean</tt>)</span>
3602
+
3603
+
3604
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3605
+
3606
+
3607
+ &mdash;
3608
+ <div class='inline'>
3609
+ <p>Wait for element invisible (&#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
3610
+ </div>
3611
+
3612
+ </li>
3566
3613
 
3567
3614
  <li>
3568
3615
 
3616
+ <span class='name'>timeout</span>
3569
3617
 
3570
- <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>
3571
3618
 
3619
+ <span class='type'>(<tt>Integer</tt>)</span>
3620
+
3621
+
3622
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3572
3623
 
3573
3624
 
3574
3625
  </li>
3575
3626
 
3576
3627
  </ul>
3577
3628
 
3629
+
3578
3630
  </div><table class="source_code">
3579
3631
  <tr>
3580
3632
  <td>
3581
3633
  <pre class="lines">
3582
3634
 
3583
3635
 
3584
- 222
3585
- 223
3586
3636
  224
3587
3637
  225
3588
3638
  226
@@ -3590,10 +3640,12 @@
3590
3640
  228
3591
3641
  229
3592
3642
  230
3593
- 231</pre>
3643
+ 231
3644
+ 232
3645
+ 233</pre>
3594
3646
  </td>
3595
3647
  <td>
3596
- <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 222</span>
3648
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 224</span>
3597
3649
 
3598
3650
  <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_xpath'>wait_for_xpath</span><span class='lparen'>(</span><span class='id identifier rubyid_xpath'>xpath</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
3599
3651
  <span class='id identifier rubyid_handle'>handle</span> <span class='op'>=</span> <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_xpath'>wait_for_xpath</span><span class='lparen'>(</span><span class='id identifier rubyid_xpath'>xpath</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='id identifier rubyid_visible'>visible</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='id identifier rubyid_hidden'>hidden</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
@@ -3615,7 +3667,7 @@
3615
3667
  </div>
3616
3668
 
3617
3669
  <div id="footer">
3618
- Generated on Sun Apr 26 15:52:56 2020 by
3670
+ Generated on Mon May 25 23:22:49 2020 by
3619
3671
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
3620
3672
  0.9.24 (ruby-2.6.3).
3621
3673
  </div>