puppeteer-ruby 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 004c8ed7d2156f9c7dc0bc94cd55d256f75a3c202c5a4f08d0ecb521197a2610
4
- data.tar.gz: 4027e08fee57a18800d671db905e2b9a4bf22d15e3a3bde80c68906c278e04f2
3
+ metadata.gz: e9d4fc4079271266b1b77716610f06182208a4094236e1df28d762e896138138
4
+ data.tar.gz: a1e20af87c567d311f441458490d89c16c8a6ac7b83598906b84b5b9d69cce93
5
5
  SHA512:
6
- metadata.gz: fde9b594b77f123b290edfe3ccbffe6f807485cb1042f5bde48a731e1d9b5eda9b9b34a17d1fe47b751e758855dffb180a06833fc57792a427fc9925ffdd04c0
7
- data.tar.gz: 70134f98e0e1ed19bc5c57186575d40b2c53099d4856031010c3f69dfa0498ee854464639604f5c6ba5a300523bb322e1f92ac267cb32c8fa253f2fecdcd367a
6
+ metadata.gz: 67daec89ab916e0417f725c929a20efe105ae29e5b6bbd244495a524a517cc9eed269b363b43473ea75f63c665011a9501c7b9523ff2e7f7433786d2666dbfb4
7
+ data.tar.gz: 75c0991c02dd2be092777499645c7f010fba5a5b00eb683bd74d37da0dc41ff612d8c28744dabda12fc168643bfec5f7a1848477997f42732b95c3dfd33b59e7
@@ -1012,7 +1012,7 @@
1012
1012
  <dt id="VERSION-constant" class="">VERSION =
1013
1013
 
1014
1014
  </dt>
1015
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.0.4</span><span class='tstring_end'>&#39;</span></span></pre></dd>
1015
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.0.6</span><span class='tstring_end'>&#39;</span></span></pre></dd>
1016
1016
 
1017
1017
  </dl>
1018
1018
 
@@ -2000,7 +2000,7 @@
2000
2000
  </div>
2001
2001
 
2002
2002
  <div id="footer">
2003
- Generated on Sun Apr 26 15:52:55 2020 by
2003
+ Generated on Mon May 25 23:22:48 2020 by
2004
2004
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2005
2005
  0.9.24 (ruby-2.6.3).
2006
2006
  </div>
@@ -95,7 +95,7 @@
95
95
  </div>
96
96
 
97
97
  <div id="footer">
98
- Generated on Sun Apr 26 15:52:55 2020 by
98
+ Generated on Mon May 25 23:22:48 2020 by
99
99
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
100
100
  0.9.24 (ruby-2.6.3).
101
101
  </div>
@@ -2140,7 +2140,7 @@
2140
2140
  </div>
2141
2141
 
2142
2142
  <div id="footer">
2143
- Generated on Sun Apr 26 15:52:56 2020 by
2143
+ Generated on Mon May 25 23:22:49 2020 by
2144
2144
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2145
2145
  0.9.24 (ruby-2.6.3).
2146
2146
  </div>
@@ -799,7 +799,7 @@
799
799
  </div>
800
800
 
801
801
  <div id="footer">
802
- Generated on Sun Apr 26 15:52:57 2020 by
802
+ Generated on Mon May 25 23:22:50 2020 by
803
803
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
804
804
  0.9.24 (ruby-2.6.3).
805
805
  </div>
@@ -204,7 +204,7 @@
204
204
  </div>
205
205
 
206
206
  <div id="footer">
207
- Generated on Sun Apr 26 15:52:57 2020 by
207
+ Generated on Mon May 25 23:22:50 2020 by
208
208
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
209
209
  0.9.24 (ruby-2.6.3).
210
210
  </div>
@@ -904,7 +904,7 @@
904
904
  </div>
905
905
 
906
906
  <div id="footer">
907
- Generated on Sun Apr 26 15:52:57 2020 by
907
+ Generated on Mon May 25 23:22:50 2020 by
908
908
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
909
909
  0.9.24 (ruby-2.6.3).
910
910
  </div>
@@ -467,7 +467,7 @@
467
467
  </div>
468
468
 
469
469
  <div id="footer">
470
- Generated on Sun Apr 26 15:52:57 2020 by
470
+ Generated on Mon May 25 23:22:50 2020 by
471
471
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
472
472
  0.9.24 (ruby-2.6.3).
473
473
  </div>
@@ -89,7 +89,7 @@
89
89
 
90
90
  <dl>
91
91
  <dt>Includes:</dt>
92
- <dd><span class='object_link'><a href="EventCallbackable.html" title="Puppeteer::EventCallbackable (module)">EventCallbackable</a></span></dd>
92
+ <dd><span class='object_link'><a href="DebugPrint.html" title="Puppeteer::DebugPrint (module)">DebugPrint</a></span>, <span class='object_link'><a href="EventCallbackable.html" title="Puppeteer::EventCallbackable (module)">EventCallbackable</a></span></dd>
93
93
  </dl>
94
94
 
95
95
 
@@ -313,6 +313,17 @@
313
313
 
314
314
  <h3 class="inherited">Methods included from <span class='object_link'><a href="EventCallbackable.html" title="Puppeteer::EventCallbackable (module)">EventCallbackable</a></span></h3>
315
315
  <p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="DebugPrint.html" title="Puppeteer::DebugPrint (module)">DebugPrint</a></span></h3>
326
+ <p class="inherited"><span class='object_link'><a href="DebugPrint.html#debug_print-instance_method" title="Puppeteer::DebugPrint#debug_print (method)">#debug_print</a></span>, <span class='object_link'><a href="DebugPrint.html#debug_puts-instance_method" title="Puppeteer::DebugPrint#debug_puts (method)">#debug_puts</a></span></p>
316
327
  <div id="constructor_details" class="method_details_list">
317
328
  <h2>Constructor Details</h2>
318
329
 
@@ -379,21 +390,23 @@
379
390
  <pre class="lines">
380
391
 
381
392
 
382
- 10
383
393
  11
384
394
  12
385
395
  13
386
396
  14
387
- 15</pre>
397
+ 15
398
+ 16
399
+ 17</pre>
388
400
  </td>
389
401
  <td>
390
- <pre class="code"><span class="info file"># File 'lib/puppeteer/cdp_session.rb', line 10</span>
402
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/cdp_session.rb', line 11</span>
391
403
 
392
404
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_connection'>connection</span><span class='comma'>,</span> <span class='id identifier rubyid_target_type'>target_type</span><span class='comma'>,</span> <span class='id identifier rubyid_session_id'>session_id</span><span class='rparen'>)</span>
393
405
  <span class='ivar'>@callbacks</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
394
406
  <span class='ivar'>@connection</span> <span class='op'>=</span> <span class='id identifier rubyid_connection'>connection</span>
395
407
  <span class='ivar'>@target_type</span> <span class='op'>=</span> <span class='id identifier rubyid_target_type'>target_type</span>
396
408
  <span class='ivar'>@session_id</span> <span class='op'>=</span> <span class='id identifier rubyid_session_id'>session_id</span>
409
+ <span class='ivar'>@pending_messages</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
397
410
  <span class='kw'>end</span></pre>
398
411
  </td>
399
412
  </tr>
@@ -433,12 +446,12 @@
433
446
  <pre class="lines">
434
447
 
435
448
 
436
- 17
437
- 18
438
- 19</pre>
449
+ 19
450
+ 20
451
+ 21</pre>
439
452
  </td>
440
453
  <td>
441
- <pre class="code"><span class="info file"># File 'lib/puppeteer/cdp_session.rb', line 17</span>
454
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/cdp_session.rb', line 19</span>
442
455
 
443
456
  <span class='kw'>def</span> <span class='id identifier rubyid_connection'>connection</span>
444
457
  <span class='ivar'>@connection</span>
@@ -507,18 +520,24 @@
507
520
  <pre class="lines">
508
521
 
509
522
 
510
- 29
511
- 30
512
523
  31
513
524
  32
514
525
  33
515
526
  34
516
527
  35
517
528
  36
518
- 37</pre>
529
+ 37
530
+ 38
531
+ 39
532
+ 40
533
+ 41
534
+ 42
535
+ 43
536
+ 44
537
+ 45</pre>
519
538
  </td>
520
539
  <td>
521
- <pre class="code"><span class="info file"># File 'lib/puppeteer/cdp_session.rb', line 29</span>
540
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/cdp_session.rb', line 31</span>
522
541
 
523
542
  <span class='kw'>def</span> <span class='id identifier rubyid_async_send_message'>async_send_message</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
524
543
  <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@connection</span>
@@ -526,7 +545,13 @@
526
545
  <span class='kw'>end</span>
527
546
  <span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='ivar'>@connection</span><span class='period'>.</span><span class='id identifier rubyid_raw_send'>raw_send</span><span class='lparen'>(</span><span class='label'>message:</span> <span class='lbrace'>{</span> <span class='label'>sessionId:</span> <span class='ivar'>@session_id</span><span class='comma'>,</span> <span class='label'>method:</span> <span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='label'>params:</span> <span class='id identifier rubyid_params'>params</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
528
547
  <span class='id identifier rubyid_promise'>promise</span> <span class='op'>=</span> <span class='id identifier rubyid_resolvable_future'><span class='object_link'><a href="ConcurrentRubyUtils.html#resolvable_future-instance_method" title="Puppeteer::ConcurrentRubyUtils#resolvable_future (method)">resolvable_future</a></span></span>
529
- <span class='ivar'>@callbacks</span><span class='lbracket'>[</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</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="Connection.html" title="Puppeteer::Connection (class)">Connection</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Connection/MessageCallback.html" title="Puppeteer::Connection::MessageCallback (class)">MessageCallback</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Connection/MessageCallback.html#initialize-instance_method" title="Puppeteer::Connection::MessageCallback#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>method:</span> <span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='label'>promise:</span> <span class='id identifier rubyid_promise'>promise</span><span class='rparen'>)</span>
548
+ <span class='id identifier rubyid_callback'>callback</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="Connection.html" title="Puppeteer::Connection (class)">Connection</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Connection/MessageCallback.html" title="Puppeteer::Connection::MessageCallback (class)">MessageCallback</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Connection/MessageCallback.html#initialize-instance_method" title="Puppeteer::Connection::MessageCallback#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>method:</span> <span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='label'>promise:</span> <span class='id identifier rubyid_promise'>promise</span><span class='rparen'>)</span>
549
+ <span class='kw'>if</span> <span class='id identifier rubyid_pending_message'>pending_message</span> <span class='op'>=</span> <span class='ivar'>@pending_messages</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
550
+ <span class='id identifier rubyid_debug_puts'>debug_puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Pending message (id: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_id'>id</span><span class='embexpr_end'>}</span><span class='tstring_content'>) is handled</span><span class='tstring_end'>&quot;</span></span>
551
+ <span class='id identifier rubyid_callback_with_message'>callback_with_message</span><span class='lparen'>(</span><span class='id identifier rubyid_callback'>callback</span><span class='comma'>,</span> <span class='id identifier rubyid_pending_message'>pending_message</span><span class='rparen'>)</span>
552
+ <span class='kw'>else</span>
553
+ <span class='ivar'>@callbacks</span><span class='lbracket'>[</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_callback'>callback</span>
554
+ <span class='kw'>end</span>
530
555
  <span class='id identifier rubyid_promise'>promise</span>
531
556
  <span class='kw'>end</span></pre>
532
557
  </td>
@@ -549,15 +574,15 @@
549
574
  <pre class="lines">
550
575
 
551
576
 
552
- 60
553
- 61
554
- 62
555
- 63
556
- 64
557
- 65</pre>
577
+ 82
578
+ 83
579
+ 84
580
+ 85
581
+ 86
582
+ 87</pre>
558
583
  </td>
559
584
  <td>
560
- <pre class="code"><span class="info file"># File 'lib/puppeteer/cdp_session.rb', line 60</span>
585
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/cdp_session.rb', line 82</span>
561
586
 
562
587
  <span class='kw'>def</span> <span class='id identifier rubyid_detach'>detach</span>
563
588
  <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@connection</span>
@@ -585,20 +610,20 @@
585
610
  <pre class="lines">
586
611
 
587
612
 
588
- 67
589
- 68
590
- 69
591
- 70
592
- 71
593
- 72
594
- 73
595
- 74
596
- 75
597
- 76
598
- 77</pre>
613
+ 89
614
+ 90
615
+ 91
616
+ 92
617
+ 93
618
+ 94
619
+ 95
620
+ 96
621
+ 97
622
+ 98
623
+ 99</pre>
599
624
  </td>
600
625
  <td>
601
- <pre class="code"><span class="info file"># File 'lib/puppeteer/cdp_session.rb', line 67</span>
626
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/cdp_session.rb', line 89</span>
602
627
 
603
628
  <span class='kw'>def</span> <span class='id identifier rubyid_handle_closed'>handle_closed</span>
604
629
  <span class='ivar'>@callbacks</span><span class='period'>.</span><span class='id identifier rubyid_each_value'>each_value</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_callback'>callback</span><span class='op'>|</span>
@@ -655,14 +680,6 @@
655
680
  <pre class="lines">
656
681
 
657
682
 
658
- 40
659
- 41
660
- 42
661
- 43
662
- 44
663
- 45
664
- 46
665
- 47
666
683
  48
667
684
  49
668
685
  50
@@ -673,25 +690,37 @@
673
690
  55
674
691
  56
675
692
  57
676
- 58</pre>
693
+ 58
694
+ 59
695
+ 60
696
+ 61
697
+ 62
698
+ 63
699
+ 64
700
+ 65
701
+ 66
702
+ 67
703
+ 68</pre>
677
704
  </td>
678
705
  <td>
679
- <pre class="code"><span class="info file"># File 'lib/puppeteer/cdp_session.rb', line 40</span>
706
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/cdp_session.rb', line 48</span>
680
707
 
681
708
  <span class='kw'>def</span> <span class='id identifier rubyid_handle_message'>handle_message</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
682
709
  <span class='kw'>if</span> <span class='id identifier rubyid_message'>message</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>id</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
683
710
  <span class='kw'>if</span> <span class='id identifier rubyid_callback'>callback</span> <span class='op'>=</span> <span class='ivar'>@callbacks</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>id</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
684
- <span class='kw'>if</span> <span class='id identifier rubyid_message'>message</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>error</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
685
- <span class='id identifier rubyid_callback'>callback</span><span class='period'>.</span><span class='id identifier rubyid_reject'>reject</span><span class='lparen'>(</span>
686
- <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="Connection.html" title="Puppeteer::Connection (class)">Connection</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Connection/ProtocolError.html" title="Puppeteer::Connection::ProtocolError (class)">ProtocolError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Connection/ProtocolError.html#initialize-instance_method" title="Puppeteer::Connection::ProtocolError#initialize (method)">new</a></span></span><span class='lparen'>(</span>
687
- <span class='label'>method:</span> <span class='id identifier rubyid_callback'>callback</span><span class='period'>.</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span>
688
- <span class='label'>error_message:</span> <span class='id identifier rubyid_message'>message</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>error</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>message</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
689
- <span class='label'>error_data:</span> <span class='id identifier rubyid_message'>message</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>error</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>data</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span>
690
- <span class='kw'>else</span>
691
- <span class='id identifier rubyid_callback'>callback</span><span class='period'>.</span><span class='id identifier rubyid_resolve'>resolve</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</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>
692
- <span class='kw'>end</span>
711
+ <span class='id identifier rubyid_callback_with_message'>callback_with_message</span><span class='lparen'>(</span><span class='id identifier rubyid_callback'>callback</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
693
712
  <span class='kw'>else</span>
694
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="CDPSession/Error.html" title="Puppeteer::CDPSession::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Puppeteer::CDPSession#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>unknown id: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_message'>message</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>id</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
713
+ <span class='id identifier rubyid_debug_puts'>debug_puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>unknown id: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_id'>id</span><span class='embexpr_end'>}</span><span class='tstring_content'>. Store it into pending message</span><span class='tstring_end'>&quot;</span></span>
714
+
715
+ <span class='comment'># RECV is often notified before SEND.
716
+ </span> <span class='comment'># Wait about 10 frames before throwing an error.
717
+ </span> <span class='id identifier rubyid_message_id'>message_id</span> <span class='op'>=</span> <span class='id identifier rubyid_message'>message</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>id</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
718
+ <span class='ivar'>@pending_messages</span><span class='lbracket'>[</span><span class='id identifier rubyid_message_id'>message_id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_message'>message</span>
719
+ <span class='const'>Concurrent</span><span class='op'>::</span><span class='const'>Promises</span><span class='period'>.</span><span class='id identifier rubyid_schedule'>schedule</span><span class='lparen'>(</span><span class='float'>0.16</span><span class='comma'>,</span> <span class='id identifier rubyid_message_id'>message_id</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_id'>id</span><span class='op'>|</span>
720
+ <span class='kw'>if</span> <span class='ivar'>@pending_messages</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='rparen'>)</span>
721
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="CDPSession/Error.html" title="Puppeteer::CDPSession::Error (class)">Error</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Puppeteer::CDPSession#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>unknown id: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_id'>id</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
722
+ <span class='kw'>end</span>
723
+ <span class='kw'>end</span>
695
724
  <span class='kw'>end</span>
696
725
  <span class='kw'>else</span>
697
726
  <span class='id identifier rubyid_emit_event'>emit_event</span> <span class='id identifier rubyid_message'>message</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>method</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_message'>message</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>params</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
@@ -754,12 +783,12 @@
754
783
  <pre class="lines">
755
784
 
756
785
 
757
- 22
758
- 23
759
- 24</pre>
786
+ 24
787
+ 25
788
+ 26</pre>
760
789
  </td>
761
790
  <td>
762
- <pre class="code"><span class="info file"># File 'lib/puppeteer/cdp_session.rb', line 22</span>
791
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/cdp_session.rb', line 24</span>
763
792
 
764
793
  <span class='kw'>def</span> <span class='id identifier rubyid_send_message'>send_message</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
765
794
  <span class='id identifier rubyid_await'><span class='object_link'><a href="ConcurrentRubyUtils.html#await-instance_method" title="Puppeteer::ConcurrentRubyUtils#await (method)">await</a></span></span> <span class='id identifier rubyid_async_send_message'>async_send_message</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
@@ -774,7 +803,7 @@
774
803
  </div>
775
804
 
776
805
  <div id="footer">
777
- Generated on Sun Apr 26 15:52:57 2020 by
806
+ Generated on Mon May 25 23:22:50 2020 by
778
807
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
779
808
  0.9.24 (ruby-2.6.3).
780
809
  </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>
@@ -420,7 +420,7 @@
420
420
  </div>
421
421
 
422
422
  <div id="footer">
423
- Generated on Sun Apr 26 15:52:55 2020 by
423
+ Generated on Mon May 25 23:22:48 2020 by
424
424
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
425
425
  0.9.24 (ruby-2.6.3).
426
426
  </div>
@@ -950,7 +950,7 @@
950
950
  </div>
951
951
 
952
952
  <div id="footer">
953
- Generated on Sun Apr 26 15:52:57 2020 by
953
+ Generated on Mon May 25 23:22:50 2020 by
954
954
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
955
955
  0.9.24 (ruby-2.6.3).
956
956
  </div>
@@ -424,7 +424,7 @@
424
424
  </div>
425
425
 
426
426
  <div id="footer">
427
- Generated on Sun Apr 26 15:52:57 2020 by
427
+ Generated on Mon May 25 23:22:50 2020 by
428
428
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
429
429
  0.9.24 (ruby-2.6.3).
430
430
  </div>
@@ -206,7 +206,7 @@
206
206
  </div>
207
207
 
208
208
  <div id="footer">
209
- Generated on Sun Apr 26 15:52:57 2020 by
209
+ Generated on Mon May 25 23:22:50 2020 by
210
210
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
211
211
  0.9.24 (ruby-2.6.3).
212
212
  </div>
@@ -207,7 +207,7 @@
207
207
  </div>
208
208
 
209
209
  <div id="footer">
210
- Generated on Sun Apr 26 15:52:57 2020 by
210
+ Generated on Mon May 25 23:22:50 2020 by
211
211
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
212
212
  0.9.24 (ruby-2.6.3).
213
213
  </div>
@@ -234,7 +234,7 @@
234
234
  </div>
235
235
 
236
236
  <div id="footer">
237
- Generated on Sun Apr 26 15:52:57 2020 by
237
+ Generated on Mon May 25 23:22:50 2020 by
238
238
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
239
239
  0.9.24 (ruby-2.6.3).
240
240
  </div>
@@ -555,7 +555,7 @@
555
555
  </div>
556
556
 
557
557
  <div id="footer">
558
- Generated on Sun Apr 26 15:52:57 2020 by
558
+ Generated on Mon May 25 23:22:50 2020 by
559
559
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
560
560
  0.9.24 (ruby-2.6.3).
561
561
  </div>
@@ -423,7 +423,7 @@
423
423
  </div>
424
424
 
425
425
  <div id="footer">
426
- Generated on Sun Apr 26 15:52:57 2020 by
426
+ Generated on Mon May 25 23:22:50 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>
@@ -121,6 +121,51 @@
121
121
 
122
122
  </p>
123
123
 
124
+
125
+ <h2>
126
+ Constant Summary
127
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
128
+ </h2>
129
+
130
+ <dl class="constants">
131
+
132
+ <dt id="PREDICATE-constant" class="">PREDICATE =
133
+
134
+ </dt>
135
+ <dd><pre class="code"><span class='heredoc_beg'>&lt;&lt;~JAVASCRIPT</span>
136
+ <span class='tstring_content'>/**
137
+ * @param {string} selectorOrXPath
138
+ * @param {boolean} isXPath
139
+ * @param {boolean} waitForVisible
140
+ * @param {boolean} waitForHidden
141
+ * @return {?Node|boolean}
142
+ */
143
+ function _(selectorOrXPath, isXPath, waitForVisible, waitForHidden) {
144
+ const node = isXPath
145
+ ? document.evaluate(selectorOrXPath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue
146
+ : document.querySelector(selectorOrXPath);
147
+ if (!node)
148
+ return waitForHidden;
149
+ if (!waitForVisible &amp;&amp; !waitForHidden)
150
+ return node;
151
+ const element = /** @type {Element} */ (node.nodeType === Node.TEXT_NODE ? node.parentElement : node);
152
+ const style = window.getComputedStyle(element);
153
+ const isVisible = style &amp;&amp; style.visibility !== &#39;hidden&#39; &amp;&amp; hasVisibleBoundingBox();
154
+ const success = (waitForVisible === isVisible || waitForHidden === !isVisible);
155
+ return success ? node : null;
156
+ /**
157
+ * @return {boolean}
158
+ */
159
+ function hasVisibleBoundingBox() {
160
+ const rect = element.getBoundingClientRect();
161
+ return !!(rect.top || rect.bottom || rect.width || rect.height);
162
+ }
163
+ }
164
+ </span><span class='heredoc_end'>JAVASCRIPT</span></pre></dd>
165
+
166
+ </dl>
167
+
168
+
124
169
 
125
170
 
126
171
 
@@ -172,6 +217,30 @@
172
217
  <li class="public ">
173
218
  <span class="summary_signature">
174
219
 
220
+ <a href="#_wait_tasks-instance_method" title="#_wait_tasks (instance method)">#<strong>_wait_tasks</strong> &#x21d2; Object </a>
221
+
222
+
223
+
224
+ </span>
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+ <span class="summary_desc"><div class='inline'>
235
+ <p>only used in Puppeteer::WaitTask#initialize.</p>
236
+ </div></span>
237
+
238
+ </li>
239
+
240
+
241
+ <li class="public ">
242
+ <span class="summary_signature">
243
+
175
244
  <a href="#click-instance_method" title="#click (instance method)">#<strong>click</strong>(selector, delay: nil, button: nil, click_count: nil) &#x21d2; Object </a>
176
245
 
177
246
 
@@ -488,6 +557,94 @@
488
557
  <p>`$x()` in JavaScript.</p>
489
558
  </div></span>
490
559
 
560
+ </li>
561
+
562
+
563
+ <li class="public ">
564
+ <span class="summary_signature">
565
+
566
+ <a href="#tap-instance_method" title="#tap (instance method)">#<strong>tap</strong>(selector) &#x21d2; Object </a>
567
+
568
+
569
+
570
+ </span>
571
+
572
+
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+ <span class="summary_desc"><div class='inline'></div></span>
581
+
582
+ </li>
583
+
584
+
585
+ <li class="public ">
586
+ <span class="summary_signature">
587
+
588
+ <a href="#type_text-instance_method" title="#type_text (instance method)">#<strong>type_text</strong>(selector, text, delay: nil) &#x21d2; Object </a>
589
+
590
+
591
+
592
+ </span>
593
+
594
+
595
+
596
+
597
+
598
+
599
+
600
+
601
+
602
+ <span class="summary_desc"><div class='inline'></div></span>
603
+
604
+ </li>
605
+
606
+
607
+ <li class="public ">
608
+ <span class="summary_signature">
609
+
610
+ <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>
611
+
612
+
613
+
614
+ </span>
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+ <span class="summary_desc"><div class='inline'></div></span>
625
+
626
+ </li>
627
+
628
+
629
+ <li class="public ">
630
+ <span class="summary_signature">
631
+
632
+ <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>
633
+
634
+
635
+
636
+ </span>
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+
646
+ <span class="summary_desc"><div class='inline'></div></span>
647
+
491
648
  </li>
492
649
 
493
650
 
@@ -643,7 +800,48 @@
643
800
 
644
801
 
645
802
  <div class="method_details first">
646
- <h3 class="signature first" id="click-instance_method">
803
+ <h3 class="signature first" id="_wait_tasks-instance_method">
804
+
805
+ #<strong>_wait_tasks</strong> &#x21d2; <tt>Object</tt>
806
+
807
+
808
+
809
+
810
+
811
+ </h3><div class="docstring">
812
+ <div class="discussion">
813
+
814
+ <p>only used in Puppeteer::WaitTask#initialize</p>
815
+
816
+
817
+ </div>
818
+ </div>
819
+ <div class="tags">
820
+
821
+
822
+ </div><table class="source_code">
823
+ <tr>
824
+ <td>
825
+ <pre class="lines">
826
+
827
+
828
+ 23
829
+ 24
830
+ 25</pre>
831
+ </td>
832
+ <td>
833
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 23</span>
834
+
835
+ <span class='kw'>def</span> <span class='id identifier rubyid__wait_tasks'>_wait_tasks</span>
836
+ <span class='ivar'>@wait_tasks</span>
837
+ <span class='kw'>end</span></pre>
838
+ </td>
839
+ </tr>
840
+ </table>
841
+ </div>
842
+
843
+ <div class="method_details ">
844
+ <h3 class="signature " id="click-instance_method">
647
845
 
648
846
  #<strong>click</strong>(selector, delay: nil, button: nil, click_count: nil) &#x21d2; <tt>Object</tt>
649
847
 
@@ -725,14 +923,14 @@
725
923
  <pre class="lines">
726
924
 
727
925
 
728
- 328
729
- 329
730
- 330
731
- 331
732
- 332</pre>
926
+ 332
927
+ 333
928
+ 334
929
+ 335
930
+ 336</pre>
733
931
  </td>
734
932
  <td>
735
- <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 328</span>
933
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 332</span>
736
934
 
737
935
  <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>
738
936
  <span class='id identifier rubyid_handle'>handle</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#S-instance_method" title="Puppeteer::DOMWorld#S (method)">S</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
@@ -783,11 +981,6 @@
783
981
  <pre class="lines">
784
982
 
785
983
 
786
- 23
787
- 24
788
- 25
789
- 26
790
- 27
791
984
  28
792
985
  29
793
986
  30
@@ -803,10 +996,14 @@
803
996
  40
804
997
  41
805
998
  42
806
- 43</pre>
999
+ 43
1000
+ 44
1001
+ 45
1002
+ 46
1003
+ 47</pre>
807
1004
  </td>
808
1005
  <td>
809
- <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 23</span>
1006
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 28</span>
810
1007
 
811
1008
  <span class='kw'>def</span> <span class='id identifier rubyid_context='>context=</span><span class='lparen'>(</span><span class='id identifier rubyid_context'>context</span><span class='rparen'>)</span>
812
1009
  <span class='comment'># D, [2020-04-12T22:45:03.938754 #46154] DEBUG -- : RECV &lt;&lt; {&quot;method&quot;=&gt;&quot;Runtime.executionContextCreated&quot;, &quot;params&quot;=&gt;{&quot;context&quot;=&gt;{&quot;id&quot;=&gt;3, &quot;origin&quot;=&gt;&quot;https://github.com&quot;, &quot;name&quot;=&gt;&quot;&quot;, &quot;auxData&quot;=&gt;{&quot;isDefault&quot;=&gt;true, &quot;type&quot;=&gt;&quot;default&quot;, &quot;frameId&quot;=&gt;&quot;3AD7F1E82BCBA88BFE31D03BC49FF6CB&quot;}}}, &quot;sessionId&quot;=&gt;&quot;636CEF0C4FEAFC4FE815E9E7B5F7BA68&quot;}
@@ -823,9 +1020,8 @@
823
1020
  <span class='ivar'>@context_promise</span> <span class='op'>=</span> <span class='id identifier rubyid_resolvable_future'><span class='object_link'><a href="ConcurrentRubyUtils.html#resolvable_future-instance_method" title="Puppeteer::ConcurrentRubyUtils#resolvable_future (method)">resolvable_future</a></span></span>
824
1021
  <span class='kw'>end</span>
825
1022
  <span class='ivar'>@context_promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</span><span class='id identifier rubyid_context'>context</span><span class='rparen'>)</span>
826
- <span class='comment'># for (const waitTask of this._waitTasks)
827
- </span> <span class='comment'># waitTask.rerun();
828
- </span> <span class='kw'>else</span>
1023
+ <span class='ivar'>@wait_tasks</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='symbol'>:async_rerun</span><span class='rparen'>)</span>
1024
+ <span class='kw'>else</span>
829
1025
  <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'>&quot;</span><span class='tstring_content'>context should now be nil. Use #delete_context for clearing document.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
830
1026
  <span class='kw'>end</span>
831
1027
  <span class='kw'>end</span></pre>
@@ -849,17 +1045,17 @@
849
1045
  <pre class="lines">
850
1046
 
851
1047
 
852
- 45
853
- 46
854
- 47
855
- 48
856
1048
  49
857
1049
  50
858
1050
  51
859
- 52</pre>
1051
+ 52
1052
+ 53
1053
+ 54
1054
+ 55
1055
+ 56</pre>
860
1056
  </td>
861
1057
  <td>
862
- <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 45</span>
1058
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 49</span>
863
1059
 
864
1060
  <span class='kw'>def</span> <span class='id identifier rubyid_delete_context'>delete_context</span><span class='lparen'>(</span><span class='id identifier rubyid_execution_context_id'>execution_context_id</span><span class='rparen'>)</span>
865
1061
  <span class='kw'>if</span> <span class='ivar'>@pending_destroy</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_execution_context_id'>execution_context_id</span><span class='rparen'>)</span>
@@ -889,15 +1085,15 @@
889
1085
  <pre class="lines">
890
1086
 
891
1087
 
892
- 58
893
- 59
894
- 60
895
- 61
896
1088
  62
897
- 63</pre>
1089
+ 63
1090
+ 64
1091
+ 65
1092
+ 66
1093
+ 67</pre>
898
1094
  </td>
899
1095
  <td>
900
- <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 58</span>
1096
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 62</span>
901
1097
 
902
1098
  <span class='kw'>def</span> <span class='id identifier rubyid_detach'>detach</span>
903
1099
  <span class='ivar'>@detached</span> <span class='op'>=</span> <span class='kw'>true</span>
@@ -973,12 +1169,12 @@
973
1169
  <pre class="lines">
974
1170
 
975
1171
 
976
- 85
977
- 86
978
- 87</pre>
1172
+ 89
1173
+ 90
1174
+ 91</pre>
979
1175
  </td>
980
1176
  <td>
981
- <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 85</span>
1177
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 89</span>
982
1178
 
983
1179
  <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>
984
1180
  <span class='id identifier rubyid_execution_context'>execution_context</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>
@@ -1051,12 +1247,12 @@
1051
1247
  <pre class="lines">
1052
1248
 
1053
1249
 
1054
- 78
1055
- 79
1056
- 80</pre>
1250
+ 82
1251
+ 83
1252
+ 84</pre>
1057
1253
  </td>
1058
1254
  <td>
1059
- <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 78</span>
1255
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 82</span>
1060
1256
 
1061
1257
  <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>
1062
1258
  <span class='id identifier rubyid_execution_context'>execution_context</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>
@@ -1103,15 +1299,15 @@
1103
1299
  <pre class="lines">
1104
1300
 
1105
1301
 
1106
- 68
1107
- 69
1108
- 70
1109
- 71
1110
1302
  72
1111
- 73</pre>
1303
+ 73
1304
+ 74
1305
+ 75
1306
+ 76
1307
+ 77</pre>
1112
1308
  </td>
1113
1309
  <td>
1114
- <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 68</span>
1310
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 72</span>
1115
1311
 
1116
1312
  <span class='kw'>def</span> <span class='id identifier rubyid_execution_context'>execution_context</span>
1117
1313
  <span class='kw'>if</span> <span class='ivar'>@detached</span>
@@ -1161,12 +1357,12 @@
1161
1357
  <pre class="lines">
1162
1358
 
1163
1359
 
1164
- 54
1165
- 55
1166
- 56</pre>
1360
+ 58
1361
+ 59
1362
+ 60</pre>
1167
1363
  </td>
1168
1364
  <td>
1169
- <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 54</span>
1365
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 58</span>
1170
1366
 
1171
1367
  <span class='kw'>def</span> <span class='id identifier rubyid_has_context?'>has_context?</span>
1172
1368
  <span class='ivar'>@context_promise</span><span class='period'>.</span><span class='id identifier rubyid_resolved?'>resolved?</span>
@@ -1230,12 +1426,12 @@
1230
1426
  <pre class="lines">
1231
1427
 
1232
1428
 
1233
- 92
1234
- 93
1235
- 94</pre>
1429
+ 96
1430
+ 97
1431
+ 98</pre>
1236
1432
  </td>
1237
1433
  <td>
1238
- <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 92</span>
1434
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 96</span>
1239
1435
 
1240
1436
  <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>
1241
1437
  <span class='id identifier rubyid_document'>document</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>
@@ -1321,12 +1517,12 @@
1321
1517
  <pre class="lines">
1322
1518
 
1323
1519
 
1324
- 125
1325
- 126
1326
- 127</pre>
1520
+ 129
1521
+ 130
1522
+ 131</pre>
1327
1523
  </td>
1328
1524
  <td>
1329
- <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 125</span>
1525
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 129</span>
1330
1526
 
1331
1527
  <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>
1332
1528
  <span class='id identifier rubyid_document'>document</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>
@@ -1390,12 +1586,12 @@
1390
1586
  <pre class="lines">
1391
1587
 
1392
1588
 
1393
- 141
1394
- 142
1395
- 143</pre>
1589
+ 145
1590
+ 146
1591
+ 147</pre>
1396
1592
  </td>
1397
1593
  <td>
1398
- <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 141</span>
1594
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 145</span>
1399
1595
 
1400
1596
  <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>
1401
1597
  <span class='id identifier rubyid_document'>document</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>
@@ -1481,12 +1677,12 @@
1481
1677
  <pre class="lines">
1482
1678
 
1483
1679
 
1484
- 134
1485
- 135
1486
- 136</pre>
1680
+ 138
1681
+ 139
1682
+ 140</pre>
1487
1683
  </td>
1488
1684
  <td>
1489
- <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 134</span>
1685
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 138</span>
1490
1686
 
1491
1687
  <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>
1492
1688
  <span class='id identifier rubyid_document'>document</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>
@@ -1550,12 +1746,12 @@
1550
1746
  <pre class="lines">
1551
1747
 
1552
1748
 
1553
- 116
1554
- 117
1555
- 118</pre>
1749
+ 120
1750
+ 121
1751
+ 122</pre>
1556
1752
  </td>
1557
1753
  <td>
1558
- <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 116</span>
1754
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 120</span>
1559
1755
 
1560
1756
  <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>
1561
1757
  <span class='id identifier rubyid_document'>document</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>
@@ -1563,6 +1759,352 @@
1563
1759
  </td>
1564
1760
  </tr>
1565
1761
  </table>
1762
+ </div>
1763
+
1764
+ <div class="method_details ">
1765
+ <h3 class="signature " id="tap-instance_method">
1766
+
1767
+ #<strong>tap</strong>(selector) &#x21d2; <tt>Object</tt>
1768
+
1769
+
1770
+
1771
+
1772
+
1773
+ </h3><div class="docstring">
1774
+ <div class="discussion">
1775
+
1776
+
1777
+ </div>
1778
+ </div>
1779
+ <div class="tags">
1780
+ <p class="tag_title">Parameters:</p>
1781
+ <ul class="param">
1782
+
1783
+ <li>
1784
+
1785
+ <span class='name'>selector</span>
1786
+
1787
+
1788
+ <span class='type'>(<tt>String</tt>)</span>
1789
+
1790
+
1791
+
1792
+ </li>
1793
+
1794
+ </ul>
1795
+
1796
+
1797
+ </div><table class="source_code">
1798
+ <tr>
1799
+ <td>
1800
+ <pre class="lines">
1801
+
1802
+
1803
+ 372
1804
+ 373
1805
+ 374
1806
+ 375
1807
+ 376</pre>
1808
+ </td>
1809
+ <td>
1810
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 372</span>
1811
+
1812
+ <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>
1813
+ <span class='id identifier rubyid_handle'>handle</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#S-instance_method" title="Puppeteer::DOMWorld#S (method)">S</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
1814
+ <span class='id identifier rubyid_handle'>handle</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span>
1815
+ <span class='id identifier rubyid_handle'>handle</span><span class='period'>.</span><span class='id identifier rubyid_dispose'>dispose</span>
1816
+ <span class='kw'>end</span></pre>
1817
+ </td>
1818
+ </tr>
1819
+ </table>
1820
+ </div>
1821
+
1822
+ <div class="method_details ">
1823
+ <h3 class="signature " id="type_text-instance_method">
1824
+
1825
+ #<strong>type_text</strong>(selector, text, delay: nil) &#x21d2; <tt>Object</tt>
1826
+
1827
+
1828
+
1829
+
1830
+
1831
+ </h3><div class="docstring">
1832
+ <div class="discussion">
1833
+
1834
+
1835
+ </div>
1836
+ </div>
1837
+ <div class="tags">
1838
+ <p class="tag_title">Parameters:</p>
1839
+ <ul class="param">
1840
+
1841
+ <li>
1842
+
1843
+ <span class='name'>selector</span>
1844
+
1845
+
1846
+ <span class='type'>(<tt>String</tt>)</span>
1847
+
1848
+
1849
+
1850
+ </li>
1851
+
1852
+ <li>
1853
+
1854
+ <span class='name'>text</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
+ </ul>
1877
+
1878
+
1879
+ </div><table class="source_code">
1880
+ <tr>
1881
+ <td>
1882
+ <pre class="lines">
1883
+
1884
+
1885
+ 381
1886
+ 382
1887
+ 383
1888
+ 384
1889
+ 385</pre>
1890
+ </td>
1891
+ <td>
1892
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 381</span>
1893
+
1894
+ <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>
1895
+ <span class='id identifier rubyid_handle'>handle</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#S-instance_method" title="Puppeteer::DOMWorld#S (method)">S</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
1896
+ <span class='id identifier rubyid_handle'>handle</span><span class='period'>.</span><span class='id identifier rubyid_type_text'>type_text</span><span class='lparen'>(</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>
1897
+ <span class='id identifier rubyid_handle'>handle</span><span class='period'>.</span><span class='id identifier rubyid_dispose'>dispose</span>
1898
+ <span class='kw'>end</span></pre>
1899
+ </td>
1900
+ </tr>
1901
+ </table>
1902
+ </div>
1903
+
1904
+ <div class="method_details ">
1905
+ <h3 class="signature " id="wait_for_selector-instance_method">
1906
+
1907
+ #<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) &#x21d2; <tt>Object</tt>
1908
+
1909
+
1910
+
1911
+
1912
+
1913
+ </h3><div class="docstring">
1914
+ <div class="discussion">
1915
+
1916
+
1917
+ </div>
1918
+ </div>
1919
+ <div class="tags">
1920
+ <p class="tag_title">Parameters:</p>
1921
+ <ul class="param">
1922
+
1923
+ <li>
1924
+
1925
+ <span class='name'>selector</span>
1926
+
1927
+
1928
+ <span class='type'>(<tt>String</tt>)</span>
1929
+
1930
+
1931
+
1932
+ </li>
1933
+
1934
+ <li>
1935
+
1936
+ <span class='name'>visible</span>
1937
+
1938
+
1939
+ <span class='type'>(<tt>Boolean</tt>)</span>
1940
+
1941
+
1942
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1943
+
1944
+
1945
+ &mdash;
1946
+ <div class='inline'>
1947
+ <p>Wait for element visible (not &#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
1948
+ </div>
1949
+
1950
+ </li>
1951
+
1952
+ <li>
1953
+
1954
+ <span class='name'>hidden</span>
1955
+
1956
+
1957
+ <span class='type'>(<tt>Boolean</tt>)</span>
1958
+
1959
+
1960
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1961
+
1962
+
1963
+ &mdash;
1964
+ <div class='inline'>
1965
+ <p>Wait for element invisible (&#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
1966
+ </div>
1967
+
1968
+ </li>
1969
+
1970
+ <li>
1971
+
1972
+ <span class='name'>timeout</span>
1973
+
1974
+
1975
+ <span class='type'>(<tt>Integer</tt>)</span>
1976
+
1977
+
1978
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
1979
+
1980
+
1981
+ </li>
1982
+
1983
+ </ul>
1984
+
1985
+
1986
+ </div><table class="source_code">
1987
+ <tr>
1988
+ <td>
1989
+ <pre class="lines">
1990
+
1991
+
1992
+ 391
1993
+ 392
1994
+ 393</pre>
1995
+ </td>
1996
+ <td>
1997
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 391</span>
1998
+
1999
+ <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>
2000
+ <span class='id identifier rubyid_wait_for_selector_or_xpath'>wait_for_selector_or_xpath</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='kw'>false</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>
2001
+ <span class='kw'>end</span></pre>
2002
+ </td>
2003
+ </tr>
2004
+ </table>
2005
+ </div>
2006
+
2007
+ <div class="method_details ">
2008
+ <h3 class="signature " id="wait_for_xpath-instance_method">
2009
+
2010
+ #<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) &#x21d2; <tt>Object</tt>
2011
+
2012
+
2013
+
2014
+
2015
+
2016
+ </h3><div class="docstring">
2017
+ <div class="discussion">
2018
+
2019
+
2020
+ </div>
2021
+ </div>
2022
+ <div class="tags">
2023
+ <p class="tag_title">Parameters:</p>
2024
+ <ul class="param">
2025
+
2026
+ <li>
2027
+
2028
+ <span class='name'>xpath</span>
2029
+
2030
+
2031
+ <span class='type'>(<tt>String</tt>)</span>
2032
+
2033
+
2034
+
2035
+ </li>
2036
+
2037
+ <li>
2038
+
2039
+ <span class='name'>visible</span>
2040
+
2041
+
2042
+ <span class='type'>(<tt>Boolean</tt>)</span>
2043
+
2044
+
2045
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
2046
+
2047
+
2048
+ &mdash;
2049
+ <div class='inline'>
2050
+ <p>Wait for element visible (not &#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
2051
+ </div>
2052
+
2053
+ </li>
2054
+
2055
+ <li>
2056
+
2057
+ <span class='name'>hidden</span>
2058
+
2059
+
2060
+ <span class='type'>(<tt>Boolean</tt>)</span>
2061
+
2062
+
2063
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
2064
+
2065
+
2066
+ &mdash;
2067
+ <div class='inline'>
2068
+ <p>Wait for element invisible (&#39;display: none&#39; nor &#39;visibility: hidden&#39;) on true. default to false.</p>
2069
+ </div>
2070
+
2071
+ </li>
2072
+
2073
+ <li>
2074
+
2075
+ <span class='name'>timeout</span>
2076
+
2077
+
2078
+ <span class='type'>(<tt>Integer</tt>)</span>
2079
+
2080
+
2081
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
2082
+
2083
+
2084
+ </li>
2085
+
2086
+ </ul>
2087
+
2088
+
2089
+ </div><table class="source_code">
2090
+ <tr>
2091
+ <td>
2092
+ <pre class="lines">
2093
+
2094
+
2095
+ 399
2096
+ 400
2097
+ 401</pre>
2098
+ </td>
2099
+ <td>
2100
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/dom_world.rb', line 399</span>
2101
+
2102
+ <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>
2103
+ <span class='id identifier rubyid_wait_for_selector_or_xpath'>wait_for_selector_or_xpath</span><span class='lparen'>(</span><span class='id identifier rubyid_xpath'>xpath</span><span class='comma'>,</span> <span class='kw'>true</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>
2104
+ <span class='kw'>end</span></pre>
2105
+ </td>
2106
+ </tr>
2107
+ </table>
1566
2108
  </div>
1567
2109
 
1568
2110
  </div>
@@ -1570,7 +2112,7 @@
1570
2112
  </div>
1571
2113
 
1572
2114
  <div id="footer">
1573
- Generated on Sun Apr 26 15:52:57 2020 by
2115
+ Generated on Mon May 25 23:22:49 2020 by
1574
2116
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1575
2117
  0.9.24 (ruby-2.6.3).
1576
2118
  </div>