puppeteer-ruby 0.0.8 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/docs/Puppeteer.html +415 -97
- data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
- data/docs/Puppeteer/Browser.html +261 -153
- data/docs/Puppeteer/BrowserContext.html +2 -2
- 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 +2 -2
- data/docs/Puppeteer/CDPSession/Error.html +1 -1
- data/docs/Puppeteer/ConcurrentRubyUtils.html +14 -6
- data/docs/Puppeteer/Connection.html +66 -62
- data/docs/Puppeteer/Connection/MessageCallback.html +1 -1
- data/docs/Puppeteer/Connection/ProtocolError.html +1 -1
- data/docs/Puppeteer/Connection/RequestDebugPrinter.html +5 -5
- data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +12 -12
- data/docs/Puppeteer/ConsoleMessage.html +1 -1
- data/docs/Puppeteer/ConsoleMessage/Location.html +1 -1
- data/docs/Puppeteer/DOMWorld.html +106 -32
- 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 +525 -207
- data/docs/Puppeteer/ElementHandle/BoundingBox.html +507 -0
- data/docs/Puppeteer/ElementHandle/BoxModel.html +404 -0
- data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +5 -5
- data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +5 -5
- data/docs/Puppeteer/ElementHandle/Point.html +40 -29
- data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +1 -1
- data/docs/Puppeteer/EmulationManager.html +1 -1
- data/docs/Puppeteer/EventCallbackable.html +83 -17
- 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 +450 -292
- data/docs/Puppeteer/FrameManager.html +23 -27
- 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 +36 -31
- 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 +31 -41
- data/docs/Puppeteer/Mouse/Button.html +1 -1
- data/docs/Puppeteer/NetworkManager.html +2 -2
- data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
- data/docs/Puppeteer/Page.html +502 -299
- data/docs/Puppeteer/Page/FileChooserTimeoutError.html +5 -5
- data/docs/Puppeteer/Page/ScreenshotOptions.html +1 -1
- data/docs/Puppeteer/Page/ScriptTag.html +24 -24
- data/docs/Puppeteer/Page/StyleTag.html +19 -19
- data/docs/Puppeteer/Page/TargetCrashedError.html +1 -1
- data/docs/Puppeteer/RemoteObject.html +110 -39
- data/docs/Puppeteer/Target.html +150 -198
- data/docs/Puppeteer/Target/InitializeFailure.html +1 -1
- data/docs/Puppeteer/Target/TargetInfo.html +1 -1
- data/docs/Puppeteer/TimeoutError.html +2 -2
- data/docs/Puppeteer/TimeoutSettings.html +1 -1
- data/docs/Puppeteer/TouchScreen.html +1 -1
- data/docs/Puppeteer/Viewport.html +81 -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 +26 -26
- data/docs/Puppeteer/WebSocket/DriverImpl.html +1 -1
- data/docs/Puppeteer/WebSocket/TransportError.html +124 -0
- data/docs/Puppeteer/WebSocketTransport.html +9 -9
- data/docs/Puppeteer/WebSocktTransportError.html +1 -1
- data/docs/_index.html +28 -21
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +3 -1
- data/docs/index.html +3 -1
- data/docs/method_list.html +659 -515
- data/docs/top-level-namespace.html +1 -1
- data/lib/puppeteer.rb +36 -12
- data/lib/puppeteer/browser.rb +26 -6
- data/lib/puppeteer/concurrent_ruby_utils.rb +6 -2
- data/lib/puppeteer/connection.rb +13 -1
- data/lib/puppeteer/dom_world.rb +11 -12
- data/lib/puppeteer/element_handle.rb +66 -108
- data/lib/puppeteer/element_handle/bounding_box.rb +12 -0
- data/lib/puppeteer/element_handle/box_model.rb +19 -0
- data/lib/puppeteer/element_handle/point.rb +26 -0
- data/lib/puppeteer/errors.rb +1 -3
- data/lib/puppeteer/event_callbackable.rb +11 -0
- data/lib/puppeteer/frame.rb +20 -1
- data/lib/puppeteer/launcher.rb +6 -6
- data/lib/puppeteer/launcher/chrome.rb +10 -8
- data/lib/puppeteer/mouse.rb +3 -8
- data/lib/puppeteer/page.rb +43 -4
- data/lib/puppeteer/remote_object.rb +9 -0
- data/lib/puppeteer/target.rb +25 -25
- data/lib/puppeteer/version.rb +1 -1
- data/lib/puppeteer/viewport.rb +18 -0
- data/lib/puppeteer/web_socket.rb +3 -1
- data/lib/puppeteer/web_socket_transport.rb +8 -8
- data/puppeteer-ruby.png +0 -0
- metadata +9 -4
- data/Dockerfile +0 -6
- data/docker-compose.yml +0 -15
@@ -114,7 +114,7 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on
|
117
|
+
Generated on Wed Jun 24 03:07:59 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>
|
@@ -719,7 +719,7 @@
|
|
719
719
|
</div>
|
720
720
|
|
721
721
|
<div id="footer">
|
722
|
-
Generated on
|
722
|
+
Generated on Wed Jun 24 03:07:59 2020 by
|
723
723
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
724
724
|
0.9.24 (ruby-2.6.3).
|
725
725
|
</div>
|
@@ -104,7 +104,7 @@
|
|
104
104
|
<h2>Overview</h2><div class="docstring">
|
105
105
|
<div class="discussion">
|
106
106
|
|
107
|
-
<p>ref: <a href="https://github.com/puppeteer/puppeteer/blob/master/
|
107
|
+
<p>ref: <a href="https://github.com/puppeteer/puppeteer/blob/master/src/Errors.ts">github.com/puppeteer/puppeteer/blob/master/src/Errors.ts</a></p>
|
108
108
|
|
109
109
|
|
110
110
|
</div>
|
@@ -125,7 +125,7 @@
|
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div id="footer">
|
128
|
-
Generated on
|
128
|
+
Generated on Wed Jun 24 03:07:59 2020 by
|
129
129
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
130
|
0.9.24 (ruby-2.6.3).
|
131
131
|
</div>
|
@@ -486,7 +486,7 @@
|
|
486
486
|
</div>
|
487
487
|
|
488
488
|
<div id="footer">
|
489
|
-
Generated on
|
489
|
+
Generated on Wed Jun 24 03:08:01 2020 by
|
490
490
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
491
491
|
0.9.24 (ruby-2.6.3).
|
492
492
|
</div>
|
@@ -454,7 +454,7 @@
|
|
454
454
|
</div>
|
455
455
|
|
456
456
|
<div id="footer">
|
457
|
-
Generated on
|
457
|
+
Generated on Wed Jun 24 03:08:00 2020 by
|
458
458
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
459
459
|
0.9.24 (ruby-2.6.3).
|
460
460
|
</div>
|
@@ -271,6 +271,28 @@
|
|
271
271
|
|
272
272
|
|
273
273
|
|
274
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
275
|
+
|
276
|
+
</li>
|
277
|
+
|
278
|
+
|
279
|
+
<li class="public ">
|
280
|
+
<span class="summary_signature">
|
281
|
+
|
282
|
+
<a href="#merge-instance_method" title="#merge (instance method)">#<strong>merge</strong>(width: nil, height: nil, device_scale_factor: nil, is_mobile: nil, has_touch: nil, is_landscape: nil) ⇒ Object </a>
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
</span>
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
274
296
|
<span class="summary_desc"><div class='inline'></div></span>
|
275
297
|
|
276
298
|
</li>
|
@@ -688,6 +710,64 @@
|
|
688
710
|
</td>
|
689
711
|
</tr>
|
690
712
|
</table>
|
713
|
+
</div>
|
714
|
+
|
715
|
+
<div class="method_details ">
|
716
|
+
<h3 class="signature " id="merge-instance_method">
|
717
|
+
|
718
|
+
#<strong>merge</strong>(width: nil, height: nil, device_scale_factor: nil, is_mobile: nil, has_touch: nil, is_landscape: nil) ⇒ <tt>Object</tt>
|
719
|
+
|
720
|
+
|
721
|
+
|
722
|
+
|
723
|
+
|
724
|
+
</h3><table class="source_code">
|
725
|
+
<tr>
|
726
|
+
<td>
|
727
|
+
<pre class="lines">
|
728
|
+
|
729
|
+
|
730
|
+
37
|
731
|
+
38
|
732
|
+
39
|
733
|
+
40
|
734
|
+
41
|
735
|
+
42
|
736
|
+
43
|
737
|
+
44
|
738
|
+
45
|
739
|
+
46
|
740
|
+
47
|
741
|
+
48
|
742
|
+
49
|
743
|
+
50
|
744
|
+
51
|
745
|
+
52
|
746
|
+
53</pre>
|
747
|
+
</td>
|
748
|
+
<td>
|
749
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/viewport.rb', line 37</span>
|
750
|
+
|
751
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span>
|
752
|
+
<span class='label'>width:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
753
|
+
<span class='label'>height:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
754
|
+
<span class='label'>device_scale_factor:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
755
|
+
<span class='label'>is_mobile:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
756
|
+
<span class='label'>has_touch:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
757
|
+
<span class='label'>is_landscape:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
758
|
+
|
759
|
+
<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="" title="Puppeteer::Viewport (class)">Viewport</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Puppeteer::Viewport#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
760
|
+
<span class='label'>width:</span> <span class='id identifier rubyid_width'>width</span> <span class='op'>||</span> <span class='ivar'>@width</span><span class='comma'>,</span>
|
761
|
+
<span class='label'>height:</span> <span class='id identifier rubyid_height'>height</span> <span class='op'>||</span> <span class='ivar'>@height</span><span class='comma'>,</span>
|
762
|
+
<span class='label'>device_scale_factor:</span> <span class='id identifier rubyid_device_scale_factor'>device_scale_factor</span> <span class='op'>||</span> <span class='ivar'>@device_scale_factor</span><span class='comma'>,</span>
|
763
|
+
<span class='label'>is_mobile:</span> <span class='id identifier rubyid_is_mobile'>is_mobile</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@is_mobile</span> <span class='op'>:</span> <span class='id identifier rubyid_is_mobile'>is_mobile</span><span class='comma'>,</span>
|
764
|
+
<span class='label'>has_touch:</span> <span class='id identifier rubyid_has_touch'>has_touch</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@has_touch</span> <span class='op'>:</span> <span class='id identifier rubyid_has_touch'>has_touch</span><span class='comma'>,</span>
|
765
|
+
<span class='label'>is_landscape:</span> <span class='id identifier rubyid_is_landscape'>is_landscape</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='ivar'>@is_landscape</span> <span class='op'>:</span> <span class='id identifier rubyid_is_landscape'>is_landscape</span><span class='comma'>,</span>
|
766
|
+
<span class='rparen'>)</span>
|
767
|
+
<span class='kw'>end</span></pre>
|
768
|
+
</td>
|
769
|
+
</tr>
|
770
|
+
</table>
|
691
771
|
</div>
|
692
772
|
|
693
773
|
<div class="method_details ">
|
@@ -747,7 +827,7 @@
|
|
747
827
|
</div>
|
748
828
|
|
749
829
|
<div id="footer">
|
750
|
-
Generated on
|
830
|
+
Generated on Wed Jun 24 03:08:00 2020 by
|
751
831
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
752
832
|
0.9.24 (ruby-2.6.3).
|
753
833
|
</div>
|
@@ -627,7 +627,7 @@
|
|
627
627
|
</div>
|
628
628
|
|
629
629
|
<div id="footer">
|
630
|
-
Generated on
|
630
|
+
Generated on Wed Jun 24 03:08:00 2020 by
|
631
631
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
632
632
|
0.9.24 (ruby-2.6.3).
|
633
633
|
</div>
|
@@ -114,7 +114,7 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on
|
117
|
+
Generated on Wed Jun 24 03:08:00 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>
|
@@ -196,7 +196,7 @@
|
|
196
196
|
</div>
|
197
197
|
|
198
198
|
<div id="footer">
|
199
|
-
Generated on
|
199
|
+
Generated on Wed Jun 24 03:08:00 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>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
|
117
117
|
|
118
118
|
|
119
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="WebSocket/DriverImpl.html" title="Puppeteer::WebSocket::DriverImpl (class)">DriverImpl</a></span>
|
119
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="WebSocket/DriverImpl.html" title="Puppeteer::WebSocket::DriverImpl (class)">DriverImpl</a></span>, <span class='object_link'><a href="WebSocket/TransportError.html" title="Puppeteer::WebSocket::TransportError (class)">TransportError</a></span>
|
120
120
|
|
121
121
|
|
122
122
|
</p>
|
@@ -415,14 +415,14 @@
|
|
415
415
|
<pre class="lines">
|
416
416
|
|
417
417
|
|
418
|
-
76
|
419
|
-
77
|
420
418
|
78
|
421
419
|
79
|
422
|
-
80
|
420
|
+
80
|
421
|
+
81
|
422
|
+
82</pre>
|
423
423
|
</td>
|
424
424
|
<td>
|
425
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/web_socket.rb', line
|
425
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/web_socket.rb', line 78</span>
|
426
426
|
|
427
427
|
<span class='kw'>def</span> <span class='id identifier rubyid_close'>close</span><span class='lparen'>(</span><span class='label'>code:</span> <span class='int'>1000</span><span class='comma'>,</span> <span class='label'>reason:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
428
428
|
<span class='kw'>return</span> <span class='kw'>if</span> <span class='ivar'>@ready_state</span> <span class='op'>>=</span> <span class='const'><span class='object_link'><a href="#STATE_CLOSING-constant" title="Puppeteer::WebSocket::STATE_CLOSING (constant)">STATE_CLOSING</a></span></span>
|
@@ -473,12 +473,12 @@
|
|
473
473
|
<pre class="lines">
|
474
474
|
|
475
475
|
|
476
|
-
|
477
|
-
|
478
|
-
|
476
|
+
89
|
477
|
+
90
|
478
|
+
91</pre>
|
479
479
|
</td>
|
480
480
|
<td>
|
481
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/web_socket.rb', line
|
481
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/web_socket.rb', line 89</span>
|
482
482
|
|
483
483
|
<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>
|
484
484
|
<span class='ivar'>@on_close</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -527,12 +527,12 @@
|
|
527
527
|
<pre class="lines">
|
528
528
|
|
529
529
|
|
530
|
-
|
531
|
-
|
532
|
-
|
530
|
+
94
|
531
|
+
95
|
532
|
+
96</pre>
|
533
533
|
</td>
|
534
534
|
<td>
|
535
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/web_socket.rb', line
|
535
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/web_socket.rb', line 94</span>
|
536
536
|
|
537
537
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_error'>on_error</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
538
538
|
<span class='ivar'>@on_error</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -557,12 +557,12 @@
|
|
557
557
|
<pre class="lines">
|
558
558
|
|
559
559
|
|
560
|
-
|
561
|
-
|
562
|
-
|
560
|
+
98
|
561
|
+
99
|
562
|
+
100</pre>
|
563
563
|
</td>
|
564
564
|
<td>
|
565
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/web_socket.rb', line
|
565
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/web_socket.rb', line 98</span>
|
566
566
|
|
567
567
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_message'>on_message</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
568
568
|
<span class='ivar'>@on_message</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -587,12 +587,12 @@
|
|
587
587
|
<pre class="lines">
|
588
588
|
|
589
589
|
|
590
|
-
|
591
|
-
|
592
|
-
|
590
|
+
84
|
591
|
+
85
|
592
|
+
86</pre>
|
593
593
|
</td>
|
594
594
|
<td>
|
595
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/web_socket.rb', line
|
595
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/web_socket.rb', line 84</span>
|
596
596
|
|
597
597
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_open'>on_open</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
598
598
|
<span class='ivar'>@on_open</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -641,13 +641,13 @@
|
|
641
641
|
<pre class="lines">
|
642
642
|
|
643
643
|
|
644
|
-
71
|
645
|
-
72
|
646
644
|
73
|
647
|
-
74
|
645
|
+
74
|
646
|
+
75
|
647
|
+
76</pre>
|
648
648
|
</td>
|
649
649
|
<td>
|
650
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/web_socket.rb', line
|
650
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/web_socket.rb', line 73</span>
|
651
651
|
|
652
652
|
<span class='kw'>def</span> <span class='id identifier rubyid_send_text'>send_text</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
653
653
|
<span class='kw'>return</span> <span class='kw'>if</span> <span class='ivar'>@ready_state</span> <span class='op'>>=</span> <span class='const'><span class='object_link'><a href="#STATE_CLOSING-constant" title="Puppeteer::WebSocket::STATE_CLOSING (constant)">STATE_CLOSING</a></span></span>
|
@@ -663,7 +663,7 @@
|
|
663
663
|
</div>
|
664
664
|
|
665
665
|
<div id="footer">
|
666
|
-
Generated on
|
666
|
+
Generated on Wed Jun 24 03:08:00 2020 by
|
667
667
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
668
668
|
0.9.24 (ruby-2.6.3).
|
669
669
|
</div>
|
@@ -402,7 +402,7 @@
|
|
402
402
|
</div>
|
403
403
|
|
404
404
|
<div id="footer">
|
405
|
-
Generated on
|
405
|
+
Generated on Wed Jun 24 03:08:00 2020 by
|
406
406
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
407
407
|
0.9.24 (ruby-2.6.3).
|
408
408
|
</div>
|
@@ -0,0 +1,124 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Exception: Puppeteer::WebSocket::TransportError
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.24
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "Puppeteer::WebSocket::TransportError";
|
19
|
+
relpath = '../../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../../_index.html">Index (T)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span> » <span class='title'><span class='object_link'><a href="../WebSocket.html" title="Puppeteer::WebSocket (class)">WebSocket</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">TransportError</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Exception: Puppeteer::WebSocket::TransportError
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName">StandardError</span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next">StandardError</li>
|
78
|
+
|
79
|
+
<li class="next">Puppeteer::WebSocket::TransportError</li>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
<a href="#" class="inheritanceTree">show all</a>
|
83
|
+
|
84
|
+
</dd>
|
85
|
+
</dl>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/puppeteer/web_socket.rb</dd>
|
100
|
+
</dl>
|
101
|
+
|
102
|
+
</div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
</div>
|
115
|
+
|
116
|
+
<div id="footer">
|
117
|
+
Generated on Wed Jun 24 03:08:00 2020 by
|
118
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
|
+
0.9.24 (ruby-2.6.3).
|
120
|
+
</div>
|
121
|
+
|
122
|
+
</div>
|
123
|
+
</body>
|
124
|
+
</html>
|
@@ -421,14 +421,14 @@
|
|
421
421
|
<span class='label'>url:</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span>
|
422
422
|
<span class='label'>max_payload_size:</span> <span class='int'>256</span> <span class='op'>*</span> <span class='int'>1024</span> <span class='op'>*</span> <span class='int'>1024</span><span class='comma'>,</span> <span class='comment'># 256MB
|
423
423
|
</span> <span class='rparen'>)</span>
|
424
|
-
<span class='id identifier
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
<span class='
|
424
|
+
<span class='lparen'>(</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> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_future'><span class='object_link'><a href="ConcurrentRubyUtils.html#future-instance_method" title="Puppeteer::ConcurrentRubyUtils#future (method)">future</a></span></span><span class='op'>|</span>
|
425
|
+
<span class='id identifier rubyid_ws'>ws</span><span class='period'>.</span><span class='id identifier rubyid_on_open'>on_open</span> <span class='kw'>do</span>
|
426
|
+
<span class='id identifier rubyid_future'><span class='object_link'><a href="ConcurrentRubyUtils.html#future-instance_method" title="Puppeteer::ConcurrentRubyUtils#future (method)">future</a></span></span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</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="" title="Puppeteer::WebSocketTransport (class)">WebSocketTransport</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Puppeteer::WebSocketTransport#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_ws'>ws</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
427
|
+
<span class='kw'>end</span>
|
428
|
+
<span class='id identifier rubyid_ws'>ws</span><span class='period'>.</span><span class='id identifier rubyid_on_error'>on_error</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_error_message'>error_message</span><span class='op'>|</span>
|
429
|
+
<span class='id identifier rubyid_future'><span class='object_link'><a href="ConcurrentRubyUtils.html#future-instance_method" title="Puppeteer::ConcurrentRubyUtils#future (method)">future</a></span></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="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="WebSocket.html" title="Puppeteer::WebSocket (class)">WebSocket</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="WebSocket/TransportError.html" title="Puppeteer::WebSocket::TransportError (class)">TransportError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="WebSocket.html#initialize-instance_method" title="Puppeteer::WebSocket#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_error_message'>error_message</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
430
|
+
<span class='kw'>end</span>
|
431
|
+
<span class='kw'>end</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_value!'>value!</span>
|
432
432
|
<span class='kw'>end</span></pre>
|
433
433
|
</td>
|
434
434
|
</tr>
|
@@ -590,7 +590,7 @@
|
|
590
590
|
</div>
|
591
591
|
|
592
592
|
<div id="footer">
|
593
|
-
Generated on
|
593
|
+
Generated on Wed Jun 24 03:08:01 2020 by
|
594
594
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
595
595
|
0.9.24 (ruby-2.6.3).
|
596
596
|
</div>
|