puppeteer-ruby 0.0.5 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -2
  3. data/docs/Puppeteer.html +53 -43
  4. data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
  5. data/docs/Puppeteer/Browser.html +255 -147
  6. data/docs/Puppeteer/BrowserContext.html +1 -1
  7. data/docs/Puppeteer/BrowserFetcher.html +1 -1
  8. data/docs/Puppeteer/BrowserRunner.html +1 -1
  9. data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +1 -1
  10. data/docs/Puppeteer/CDPSession.html +86 -57
  11. data/docs/Puppeteer/CDPSession/Error.html +1 -1
  12. data/docs/Puppeteer/ConcurrentRubyUtils.html +1 -1
  13. data/docs/Puppeteer/Connection.html +65 -61
  14. data/docs/Puppeteer/Connection/MessageCallback.html +1 -1
  15. data/docs/Puppeteer/Connection/ProtocolError.html +1 -1
  16. data/docs/Puppeteer/Connection/RequestDebugPrinter.html +5 -5
  17. data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +12 -12
  18. data/docs/Puppeteer/ConsoleMessage.html +1 -1
  19. data/docs/Puppeteer/ConsoleMessage/Location.html +1 -1
  20. data/docs/Puppeteer/DOMWorld.html +708 -69
  21. data/docs/Puppeteer/DOMWorld/DetachedError.html +1 -1
  22. data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +1 -1
  23. data/docs/Puppeteer/DebugPrint.html +2 -2
  24. data/docs/Puppeteer/Device.html +1 -1
  25. data/docs/Puppeteer/Devices.html +1 -1
  26. data/docs/Puppeteer/ElementHandle.html +1120 -181
  27. data/docs/Puppeteer/ElementHandle/BoundingBox.html +507 -0
  28. data/docs/Puppeteer/ElementHandle/BoxModel.html +404 -0
  29. data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +5 -5
  30. data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +5 -5
  31. data/docs/Puppeteer/ElementHandle/Point.html +40 -29
  32. data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +1 -1
  33. data/docs/Puppeteer/EmulationManager.html +1 -1
  34. data/docs/Puppeteer/EventCallbackable.html +1 -1
  35. data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
  36. data/docs/Puppeteer/ExecutionContext.html +227 -1
  37. data/docs/Puppeteer/ExecutionContext/EvaluationError.html +1 -1
  38. data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +1 -1
  39. data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +2 -2
  40. data/docs/Puppeteer/FileChooser.html +455 -0
  41. data/docs/Puppeteer/Frame.html +492 -304
  42. data/docs/Puppeteer/FrameManager.html +22 -26
  43. data/docs/Puppeteer/FrameManager/NavigationError.html +1 -1
  44. data/docs/Puppeteer/IfPresent.html +1 -1
  45. data/docs/Puppeteer/JSHandle.html +1 -1
  46. data/docs/Puppeteer/Keyboard.html +1 -1
  47. data/docs/Puppeteer/Keyboard/KeyDefinition.html +1 -1
  48. data/docs/Puppeteer/Keyboard/KeyDescription.html +1 -1
  49. data/docs/Puppeteer/Launcher.html +1 -1
  50. data/docs/Puppeteer/Launcher/Base.html +1 -1
  51. data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +1 -1
  52. data/docs/Puppeteer/Launcher/BrowserOptions.html +1 -1
  53. data/docs/Puppeteer/Launcher/Chrome.html +64 -23
  54. data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +1 -1
  55. data/docs/Puppeteer/Launcher/ChromeArgOptions.html +1 -1
  56. data/docs/Puppeteer/Launcher/LaunchOptions.html +1 -1
  57. data/docs/Puppeteer/LifecycleWatcher.html +1 -1
  58. data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +1 -1
  59. data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +1 -1
  60. data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +1 -1
  61. data/docs/Puppeteer/Mouse.html +31 -41
  62. data/docs/Puppeteer/Mouse/Button.html +1 -1
  63. data/docs/Puppeteer/NetworkManager.html +1 -1
  64. data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
  65. data/docs/Puppeteer/Page.html +980 -436
  66. data/docs/Puppeteer/Page/FileChooserTimeoutError.html +206 -0
  67. data/docs/Puppeteer/Page/ScreenshotOptions.html +1 -1
  68. data/docs/Puppeteer/Page/ScriptTag.html +24 -24
  69. data/docs/Puppeteer/Page/StyleTag.html +19 -19
  70. data/docs/Puppeteer/Page/TargetCrashedError.html +1 -1
  71. data/docs/Puppeteer/RemoteObject.html +173 -37
  72. data/docs/Puppeteer/Target.html +149 -197
  73. data/docs/Puppeteer/Target/InitializeFailure.html +1 -1
  74. data/docs/Puppeteer/Target/TargetInfo.html +1 -1
  75. data/docs/Puppeteer/TimeoutError.html +2 -2
  76. data/docs/Puppeteer/TimeoutSettings.html +1 -1
  77. data/docs/Puppeteer/TouchScreen.html +1 -1
  78. data/docs/Puppeteer/Viewport.html +81 -1
  79. data/docs/Puppeteer/WaitTask.html +434 -8
  80. data/docs/Puppeteer/WaitTask/TerminatedError.html +1 -1
  81. data/docs/Puppeteer/WaitTask/TimeoutError.html +206 -0
  82. data/docs/Puppeteer/WebSocket.html +26 -26
  83. data/docs/Puppeteer/WebSocket/DriverImpl.html +1 -1
  84. data/docs/Puppeteer/WebSocket/TransportError.html +124 -0
  85. data/docs/Puppeteer/WebSocketTransport.html +2 -2
  86. data/docs/Puppeteer/WebSocktTransportError.html +1 -1
  87. data/docs/_index.html +47 -19
  88. data/docs/class_list.html +1 -1
  89. data/docs/file.README.html +5 -3
  90. data/docs/index.html +5 -3
  91. data/docs/method_list.html +788 -444
  92. data/docs/top-level-namespace.html +1 -1
  93. data/lib/puppeteer.rb +7 -1
  94. data/lib/puppeteer/browser.rb +21 -6
  95. data/lib/puppeteer/browser_runner.rb +1 -1
  96. data/lib/puppeteer/cdp_session.rb +33 -11
  97. data/lib/puppeteer/connection.rb +13 -1
  98. data/lib/puppeteer/dom_world.rb +113 -108
  99. data/lib/puppeteer/element_handle.rb +183 -222
  100. data/lib/puppeteer/element_handle/bounding_box.rb +12 -0
  101. data/lib/puppeteer/element_handle/box_model.rb +19 -0
  102. data/lib/puppeteer/element_handle/point.rb +26 -0
  103. data/lib/puppeteer/errors.rb +1 -3
  104. data/lib/puppeteer/execution_context.rb +36 -17
  105. data/lib/puppeteer/file_chooser.rb +29 -0
  106. data/lib/puppeteer/frame.rb +32 -12
  107. data/lib/puppeteer/frame_manager.rb +0 -2
  108. data/lib/puppeteer/launcher/chrome.rb +48 -2
  109. data/lib/puppeteer/mouse.rb +3 -8
  110. data/lib/puppeteer/page.rb +116 -65
  111. data/lib/puppeteer/remote_object.rb +15 -1
  112. data/lib/puppeteer/target.rb +24 -24
  113. data/lib/puppeteer/version.rb +1 -1
  114. data/lib/puppeteer/viewport.rb +18 -0
  115. data/lib/puppeteer/wait_task.rb +183 -1
  116. data/lib/puppeteer/web_socket.rb +3 -1
  117. data/lib/puppeteer/web_socket_transport.rb +1 -1
  118. metadata +12 -2
@@ -153,6 +153,35 @@
153
153
  <p>Returns the value of attribute initialized_promise.</p>
154
154
  </div></span>
155
155
 
156
+ </li>
157
+
158
+
159
+ <li class="public ">
160
+ <span class="summary_signature">
161
+
162
+ <a href="#is_closed_promise-instance_method" title="#is_closed_promise (instance method)">#<strong>is_closed_promise</strong> &#x21d2; Object </a>
163
+
164
+
165
+
166
+ </span>
167
+
168
+
169
+
170
+
171
+ <span class="note title readonly">readonly</span>
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+ <span class="summary_desc"><div class='inline'>
182
+ <p>Returns the value of attribute is_closed_promise.</p>
183
+ </div></span>
184
+
156
185
  </li>
157
186
 
158
187
 
@@ -245,7 +274,7 @@
245
274
  <li class="public ">
246
275
  <span class="summary_signature">
247
276
 
248
- <a href="#create_cdp_session-instance_method" title="#create_cdp_session (instance method)">#<strong>create_cdp_session</strong> &#x21d2; Object </a>
277
+ <a href="#closed_callback-instance_method" title="#closed_callback (instance method)">#<strong>closed_callback</strong> &#x21d2; Object </a>
249
278
 
250
279
 
251
280
 
@@ -267,7 +296,7 @@
267
296
  <li class="public ">
268
297
  <span class="summary_signature">
269
298
 
270
- <a href="#handle_closed-instance_method" title="#handle_closed (instance method)">#<strong>handle_closed</strong> &#x21d2; Object </a>
299
+ <a href="#create_cdp_session-instance_method" title="#create_cdp_session (instance method)">#<strong>create_cdp_session</strong> &#x21d2; Object </a>
271
300
 
272
301
 
273
302
 
@@ -289,7 +318,7 @@
289
318
  <li class="public ">
290
319
  <span class="summary_signature">
291
320
 
292
- <a href="#handle_initialized-instance_method" title="#handle_initialized (instance method)">#<strong>handle_initialized</strong>(success) &#x21d2; Object </a>
321
+ <a href="#handle_target_info_changed-instance_method" title="#handle_target_info_changed (instance method)">#<strong>handle_target_info_changed</strong>(target_info) &#x21d2; Object </a>
293
322
 
294
323
 
295
324
 
@@ -311,7 +340,7 @@
311
340
  <li class="public ">
312
341
  <span class="summary_signature">
313
342
 
314
- <a href="#handle_target_info_changed-instance_method" title="#handle_target_info_changed (instance method)">#<strong>handle_target_info_changed</strong>(target_info) &#x21d2; Object </a>
343
+ <a href="#ignore_initialize_callback_promise-instance_method" title="#ignore_initialize_callback_promise (instance method)">#<strong>ignore_initialize_callback_promise</strong> &#x21d2; Object </a>
315
344
 
316
345
 
317
346
 
@@ -373,50 +402,6 @@
373
402
 
374
403
 
375
404
 
376
- <span class="summary_desc"><div class='inline'></div></span>
377
-
378
- </li>
379
-
380
-
381
- <li class="public ">
382
- <span class="summary_signature">
383
-
384
- <a href="#on_close-instance_method" title="#on_close (instance method)">#<strong>on_close</strong>(&amp;block) &#x21d2; Object </a>
385
-
386
-
387
-
388
- </span>
389
-
390
-
391
-
392
-
393
-
394
-
395
-
396
-
397
-
398
- <span class="summary_desc"><div class='inline'></div></span>
399
-
400
- </li>
401
-
402
-
403
- <li class="public ">
404
- <span class="summary_signature">
405
-
406
- <a href="#on_initialize_succeeded-instance_method" title="#on_initialize_succeeded (instance method)">#<strong>on_initialize_succeeded</strong>(&amp;block) &#x21d2; Object </a>
407
-
408
-
409
-
410
- </span>
411
-
412
-
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
405
  <span class="summary_desc"><div class='inline'></div></span>
421
406
 
422
407
  </li>
@@ -634,7 +619,10 @@
634
619
  41
635
620
  42
636
621
  43
637
- 44</pre>
622
+ 44
623
+ 45
624
+ 46
625
+ 47</pre>
638
626
  </td>
639
627
  <td>
640
628
  <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 22</span>
@@ -653,13 +641,16 @@
653
641
  </span> <span class='comment'># this._pagePromise = null;
654
642
  </span> <span class='comment'># /** @type {?Promise&lt;!Worker&gt;} */
655
643
  </span> <span class='comment'># this._workerPromise = null;
656
- </span> <span class='ivar'>@initialized_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>
657
- <span class='comment'># this._isClosedPromise = new Promise(fulfill =&gt; this._closedCallback = fulfill);
658
- </span>
644
+ </span> <span class='ivar'>@initialize_callback_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>
645
+ <span class='ivar'>@initialized_promise</span> <span class='op'>=</span> <span class='ivar'>@initialize_callback_promise</span><span class='period'>.</span><span class='id identifier rubyid_then'>then</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_success'>success</span><span class='op'>|</span>
646
+ <span class='id identifier rubyid_handle_initialized'>handle_initialized</span><span class='lparen'>(</span><span class='id identifier rubyid_success'>success</span><span class='rparen'>)</span>
647
+ <span class='kw'>end</span>
648
+ <span class='ivar'>@is_closed_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>
649
+
659
650
  <span class='ivar'>@is_initialized</span> <span class='op'>=</span> <span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>page</span><span class='tstring_end'>&#39;</span></span> <span class='op'>||</span> <span class='op'>!</span><span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
660
651
 
661
652
  <span class='kw'>if</span> <span class='ivar'>@is_initialized</span>
662
- <span class='id identifier rubyid_handle_initialized'>handle_initialized</span><span class='lparen'>(</span><span class='kw'>true</span><span class='rparen'>)</span>
653
+ <span class='ivar'>@initialize_callback_promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</span><span class='kw'>true</span><span class='rparen'>)</span>
663
654
  <span class='kw'>end</span>
664
655
  <span class='kw'>end</span></pre>
665
656
  </td>
@@ -700,12 +691,12 @@
700
691
  <pre class="lines">
701
692
 
702
693
 
703
- 46
704
- 47
705
- 48</pre>
694
+ 49
695
+ 50
696
+ 51</pre>
706
697
  </td>
707
698
  <td>
708
- <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 46</span>
699
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 49</span>
709
700
 
710
701
  <span class='kw'>def</span> <span class='id identifier rubyid_initialized_promise'>initialized_promise</span>
711
702
  <span class='ivar'>@initialized_promise</span>
@@ -716,6 +707,49 @@
716
707
  </div>
717
708
 
718
709
 
710
+ <span id=""></span>
711
+ <div class="method_details ">
712
+ <h3 class="signature " id="is_closed_promise-instance_method">
713
+
714
+ #<strong>is_closed_promise</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
715
+
716
+
717
+
718
+
719
+
720
+ </h3><div class="docstring">
721
+ <div class="discussion">
722
+
723
+ <p>Returns the value of attribute is_closed_promise.</p>
724
+
725
+
726
+ </div>
727
+ </div>
728
+ <div class="tags">
729
+
730
+
731
+ </div><table class="source_code">
732
+ <tr>
733
+ <td>
734
+ <pre class="lines">
735
+
736
+
737
+ 49
738
+ 50
739
+ 51</pre>
740
+ </td>
741
+ <td>
742
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 49</span>
743
+
744
+ <span class='kw'>def</span> <span class='id identifier rubyid_is_closed_promise'>is_closed_promise</span>
745
+ <span class='ivar'>@is_closed_promise</span>
746
+ <span class='kw'>end</span></pre>
747
+ </td>
748
+ </tr>
749
+ </table>
750
+ </div>
751
+
752
+
719
753
  <span id=""></span>
720
754
  <div class="method_details ">
721
755
  <h3 class="signature " id="target_id-instance_method">
@@ -743,12 +777,12 @@
743
777
  <pre class="lines">
744
778
 
745
779
 
746
- 46
747
- 47
748
- 48</pre>
780
+ 49
781
+ 50
782
+ 51</pre>
749
783
  </td>
750
784
  <td>
751
- <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 46</span>
785
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 49</span>
752
786
 
753
787
  <span class='kw'>def</span> <span class='id identifier rubyid_target_id'>target_id</span>
754
788
  <span class='ivar'>@target_id</span>
@@ -870,9 +904,9 @@
870
904
  </div>
871
905
 
872
906
  <div class="method_details ">
873
- <h3 class="signature " id="create_cdp_session-instance_method">
907
+ <h3 class="signature " id="closed_callback-instance_method">
874
908
 
875
- #<strong>create_cdp_session</strong> &#x21d2; <tt>Object</tt>
909
+ #<strong>closed_callback</strong> &#x21d2; <tt>Object</tt>
876
910
 
877
911
 
878
912
 
@@ -884,47 +918,15 @@
884
918
  <pre class="lines">
885
919
 
886
920
 
887
- 83
888
- 84
889
- 85</pre>
890
- </td>
891
- <td>
892
- <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 83</span>
893
-
894
- <span class='kw'>def</span> <span class='id identifier rubyid_create_cdp_session'>create_cdp_session</span>
895
- <span class='ivar'>@session_factory</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
896
- <span class='kw'>end</span></pre>
897
- </td>
898
- </tr>
899
- </table>
900
- </div>
901
-
902
- <div class="method_details ">
903
- <h3 class="signature " id="handle_closed-instance_method">
904
-
905
- #<strong>handle_closed</strong> &#x21d2; <tt>Object</tt>
906
-
907
-
908
-
909
-
910
-
911
- </h3><table class="source_code">
912
- <tr>
913
- <td>
914
- <pre class="lines">
915
-
916
-
917
- 70
918
- 71
919
- 72
920
- 73</pre>
921
+ 51
922
+ 52
923
+ 53</pre>
921
924
  </td>
922
925
  <td>
923
- <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 70</span>
926
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 51</span>
924
927
 
925
- <span class='kw'>def</span> <span class='id identifier rubyid_handle_closed'>handle_closed</span>
926
- <span class='ivar'>@closed</span> <span class='op'>=</span> <span class='kw'>true</span>
927
- <span class='ivar'>@on_close</span><span class='op'>&amp;.</span><span class='id identifier rubyid_call'>call</span>
928
+ <span class='kw'>def</span> <span class='id identifier rubyid_closed_callback'>closed_callback</span>
929
+ <span class='ivar'>@is_closed_promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</span><span class='kw'>true</span><span class='rparen'>)</span>
928
930
  <span class='kw'>end</span></pre>
929
931
  </td>
930
932
  </tr>
@@ -932,9 +934,9 @@
932
934
  </div>
933
935
 
934
936
  <div class="method_details ">
935
- <h3 class="signature " id="handle_initialized-instance_method">
937
+ <h3 class="signature " id="create_cdp_session-instance_method">
936
938
 
937
- #<strong>handle_initialized</strong>(success) &#x21d2; <tt>Object</tt>
939
+ #<strong>create_cdp_session</strong> &#x21d2; <tt>Object</tt>
938
940
 
939
941
 
940
942
 
@@ -946,39 +948,15 @@
946
948
  <pre class="lines">
947
949
 
948
950
 
949
- 50
950
- 51
951
- 52
952
- 53
953
- 54
954
- 55
955
- 56
956
- 57
957
- 58
958
- 59
959
- 60
960
- 61
961
- 62
962
- 63
963
- 64</pre>
951
+ 83
952
+ 84
953
+ 85</pre>
964
954
  </td>
965
955
  <td>
966
- <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 50</span>
956
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 83</span>
967
957
 
968
- <span class='kw'>def</span> <span class='id identifier rubyid_handle_initialized'>handle_initialized</span><span class='lparen'>(</span><span class='id identifier rubyid_success'>success</span><span class='rparen'>)</span>
969
- <span class='kw'>unless</span> <span class='id identifier rubyid_success'>success</span>
970
- <span class='ivar'>@initialized_promise</span><span class='period'>.</span><span class='id identifier rubyid_reject'>reject</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="Target/InitializeFailure.html" title="Puppeteer::Target::InitializeFailure (class)">InitializeFailure</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Puppeteer::Target#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Failed to create target for page</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
971
- <span class='kw'>end</span>
972
- <span class='ivar'>@on_initialize_succeeded</span><span class='op'>&amp;.</span><span class='id identifier rubyid_call'>call</span>
973
- <span class='ivar'>@initialized_promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</span><span class='kw'>true</span><span class='rparen'>)</span>
974
- <span class='id identifier rubyid_opener_page'>opener_page</span> <span class='op'>=</span> <span class='id identifier rubyid_opener'>opener</span><span class='op'>&amp;.</span><span class='id identifier rubyid_page'>page</span>
975
- <span class='kw'>if</span> <span class='id identifier rubyid_opener_page'>opener_page</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_type'>type</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>page</span><span class='tstring_end'>&#39;</span></span>
976
- <span class='kw'>return</span>
977
- <span class='kw'>end</span>
978
- <span class='comment'># if (!openerPage.listenerCount(Events.Page.Popup))
979
- </span> <span class='comment'># return true;
980
- </span> <span class='id identifier rubyid_popup_page'>popup_page</span> <span class='op'>=</span> <span class='id identifier rubyid_page'>page</span>
981
- <span class='id identifier rubyid_opener_page'>opener_page</span><span class='period'>.</span><span class='id identifier rubyid_emit_event'>emit_event</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.Popup</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_popup_page'>popup_page</span><span class='rparen'>)</span>
958
+ <span class='kw'>def</span> <span class='id identifier rubyid_create_cdp_session'>create_cdp_session</span>
959
+ <span class='ivar'>@session_factory</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
982
960
  <span class='kw'>end</span></pre>
983
961
  </td>
984
962
  </tr>
@@ -1039,9 +1017,43 @@
1039
1017
  <span class='kw'>def</span> <span class='id identifier rubyid_handle_target_info_changed'>handle_target_info_changed</span><span class='lparen'>(</span><span class='id identifier rubyid_target_info'>target_info</span><span class='rparen'>)</span>
1040
1018
  <span class='ivar'>@target_info</span> <span class='op'>=</span> <span class='id identifier rubyid_target_info'>target_info</span>
1041
1019
 
1042
- <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@is_initialized</span> <span class='op'>&amp;&amp;</span> <span class='lparen'>(</span><span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>page</span><span class='tstring_end'>&#39;</span></span> <span class='op'>||</span> <span class='op'>!</span><span class='id identifier rubyid_target_info'>target_info</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span><span class='rparen'>)</span>
1020
+ <span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@is_initialized</span> <span class='op'>&amp;&amp;</span> <span class='lparen'>(</span><span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>page</span><span class='tstring_end'>&#39;</span></span> <span class='op'>||</span> <span class='op'>!</span><span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span><span class='rparen'>)</span>
1043
1021
  <span class='ivar'>@is_initialized</span> <span class='op'>=</span> <span class='kw'>true</span>
1044
- <span class='id identifier rubyid_handle_initialized'>handle_initialized</span><span class='lparen'>(</span><span class='kw'>true</span><span class='rparen'>)</span>
1022
+ <span class='ivar'>@initialize_callback_promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</span><span class='kw'>true</span><span class='rparen'>)</span>
1023
+ <span class='kw'>end</span>
1024
+ <span class='kw'>end</span></pre>
1025
+ </td>
1026
+ </tr>
1027
+ </table>
1028
+ </div>
1029
+
1030
+ <div class="method_details ">
1031
+ <h3 class="signature " id="ignore_initialize_callback_promise-instance_method">
1032
+
1033
+ #<strong>ignore_initialize_callback_promise</strong> &#x21d2; <tt>Object</tt>
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+ </h3><table class="source_code">
1040
+ <tr>
1041
+ <td>
1042
+ <pre class="lines">
1043
+
1044
+
1045
+ 57
1046
+ 58
1047
+ 59
1048
+ 60
1049
+ 61</pre>
1050
+ </td>
1051
+ <td>
1052
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 57</span>
1053
+
1054
+ <span class='kw'>def</span> <span class='id identifier rubyid_ignore_initialize_callback_promise'>ignore_initialize_callback_promise</span>
1055
+ <span class='kw'>unless</span> <span class='ivar'>@initialize_callback_promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfilled?'>fulfilled?</span>
1056
+ <span class='ivar'>@initialize_callback_promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</span><span class='kw'>false</span><span class='rparen'>)</span>
1045
1057
  <span class='kw'>end</span>
1046
1058
  <span class='kw'>end</span></pre>
1047
1059
  </td>
@@ -1099,66 +1111,6 @@
1099
1111
  </td>
1100
1112
  </tr>
1101
1113
  </table>
1102
- </div>
1103
-
1104
- <div class="method_details ">
1105
- <h3 class="signature " id="on_close-instance_method">
1106
-
1107
- #<strong>on_close</strong>(&amp;block) &#x21d2; <tt>Object</tt>
1108
-
1109
-
1110
-
1111
-
1112
-
1113
- </h3><table class="source_code">
1114
- <tr>
1115
- <td>
1116
- <pre class="lines">
1117
-
1118
-
1119
- 75
1120
- 76
1121
- 77</pre>
1122
- </td>
1123
- <td>
1124
- <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 75</span>
1125
-
1126
- <span class='kw'>def</span> <span class='id identifier rubyid_on_close'>on_close</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1127
- <span class='ivar'>@on_close</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
1128
- <span class='kw'>end</span></pre>
1129
- </td>
1130
- </tr>
1131
- </table>
1132
- </div>
1133
-
1134
- <div class="method_details ">
1135
- <h3 class="signature " id="on_initialize_succeeded-instance_method">
1136
-
1137
- #<strong>on_initialize_succeeded</strong>(&amp;block) &#x21d2; <tt>Object</tt>
1138
-
1139
-
1140
-
1141
-
1142
-
1143
- </h3><table class="source_code">
1144
- <tr>
1145
- <td>
1146
- <pre class="lines">
1147
-
1148
-
1149
- 66
1150
- 67
1151
- 68</pre>
1152
- </td>
1153
- <td>
1154
- <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 66</span>
1155
-
1156
- <span class='kw'>def</span> <span class='id identifier rubyid_on_initialize_succeeded'>on_initialize_succeeded</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1157
- <span class='ivar'>@on_initialize_succeeded</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
1158
- <span class='kw'>end</span></pre>
1159
- </td>
1160
- </tr>
1161
- </table>
1162
1114
  </div>
1163
1115
 
1164
1116
  <div class="method_details ">
@@ -1244,7 +1196,7 @@
1244
1196
  <pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 87</span>
1245
1197
 
1246
1198
  <span class='kw'>def</span> <span class='id identifier rubyid_page'>page</span>
1247
- <span class='kw'>if</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>page</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>background_page</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@page</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1199
+ <span class='kw'>if</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>page</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>background_page</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>webview</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@page</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1248
1200
  <span class='id identifier rubyid_client'>client</span> <span class='op'>=</span> <span class='ivar'>@session_factory</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
1249
1201
  <span class='ivar'>@page</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="Page.html" title="Puppeteer::Page (class)">Page</a></span></span><span class='period'>.</span><span class='id identifier rubyid_create'><span class='object_link'><a href="Page.html#create-class_method" title="Puppeteer::Page.create (method)">create</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='comma'>,</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='ivar'>@ignore_https_errors</span><span class='comma'>,</span> <span class='ivar'>@default_viewport</span><span class='comma'>,</span> <span class='ivar'>@screenshot_task_queue</span><span class='rparen'>)</span>
1250
1202
  <span class='kw'>end</span>
@@ -1374,7 +1326,7 @@
1374
1326
  </div>
1375
1327
 
1376
1328
  <div id="footer">
1377
- Generated on Sun Apr 26 15:52:56 2020 by
1329
+ Generated on Sat Jun 20 17:15:06 2020 by
1378
1330
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1379
1331
  0.9.24 (ruby-2.6.3).
1380
1332
  </div>