puppeteer-ruby 0.0.8 → 0.0.9
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.
- checksums.yaml +4 -4
- data/docs/Puppeteer.html +2 -2
- data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
- data/docs/Puppeteer/Browser.html +47 -49
- data/docs/Puppeteer/BrowserContext.html +1 -1
- data/docs/Puppeteer/BrowserFetcher.html +1 -1
- data/docs/Puppeteer/BrowserRunner.html +1 -1
- data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +1 -1
- data/docs/Puppeteer/CDPSession.html +1 -1
- data/docs/Puppeteer/CDPSession/Error.html +1 -1
- data/docs/Puppeteer/ConcurrentRubyUtils.html +1 -1
- data/docs/Puppeteer/Connection.html +1 -1
- data/docs/Puppeteer/Connection/MessageCallback.html +1 -1
- data/docs/Puppeteer/Connection/ProtocolError.html +1 -1
- data/docs/Puppeteer/Connection/RequestDebugPrinter.html +1 -1
- data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +1 -1
- data/docs/Puppeteer/ConsoleMessage.html +1 -1
- data/docs/Puppeteer/ConsoleMessage/Location.html +1 -1
- data/docs/Puppeteer/DOMWorld.html +1 -1
- data/docs/Puppeteer/DOMWorld/DetachedError.html +1 -1
- data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +1 -1
- data/docs/Puppeteer/DebugPrint.html +1 -1
- data/docs/Puppeteer/Device.html +1 -1
- data/docs/Puppeteer/Devices.html +1 -1
- data/docs/Puppeteer/ElementHandle.html +1 -1
- data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +1 -1
- data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +1 -1
- data/docs/Puppeteer/ElementHandle/Point.html +1 -1
- data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +1 -1
- data/docs/Puppeteer/EmulationManager.html +1 -1
- data/docs/Puppeteer/EventCallbackable.html +1 -1
- data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
- data/docs/Puppeteer/ExecutionContext.html +1 -1
- data/docs/Puppeteer/ExecutionContext/EvaluationError.html +1 -1
- data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +1 -1
- data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +1 -1
- data/docs/Puppeteer/FileChooser.html +1 -1
- data/docs/Puppeteer/Frame.html +1 -1
- data/docs/Puppeteer/FrameManager.html +22 -26
- data/docs/Puppeteer/FrameManager/NavigationError.html +1 -1
- data/docs/Puppeteer/IfPresent.html +1 -1
- data/docs/Puppeteer/JSHandle.html +1 -1
- data/docs/Puppeteer/Keyboard.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDefinition.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDescription.html +1 -1
- data/docs/Puppeteer/Launcher.html +1 -1
- data/docs/Puppeteer/Launcher/Base.html +1 -1
- data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +1 -1
- data/docs/Puppeteer/Launcher/BrowserOptions.html +1 -1
- data/docs/Puppeteer/Launcher/Chrome.html +1 -1
- data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +1 -1
- data/docs/Puppeteer/Launcher/ChromeArgOptions.html +1 -1
- data/docs/Puppeteer/Launcher/LaunchOptions.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +1 -1
- data/docs/Puppeteer/Mouse.html +1 -1
- data/docs/Puppeteer/Mouse/Button.html +1 -1
- data/docs/Puppeteer/NetworkManager.html +1 -1
- data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
- data/docs/Puppeteer/Page.html +1 -1
- data/docs/Puppeteer/Page/FileChooserTimeoutError.html +1 -1
- data/docs/Puppeteer/Page/ScreenshotOptions.html +1 -1
- data/docs/Puppeteer/Page/ScriptTag.html +1 -1
- data/docs/Puppeteer/Page/StyleTag.html +1 -1
- data/docs/Puppeteer/Page/TargetCrashedError.html +1 -1
- data/docs/Puppeteer/RemoteObject.html +1 -1
- data/docs/Puppeteer/Target.html +102 -172
- data/docs/Puppeteer/Target/InitializeFailure.html +1 -1
- data/docs/Puppeteer/Target/TargetInfo.html +1 -1
- data/docs/Puppeteer/TimeoutError.html +1 -1
- data/docs/Puppeteer/TimeoutSettings.html +1 -1
- data/docs/Puppeteer/TouchScreen.html +1 -1
- data/docs/Puppeteer/Viewport.html +1 -1
- data/docs/Puppeteer/WaitTask.html +1 -1
- data/docs/Puppeteer/WaitTask/TerminatedError.html +1 -1
- data/docs/Puppeteer/WaitTask/TimeoutError.html +1 -1
- data/docs/Puppeteer/WebSocket.html +1 -1
- data/docs/Puppeteer/WebSocket/DriverImpl.html +1 -1
- data/docs/Puppeteer/WebSocketTransport.html +1 -1
- data/docs/Puppeteer/WebSocktTransportError.html +1 -1
- data/docs/_index.html +1 -1
- data/docs/file.README.html +1 -1
- data/docs/index.html +1 -1
- data/docs/method_list.html +300 -308
- data/docs/top-level-namespace.html +1 -1
- data/lib/puppeteer/browser.rb +3 -4
- data/lib/puppeteer/target.rb +16 -13
- data/lib/puppeteer/version.rb +1 -1
- metadata +2 -2
|
@@ -521,7 +521,7 @@
|
|
|
521
521
|
</div>
|
|
522
522
|
|
|
523
523
|
<div id="footer">
|
|
524
|
-
Generated on
|
|
524
|
+
Generated on Tue Jun 9 00:13:41 2020 by
|
|
525
525
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
526
526
|
0.9.24 (ruby-2.6.3).
|
|
527
527
|
</div>
|
|
@@ -883,7 +883,7 @@
|
|
|
883
883
|
</div>
|
|
884
884
|
|
|
885
885
|
<div id="footer">
|
|
886
|
-
Generated on
|
|
886
|
+
Generated on Tue Jun 9 00:13:41 2020 by
|
|
887
887
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
888
888
|
0.9.24 (ruby-2.6.3).
|
|
889
889
|
</div>
|
|
@@ -824,7 +824,7 @@
|
|
|
824
824
|
</div>
|
|
825
825
|
|
|
826
826
|
<div id="footer">
|
|
827
|
-
Generated on
|
|
827
|
+
Generated on Tue Jun 9 00:13:41 2020 by
|
|
828
828
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
829
829
|
0.9.24 (ruby-2.6.3).
|
|
830
830
|
</div>
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
</div>
|
|
354
354
|
|
|
355
355
|
<div id="footer">
|
|
356
|
-
Generated on
|
|
356
|
+
Generated on Tue Jun 9 00:13:41 2020 by
|
|
357
357
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
358
358
|
0.9.24 (ruby-2.6.3).
|
|
359
359
|
</div>
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
</div>
|
|
197
197
|
|
|
198
198
|
<div id="footer">
|
|
199
|
-
Generated on
|
|
199
|
+
Generated on Tue Jun 9 00:13:41 2020 by
|
|
200
200
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
201
201
|
0.9.24 (ruby-2.6.3).
|
|
202
202
|
</div>
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
116
|
<div id="footer">
|
|
117
|
-
Generated on
|
|
117
|
+
Generated on Tue Jun 9 00:13:41 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>
|
data/docs/Puppeteer/Mouse.html
CHANGED
|
@@ -1095,7 +1095,7 @@
|
|
|
1095
1095
|
</div>
|
|
1096
1096
|
|
|
1097
1097
|
<div id="footer">
|
|
1098
|
-
Generated on
|
|
1098
|
+
Generated on Tue Jun 9 00:13:39 2020 by
|
|
1099
1099
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1100
1100
|
0.9.24 (ruby-2.6.3).
|
|
1101
1101
|
</div>
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
</div>
|
|
127
127
|
|
|
128
128
|
<div id="footer">
|
|
129
|
-
Generated on
|
|
129
|
+
Generated on Tue Jun 9 00:13:39 2020 by
|
|
130
130
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
131
131
|
0.9.24 (ruby-2.6.3).
|
|
132
132
|
</div>
|
|
@@ -891,7 +891,7 @@
|
|
|
891
891
|
</div>
|
|
892
892
|
|
|
893
893
|
<div id="footer">
|
|
894
|
-
Generated on
|
|
894
|
+
Generated on Tue Jun 9 00:13:41 2020 by
|
|
895
895
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
896
896
|
0.9.24 (ruby-2.6.3).
|
|
897
897
|
</div>
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
</div>
|
|
376
376
|
|
|
377
377
|
<div id="footer">
|
|
378
|
-
Generated on
|
|
378
|
+
Generated on Tue Jun 9 00:13:41 2020 by
|
|
379
379
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
380
380
|
0.9.24 (ruby-2.6.3).
|
|
381
381
|
</div>
|
data/docs/Puppeteer/Page.html
CHANGED
|
@@ -5960,7 +5960,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5960
5960
|
</div>
|
|
5961
5961
|
|
|
5962
5962
|
<div id="footer">
|
|
5963
|
-
Generated on
|
|
5963
|
+
Generated on Tue Jun 9 00:13:39 2020 by
|
|
5964
5964
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
5965
5965
|
0.9.24 (ruby-2.6.3).
|
|
5966
5966
|
</div>
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
</div>
|
|
197
197
|
|
|
198
198
|
<div id="footer">
|
|
199
|
-
Generated on
|
|
199
|
+
Generated on Tue Jun 9 00:13:39 2020 by
|
|
200
200
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
201
201
|
0.9.24 (ruby-2.6.3).
|
|
202
202
|
</div>
|
|
@@ -835,7 +835,7 @@
|
|
|
835
835
|
</div>
|
|
836
836
|
|
|
837
837
|
<div id="footer">
|
|
838
|
-
Generated on
|
|
838
|
+
Generated on Tue Jun 9 00:13:41 2020 by
|
|
839
839
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
840
840
|
0.9.24 (ruby-2.6.3).
|
|
841
841
|
</div>
|
|
@@ -545,7 +545,7 @@ if (items.length)
|
|
|
545
545
|
</div>
|
|
546
546
|
|
|
547
547
|
<div id="footer">
|
|
548
|
-
Generated on
|
|
548
|
+
Generated on Tue Jun 9 00:13:39 2020 by
|
|
549
549
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
550
550
|
0.9.24 (ruby-2.6.3).
|
|
551
551
|
</div>
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
</div>
|
|
439
439
|
|
|
440
440
|
<div id="footer">
|
|
441
|
-
Generated on
|
|
441
|
+
Generated on Tue Jun 9 00:13:39 2020 by
|
|
442
442
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
443
443
|
0.9.24 (ruby-2.6.3).
|
|
444
444
|
</div>
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
</div>
|
|
115
115
|
|
|
116
116
|
<div id="footer">
|
|
117
|
-
Generated on
|
|
117
|
+
Generated on Tue Jun 9 00:13:39 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>
|
|
@@ -1006,7 +1006,7 @@
|
|
|
1006
1006
|
</div>
|
|
1007
1007
|
|
|
1008
1008
|
<div id="footer">
|
|
1009
|
-
Generated on
|
|
1009
|
+
Generated on Tue Jun 9 00:13:40 2020 by
|
|
1010
1010
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1011
1011
|
0.9.24 (ruby-2.6.3).
|
|
1012
1012
|
</div>
|
data/docs/Puppeteer/Target.html
CHANGED
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
<li class="public ">
|
|
290
290
|
<span class="summary_signature">
|
|
291
291
|
|
|
292
|
-
<a href="#
|
|
292
|
+
<a href="#handle_target_info_changed-instance_method" title="#handle_target_info_changed (instance method)">#<strong>handle_target_info_changed</strong>(target_info) ⇒ Object </a>
|
|
293
293
|
|
|
294
294
|
|
|
295
295
|
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
<li class="public ">
|
|
312
312
|
<span class="summary_signature">
|
|
313
313
|
|
|
314
|
-
<a href="#
|
|
314
|
+
<a href="#ignore_initialize_callback_promise-instance_method" title="#ignore_initialize_callback_promise (instance method)">#<strong>ignore_initialize_callback_promise</strong> ⇒ Object </a>
|
|
315
315
|
|
|
316
316
|
|
|
317
317
|
|
|
@@ -395,28 +395,6 @@
|
|
|
395
395
|
|
|
396
396
|
|
|
397
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>(&block) ⇒ Object </a>
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
</span>
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
398
|
<span class="summary_desc"><div class='inline'></div></span>
|
|
421
399
|
|
|
422
400
|
</li>
|
|
@@ -634,7 +612,10 @@
|
|
|
634
612
|
41
|
|
635
613
|
42
|
|
636
614
|
43
|
|
637
|
-
44
|
|
615
|
+
44
|
|
616
|
+
45
|
|
617
|
+
46
|
|
618
|
+
47</pre>
|
|
638
619
|
</td>
|
|
639
620
|
<td>
|
|
640
621
|
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 22</span>
|
|
@@ -653,13 +634,16 @@
|
|
|
653
634
|
</span> <span class='comment'># this._pagePromise = null;
|
|
654
635
|
</span> <span class='comment'># /** @type {?Promise<!Worker>} */
|
|
655
636
|
</span> <span class='comment'># this._workerPromise = null;
|
|
656
|
-
</span> <span class='ivar'>@
|
|
637
|
+
</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>
|
|
638
|
+
<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>
|
|
639
|
+
<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>
|
|
640
|
+
<span class='kw'>end</span>
|
|
657
641
|
<span class='comment'># this._isClosedPromise = new Promise(fulfill => this._closedCallback = fulfill);
|
|
658
642
|
</span>
|
|
659
643
|
<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'>'</span><span class='tstring_content'>page</span><span class='tstring_end'>'</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
644
|
|
|
661
645
|
<span class='kw'>if</span> <span class='ivar'>@is_initialized</span>
|
|
662
|
-
<span class='id identifier
|
|
646
|
+
<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
647
|
<span class='kw'>end</span>
|
|
664
648
|
<span class='kw'>end</span></pre>
|
|
665
649
|
</td>
|
|
@@ -700,12 +684,12 @@
|
|
|
700
684
|
<pre class="lines">
|
|
701
685
|
|
|
702
686
|
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
687
|
+
49
|
|
688
|
+
50
|
|
689
|
+
51</pre>
|
|
706
690
|
</td>
|
|
707
691
|
<td>
|
|
708
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line
|
|
692
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 49</span>
|
|
709
693
|
|
|
710
694
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialized_promise'>initialized_promise</span>
|
|
711
695
|
<span class='ivar'>@initialized_promise</span>
|
|
@@ -743,12 +727,12 @@
|
|
|
743
727
|
<pre class="lines">
|
|
744
728
|
|
|
745
729
|
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
730
|
+
49
|
|
731
|
+
50
|
|
732
|
+
51</pre>
|
|
749
733
|
</td>
|
|
750
734
|
<td>
|
|
751
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line
|
|
735
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 49</span>
|
|
752
736
|
|
|
753
737
|
<span class='kw'>def</span> <span class='id identifier rubyid_target_id'>target_id</span>
|
|
754
738
|
<span class='ivar'>@target_id</span>
|
|
@@ -802,12 +786,12 @@
|
|
|
802
786
|
<pre class="lines">
|
|
803
787
|
|
|
804
788
|
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
789
|
+
128
|
|
790
|
+
129
|
|
791
|
+
130</pre>
|
|
808
792
|
</td>
|
|
809
793
|
<td>
|
|
810
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line
|
|
794
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 128</span>
|
|
811
795
|
|
|
812
796
|
<span class='kw'>def</span> <span class='id identifier rubyid_browser'>browser</span>
|
|
813
797
|
<span class='ivar'>@browser_context</span><span class='period'>.</span><span class='id identifier rubyid_browser'>browser</span>
|
|
@@ -854,12 +838,12 @@
|
|
|
854
838
|
<pre class="lines">
|
|
855
839
|
|
|
856
840
|
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
841
|
+
133
|
|
842
|
+
134
|
|
843
|
+
135</pre>
|
|
860
844
|
</td>
|
|
861
845
|
<td>
|
|
862
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line
|
|
846
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 133</span>
|
|
863
847
|
|
|
864
848
|
<span class='kw'>def</span> <span class='id identifier rubyid_browser_context'>browser_context</span>
|
|
865
849
|
<span class='ivar'>@browser_context</span>
|
|
@@ -884,12 +868,12 @@
|
|
|
884
868
|
<pre class="lines">
|
|
885
869
|
|
|
886
870
|
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
871
|
+
86
|
|
872
|
+
87
|
|
873
|
+
88</pre>
|
|
890
874
|
</td>
|
|
891
875
|
<td>
|
|
892
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line
|
|
876
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 86</span>
|
|
893
877
|
|
|
894
878
|
<span class='kw'>def</span> <span class='id identifier rubyid_create_cdp_session'>create_cdp_session</span>
|
|
895
879
|
<span class='ivar'>@session_factory</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
|
|
@@ -914,13 +898,13 @@
|
|
|
914
898
|
<pre class="lines">
|
|
915
899
|
|
|
916
900
|
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
901
|
+
73
|
|
902
|
+
74
|
|
903
|
+
75
|
|
904
|
+
76</pre>
|
|
921
905
|
</td>
|
|
922
906
|
<td>
|
|
923
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line
|
|
907
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 73</span>
|
|
924
908
|
|
|
925
909
|
<span class='kw'>def</span> <span class='id identifier rubyid_handle_closed'>handle_closed</span>
|
|
926
910
|
<span class='ivar'>@closed</span> <span class='op'>=</span> <span class='kw'>true</span>
|
|
@@ -929,60 +913,6 @@
|
|
|
929
913
|
</td>
|
|
930
914
|
</tr>
|
|
931
915
|
</table>
|
|
932
|
-
</div>
|
|
933
|
-
|
|
934
|
-
<div class="method_details ">
|
|
935
|
-
<h3 class="signature " id="handle_initialized-instance_method">
|
|
936
|
-
|
|
937
|
-
#<strong>handle_initialized</strong>(success) ⇒ <tt>Object</tt>
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
</h3><table class="source_code">
|
|
944
|
-
<tr>
|
|
945
|
-
<td>
|
|
946
|
-
<pre class="lines">
|
|
947
|
-
|
|
948
|
-
|
|
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>
|
|
964
|
-
</td>
|
|
965
|
-
<td>
|
|
966
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 50</span>
|
|
967
|
-
|
|
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'>'</span><span class='tstring_content'>Failed to create target for page</span><span class='tstring_end'>'</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'>&.</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'>&.</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'>'</span><span class='tstring_content'>page</span><span class='tstring_end'>'</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'>'</span><span class='tstring_content'>Events.Page.Popup</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_popup_page'>popup_page</span><span class='rparen'>)</span>
|
|
982
|
-
<span class='kw'>end</span></pre>
|
|
983
|
-
</td>
|
|
984
|
-
</tr>
|
|
985
|
-
</table>
|
|
986
916
|
</div>
|
|
987
917
|
|
|
988
918
|
<div class="method_details ">
|
|
@@ -1024,29 +954,59 @@
|
|
|
1024
954
|
<pre class="lines">
|
|
1025
955
|
|
|
1026
956
|
|
|
1027
|
-
142
|
|
1028
|
-
143
|
|
1029
|
-
144
|
|
1030
957
|
145
|
|
1031
958
|
146
|
|
1032
959
|
147
|
|
1033
960
|
148
|
|
1034
|
-
149
|
|
961
|
+
149
|
|
962
|
+
150
|
|
963
|
+
151
|
|
964
|
+
152</pre>
|
|
1035
965
|
</td>
|
|
1036
966
|
<td>
|
|
1037
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line
|
|
967
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 145</span>
|
|
1038
968
|
|
|
1039
969
|
<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
970
|
<span class='ivar'>@target_info</span> <span class='op'>=</span> <span class='id identifier rubyid_target_info'>target_info</span>
|
|
1041
971
|
|
|
1042
|
-
<span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@is_initialized</span> <span class='op'>&&</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'>'</span><span class='tstring_content'>page</span><span class='tstring_end'>'</span></span> <span class='op'>||</span> <span class='op'>!</span><span class='
|
|
972
|
+
<span class='kw'>if</span> <span class='op'>!</span><span class='ivar'>@is_initialized</span> <span class='op'>&&</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'>'</span><span class='tstring_content'>page</span><span class='tstring_end'>'</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
973
|
<span class='ivar'>@is_initialized</span> <span class='op'>=</span> <span class='kw'>true</span>
|
|
1044
|
-
<span class='id identifier
|
|
974
|
+
<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>
|
|
1045
975
|
<span class='kw'>end</span>
|
|
1046
976
|
<span class='kw'>end</span></pre>
|
|
1047
977
|
</td>
|
|
1048
978
|
</tr>
|
|
1049
979
|
</table>
|
|
980
|
+
</div>
|
|
981
|
+
|
|
982
|
+
<div class="method_details ">
|
|
983
|
+
<h3 class="signature " id="ignore_initialize_callback_promise-instance_method">
|
|
984
|
+
|
|
985
|
+
#<strong>ignore_initialize_callback_promise</strong> ⇒ <tt>Object</tt>
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
</h3><table class="source_code">
|
|
992
|
+
<tr>
|
|
993
|
+
<td>
|
|
994
|
+
<pre class="lines">
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
53
|
|
998
|
+
54
|
|
999
|
+
55</pre>
|
|
1000
|
+
</td>
|
|
1001
|
+
<td>
|
|
1002
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 53</span>
|
|
1003
|
+
|
|
1004
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_ignore_initialize_callback_promise'>ignore_initialize_callback_promise</span>
|
|
1005
|
+
<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>
|
|
1006
|
+
<span class='kw'>end</span></pre>
|
|
1007
|
+
</td>
|
|
1008
|
+
</tr>
|
|
1009
|
+
</table>
|
|
1050
1010
|
</div>
|
|
1051
1011
|
|
|
1052
1012
|
<div class="method_details ">
|
|
@@ -1086,12 +1046,12 @@
|
|
|
1086
1046
|
<pre class="lines">
|
|
1087
1047
|
|
|
1088
1048
|
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1049
|
+
82
|
|
1050
|
+
83
|
|
1051
|
+
84</pre>
|
|
1092
1052
|
</td>
|
|
1093
1053
|
<td>
|
|
1094
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line
|
|
1054
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 82</span>
|
|
1095
1055
|
|
|
1096
1056
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialized?'>initialized?</span>
|
|
1097
1057
|
<span class='ivar'>@is_initialized</span>
|
|
@@ -1116,12 +1076,12 @@
|
|
|
1116
1076
|
<pre class="lines">
|
|
1117
1077
|
|
|
1118
1078
|
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1079
|
+
78
|
|
1080
|
+
79
|
|
1081
|
+
80</pre>
|
|
1122
1082
|
</td>
|
|
1123
1083
|
<td>
|
|
1124
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line
|
|
1084
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 78</span>
|
|
1125
1085
|
|
|
1126
1086
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_close'>on_close</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
|
1127
1087
|
<span class='ivar'>@on_close</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
|
@@ -1129,36 +1089,6 @@
|
|
|
1129
1089
|
</td>
|
|
1130
1090
|
</tr>
|
|
1131
1091
|
</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>(&block) ⇒ <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'>&</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
1092
|
</div>
|
|
1163
1093
|
|
|
1164
1094
|
<div class="method_details ">
|
|
@@ -1198,14 +1128,14 @@
|
|
|
1198
1128
|
<pre class="lines">
|
|
1199
1129
|
|
|
1200
1130
|
|
|
1201
|
-
135
|
|
1202
|
-
136
|
|
1203
|
-
137
|
|
1204
1131
|
138
|
|
1205
|
-
139
|
|
1132
|
+
139
|
|
1133
|
+
140
|
|
1134
|
+
141
|
|
1135
|
+
142</pre>
|
|
1206
1136
|
</td>
|
|
1207
1137
|
<td>
|
|
1208
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line
|
|
1138
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 138</span>
|
|
1209
1139
|
|
|
1210
1140
|
<span class='kw'>def</span> <span class='id identifier rubyid_opener'>opener</span>
|
|
1211
1141
|
<span class='id identifier rubyid_opener_id'>opener_id</span> <span class='op'>=</span> <span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_opener_id'>opener_id</span>
|
|
@@ -1232,19 +1162,19 @@
|
|
|
1232
1162
|
<pre class="lines">
|
|
1233
1163
|
|
|
1234
1164
|
|
|
1235
|
-
87
|
|
1236
|
-
88
|
|
1237
|
-
89
|
|
1238
1165
|
90
|
|
1239
1166
|
91
|
|
1240
1167
|
92
|
|
1241
|
-
93
|
|
1168
|
+
93
|
|
1169
|
+
94
|
|
1170
|
+
95
|
|
1171
|
+
96</pre>
|
|
1242
1172
|
</td>
|
|
1243
1173
|
<td>
|
|
1244
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line
|
|
1174
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 90</span>
|
|
1245
1175
|
|
|
1246
1176
|
<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'>'</span><span class='tstring_content'>page</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>background_page</span><span class='tstring_end'>'</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'>&&</span> <span class='ivar'>@page</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1177
|
+
<span class='kw'>if</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>page</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>background_page</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>webview</span><span class='tstring_end'>'</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'>&&</span> <span class='ivar'>@page</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1248
1178
|
<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
1179
|
<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
1180
|
<span class='kw'>end</span>
|
|
@@ -1292,17 +1222,17 @@
|
|
|
1292
1222
|
<pre class="lines">
|
|
1293
1223
|
|
|
1294
1224
|
|
|
1295
|
-
115
|
|
1296
|
-
116
|
|
1297
|
-
117
|
|
1298
1225
|
118
|
|
1299
1226
|
119
|
|
1300
1227
|
120
|
|
1301
1228
|
121
|
|
1302
|
-
122
|
|
1229
|
+
122
|
|
1230
|
+
123
|
|
1231
|
+
124
|
|
1232
|
+
125</pre>
|
|
1303
1233
|
</td>
|
|
1304
1234
|
<td>
|
|
1305
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line
|
|
1235
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 118</span>
|
|
1306
1236
|
|
|
1307
1237
|
<span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
|
|
1308
1238
|
<span class='id identifier rubyid_type'>type</span> <span class='op'>=</span> <span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_type'>type</span>
|
|
@@ -1354,12 +1284,12 @@
|
|
|
1354
1284
|
<pre class="lines">
|
|
1355
1285
|
|
|
1356
1286
|
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1287
|
+
113
|
|
1288
|
+
114
|
|
1289
|
+
115</pre>
|
|
1360
1290
|
</td>
|
|
1361
1291
|
<td>
|
|
1362
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line
|
|
1292
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/target.rb', line 113</span>
|
|
1363
1293
|
|
|
1364
1294
|
<span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
|
|
1365
1295
|
<span class='ivar'>@target_info</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span>
|
|
@@ -1374,7 +1304,7 @@
|
|
|
1374
1304
|
</div>
|
|
1375
1305
|
|
|
1376
1306
|
<div id="footer">
|
|
1377
|
-
Generated on
|
|
1307
|
+
Generated on Tue Jun 9 00:13:39 2020 by
|
|
1378
1308
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1379
1309
|
0.9.24 (ruby-2.6.3).
|
|
1380
1310
|
</div>
|