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
@@ -314,7 +314,7 @@
|
|
314
314
|
|
315
315
|
|
316
316
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="EventCallbackable.html" title="Puppeteer::EventCallbackable (module)">EventCallbackable</a></span></h3>
|
317
|
-
<p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
|
317
|
+
<p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#observe_first-instance_method" title="Puppeteer::EventCallbackable#observe_first (method)">#observe_first</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
|
318
318
|
<div id="constructor_details" class="method_details_list">
|
319
319
|
<h2>Constructor Details</h2>
|
320
320
|
|
@@ -799,7 +799,7 @@
|
|
799
799
|
</div>
|
800
800
|
|
801
801
|
<div id="footer">
|
802
|
-
Generated on
|
802
|
+
Generated on Wed Jun 24 03:08:01 2020 by
|
803
803
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
804
804
|
0.9.24 (ruby-2.6.3).
|
805
805
|
</div>
|
@@ -204,7 +204,7 @@
|
|
204
204
|
</div>
|
205
205
|
|
206
206
|
<div id="footer">
|
207
|
-
Generated on
|
207
|
+
Generated on Wed Jun 24 03:08:01 2020 by
|
208
208
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
209
209
|
0.9.24 (ruby-2.6.3).
|
210
210
|
</div>
|
@@ -904,7 +904,7 @@
|
|
904
904
|
</div>
|
905
905
|
|
906
906
|
<div id="footer">
|
907
|
-
Generated on
|
907
|
+
Generated on Wed Jun 24 03:08:01 2020 by
|
908
908
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
909
909
|
0.9.24 (ruby-2.6.3).
|
910
910
|
</div>
|
@@ -467,7 +467,7 @@
|
|
467
467
|
</div>
|
468
468
|
|
469
469
|
<div id="footer">
|
470
|
-
Generated on
|
470
|
+
Generated on Wed Jun 24 03:08:01 2020 by
|
471
471
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
472
472
|
0.9.24 (ruby-2.6.3).
|
473
473
|
</div>
|
@@ -312,7 +312,7 @@
|
|
312
312
|
|
313
313
|
|
314
314
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="EventCallbackable.html" title="Puppeteer::EventCallbackable (module)">EventCallbackable</a></span></h3>
|
315
|
-
<p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
|
315
|
+
<p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#observe_first-instance_method" title="Puppeteer::EventCallbackable#observe_first (method)">#observe_first</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
|
316
316
|
|
317
317
|
|
318
318
|
|
@@ -803,7 +803,7 @@
|
|
803
803
|
</div>
|
804
804
|
|
805
805
|
<div id="footer">
|
806
|
-
Generated on
|
806
|
+
Generated on Wed Jun 24 03:08:00 2020 by
|
807
807
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
808
808
|
0.9.24 (ruby-2.6.3).
|
809
809
|
</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>
|
@@ -202,7 +202,7 @@
|
|
202
202
|
<li class="public ">
|
203
203
|
<span class="summary_signature">
|
204
204
|
|
205
|
-
<a href="#resolvable_future-instance_method" title="#resolvable_future (instance method)">#<strong>resolvable_future</strong> ⇒ Object </a>
|
205
|
+
<a href="#resolvable_future-instance_method" title="#resolvable_future (instance method)">#<strong>resolvable_future</strong>(&block) ⇒ Object </a>
|
206
206
|
|
207
207
|
|
208
208
|
|
@@ -388,7 +388,7 @@
|
|
388
388
|
<div class="method_details ">
|
389
389
|
<h3 class="signature " id="resolvable_future-instance_method">
|
390
390
|
|
391
|
-
#<strong>resolvable_future</strong> ⇒ <tt>Object</tt>
|
391
|
+
#<strong>resolvable_future</strong>(&block) ⇒ <tt>Object</tt>
|
392
392
|
|
393
393
|
|
394
394
|
|
@@ -402,13 +402,21 @@
|
|
402
402
|
|
403
403
|
32
|
404
404
|
33
|
405
|
-
34
|
405
|
+
34
|
406
|
+
35
|
407
|
+
36
|
408
|
+
37
|
409
|
+
38</pre>
|
406
410
|
</td>
|
407
411
|
<td>
|
408
412
|
<pre class="code"><span class="info file"># File 'lib/puppeteer/concurrent_ruby_utils.rb', line 32</span>
|
409
413
|
|
410
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_resolvable_future'>resolvable_future</span>
|
411
|
-
<span class='const'>Concurrent</span><span class='op'>::</span><span class='const'>Promises</span><span class='period'>.</span><span class='id identifier rubyid_resolvable_future'>resolvable_future</span>
|
414
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_resolvable_future'>resolvable_future</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
415
|
+
<span class='id identifier rubyid_future'><span class='object_link'><a href="#future-instance_method" title="Puppeteer::ConcurrentRubyUtils#future (method)">future</a></span></span> <span class='op'>=</span> <span class='const'>Concurrent</span><span class='op'>::</span><span class='const'>Promises</span><span class='period'>.</span><span class='id identifier rubyid_resolvable_future'>resolvable_future</span>
|
416
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_block'>block</span>
|
417
|
+
<span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_future'><span class='object_link'><a href="#future-instance_method" title="Puppeteer::ConcurrentRubyUtils#future (method)">future</a></span></span><span class='rparen'>)</span>
|
418
|
+
<span class='kw'>end</span>
|
419
|
+
<span class='id identifier rubyid_future'><span class='object_link'><a href="#future-instance_method" title="Puppeteer::ConcurrentRubyUtils#future (method)">future</a></span></span>
|
412
420
|
<span class='kw'>end</span></pre>
|
413
421
|
</td>
|
414
422
|
</tr>
|
@@ -420,7 +428,7 @@
|
|
420
428
|
</div>
|
421
429
|
|
422
430
|
<div id="footer">
|
423
|
-
Generated on
|
431
|
+
Generated on Wed Jun 24 03:07:58 2020 by
|
424
432
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
425
433
|
0.9.24 (ruby-2.6.3).
|
426
434
|
</div>
|
@@ -397,7 +397,7 @@
|
|
397
397
|
|
398
398
|
|
399
399
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="EventCallbackable.html" title="Puppeteer::EventCallbackable (module)">EventCallbackable</a></span></h3>
|
400
|
-
<p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
|
400
|
+
<p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#observe_first-instance_method" title="Puppeteer::EventCallbackable#observe_first (method)">#observe_first</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
|
401
401
|
|
402
402
|
|
403
403
|
|
@@ -454,7 +454,9 @@
|
|
454
454
|
52
|
455
455
|
53
|
456
456
|
54
|
457
|
-
55
|
457
|
+
55
|
458
|
+
56
|
459
|
+
57</pre>
|
458
460
|
</td>
|
459
461
|
<td>
|
460
462
|
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line 39</span>
|
@@ -467,7 +469,9 @@
|
|
467
469
|
|
468
470
|
<span class='ivar'>@transport</span> <span class='op'>=</span> <span class='id identifier rubyid_transport'>transport</span>
|
469
471
|
<span class='ivar'>@transport</span><span class='period'>.</span><span class='id identifier rubyid_on_message'>on_message</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_data'>data</span><span class='op'>|</span>
|
470
|
-
<span class='id identifier
|
472
|
+
<span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
473
|
+
<span class='id identifier rubyid_sleep_before_handling_message'>sleep_before_handling_message</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
474
|
+
<span class='id identifier rubyid_async_handle_message'>async_handle_message</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
471
475
|
<span class='kw'>end</span>
|
472
476
|
<span class='ivar'>@transport</span><span class='period'>.</span><span class='id identifier rubyid_on_close'>on_close</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_reason'>reason</span><span class='comma'>,</span> <span class='id identifier rubyid_code'>code</span><span class='op'>|</span>
|
473
477
|
<span class='id identifier rubyid_handle_close'>handle_close</span><span class='lparen'>(</span><span class='id identifier rubyid_reason'>reason</span><span class='comma'>,</span> <span class='id identifier rubyid_code'>code</span><span class='rparen'>)</span>
|
@@ -503,12 +507,12 @@
|
|
503
507
|
<pre class="lines">
|
504
508
|
|
505
509
|
|
506
|
-
|
507
|
-
|
508
|
-
|
510
|
+
69
|
511
|
+
70
|
512
|
+
71</pre>
|
509
513
|
</td>
|
510
514
|
<td>
|
511
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line
|
515
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line 69</span>
|
512
516
|
|
513
517
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_from_session'>from_session</span><span class='lparen'>(</span><span class='id identifier rubyid_session'>session</span><span class='rparen'>)</span>
|
514
518
|
<span class='id identifier rubyid_session'>session</span><span class='period'>.</span><span class='id identifier rubyid_connection'>connection</span>
|
@@ -539,15 +543,15 @@
|
|
539
543
|
<pre class="lines">
|
540
544
|
|
541
545
|
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
546
|
+
89
|
547
|
+
90
|
548
|
+
91
|
549
|
+
92
|
550
|
+
93
|
551
|
+
94</pre>
|
548
552
|
</td>
|
549
553
|
<td>
|
550
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line
|
554
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line 89</span>
|
551
555
|
|
552
556
|
<span class='kw'>def</span> <span class='id identifier rubyid_async_send_message'>async_send_message</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
553
557
|
<span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='id identifier rubyid_raw_send'>raw_send</span><span class='lparen'>(</span><span class='label'>message:</span> <span class='lbrace'>{</span> <span class='label'>method:</span> <span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='label'>params:</span> <span class='id identifier rubyid_params'>params</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
|
@@ -612,24 +616,24 @@
|
|
612
616
|
<pre class="lines">
|
613
617
|
|
614
618
|
|
615
|
-
239
|
616
|
-
240
|
617
|
-
241
|
618
|
-
242
|
619
|
-
243
|
620
|
-
244
|
621
|
-
245
|
622
|
-
246
|
623
|
-
247
|
624
|
-
248
|
625
|
-
249
|
626
|
-
250
|
627
619
|
251
|
628
620
|
252
|
629
|
-
253
|
621
|
+
253
|
622
|
+
254
|
623
|
+
255
|
624
|
+
256
|
625
|
+
257
|
626
|
+
258
|
627
|
+
259
|
628
|
+
260
|
629
|
+
261
|
630
|
+
262
|
631
|
+
263
|
632
|
+
264
|
633
|
+
265</pre>
|
630
634
|
</td>
|
631
635
|
<td>
|
632
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line
|
636
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line 251</span>
|
633
637
|
|
634
638
|
<span class='kw'>def</span> <span class='id identifier rubyid_create_session'>create_session</span><span class='lparen'>(</span><span class='id identifier rubyid_target_info'>target_info</span><span class='rparen'>)</span>
|
635
639
|
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_send_message'>send_message</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Target.attachToTarget</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>targetId:</span> <span class='id identifier rubyid_target_info'>target_info</span><span class='period'>.</span><span class='id identifier rubyid_target_id'>target_id</span><span class='comma'>,</span> <span class='label'>flatten:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
@@ -666,13 +670,13 @@
|
|
666
670
|
<pre class="lines">
|
667
671
|
|
668
672
|
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
+
244
|
674
|
+
245
|
675
|
+
246
|
676
|
+
247</pre>
|
673
677
|
</td>
|
674
678
|
<td>
|
675
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line
|
679
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line 244</span>
|
676
680
|
|
677
681
|
<span class='kw'>def</span> <span class='id identifier rubyid_dispose'>dispose</span>
|
678
682
|
<span class='id identifier rubyid_handle_close'>handle_close</span>
|
@@ -698,12 +702,12 @@
|
|
698
702
|
<pre class="lines">
|
699
703
|
|
700
704
|
|
701
|
-
|
702
|
-
|
703
|
-
|
705
|
+
236
|
706
|
+
237
|
707
|
+
238</pre>
|
704
708
|
</td>
|
705
709
|
<td>
|
706
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line
|
710
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line 236</span>
|
707
711
|
|
708
712
|
<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>
|
709
713
|
<span class='ivar'>@on_close</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -728,12 +732,12 @@
|
|
728
732
|
<pre class="lines">
|
729
733
|
|
730
734
|
|
731
|
-
|
732
|
-
|
733
|
-
|
735
|
+
240
|
736
|
+
241
|
737
|
+
242</pre>
|
734
738
|
</td>
|
735
739
|
<td>
|
736
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line
|
740
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line 240</span>
|
737
741
|
|
738
742
|
<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>
|
739
743
|
<span class='ivar'>@on_message</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -758,16 +762,16 @@
|
|
758
762
|
<pre class="lines">
|
759
763
|
|
760
764
|
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
765
|
+
100
|
766
|
+
101
|
767
|
+
102
|
768
|
+
103
|
769
|
+
104
|
770
|
+
105
|
771
|
+
106</pre>
|
768
772
|
</td>
|
769
773
|
<td>
|
770
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line
|
774
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line 100</span>
|
771
775
|
|
772
776
|
<span class='kw'>def</span> <span class='id identifier rubyid_raw_send'>raw_send</span><span class='lparen'>(</span><span class='label'>message:</span><span class='rparen'>)</span>
|
773
777
|
<span class='id identifier rubyid_id'>id</span> <span class='op'>=</span> <span class='id identifier rubyid_generate_id'>generate_id</span>
|
@@ -833,12 +837,12 @@
|
|
833
837
|
<pre class="lines">
|
834
838
|
|
835
839
|
|
836
|
-
|
837
|
-
|
838
|
-
|
840
|
+
85
|
841
|
+
86
|
842
|
+
87</pre>
|
839
843
|
</td>
|
840
844
|
<td>
|
841
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line
|
845
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line 85</span>
|
842
846
|
|
843
847
|
<span class='kw'>def</span> <span class='id identifier rubyid_send_message'>send_message</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
844
848
|
<span class='id identifier rubyid_await'><span class='object_link'><a href="ConcurrentRubyUtils.html#await-instance_method" title="Puppeteer::ConcurrentRubyUtils#await (method)">await</a></span></span> <span class='id identifier rubyid_async_send_message'>async_send_message</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
@@ -900,12 +904,12 @@
|
|
900
904
|
<pre class="lines">
|
901
905
|
|
902
906
|
|
903
|
-
|
904
|
-
|
905
|
-
|
907
|
+
75
|
908
|
+
76
|
909
|
+
77</pre>
|
906
910
|
</td>
|
907
911
|
<td>
|
908
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line
|
912
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line 75</span>
|
909
913
|
|
910
914
|
<span class='kw'>def</span> <span class='id identifier rubyid_session'>session</span><span class='lparen'>(</span><span class='id identifier rubyid_session_id'>session_id</span><span class='rparen'>)</span>
|
911
915
|
<span class='ivar'>@sessions</span><span class='lbracket'>[</span><span class='id identifier rubyid_session_id'>session_id</span><span class='rbracket'>]</span>
|
@@ -930,12 +934,12 @@
|
|
930
934
|
<pre class="lines">
|
931
935
|
|
932
936
|
|
933
|
-
|
934
|
-
|
935
|
-
|
937
|
+
79
|
938
|
+
80
|
939
|
+
81</pre>
|
936
940
|
</td>
|
937
941
|
<td>
|
938
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line
|
942
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line 79</span>
|
939
943
|
|
940
944
|
<span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
|
941
945
|
<span class='ivar'>@url</span>
|
@@ -950,7 +954,7 @@
|
|
950
954
|
</div>
|
951
955
|
|
952
956
|
<div id="footer">
|
953
|
-
Generated on
|
957
|
+
Generated on Wed Jun 24 03:08:00 2020 by
|
954
958
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
955
959
|
0.9.24 (ruby-2.6.3).
|
956
960
|
</div>
|
@@ -424,7 +424,7 @@
|
|
424
424
|
</div>
|
425
425
|
|
426
426
|
<div id="footer">
|
427
|
-
Generated on
|
427
|
+
Generated on Wed Jun 24 03:08:00 2020 by
|
428
428
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
429
429
|
0.9.24 (ruby-2.6.3).
|
430
430
|
</div>
|
@@ -206,7 +206,7 @@
|
|
206
206
|
</div>
|
207
207
|
|
208
208
|
<div id="footer">
|
209
|
-
Generated on
|
209
|
+
Generated on Wed Jun 24 03:08:00 2020 by
|
210
210
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
211
211
|
0.9.24 (ruby-2.6.3).
|
212
212
|
</div>
|
@@ -187,12 +187,12 @@
|
|
187
187
|
<pre class="lines">
|
188
188
|
|
189
189
|
|
190
|
-
|
191
|
-
|
192
|
-
|
190
|
+
112
|
191
|
+
113
|
192
|
+
114</pre>
|
193
193
|
</td>
|
194
194
|
<td>
|
195
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line
|
195
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line 112</span>
|
196
196
|
|
197
197
|
<span class='kw'>def</span> <span class='id identifier rubyid_handle_payload'>handle_payload</span><span class='lparen'>(</span><span class='id identifier rubyid_payload'>payload</span><span class='rparen'>)</span>
|
198
198
|
<span class='id identifier rubyid_debug_puts'>debug_puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>SEND >> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_decorate'>decorate</span><span class='lparen'>(</span><span class='id identifier rubyid_payload'>payload</span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
@@ -207,7 +207,7 @@
|
|
207
207
|
</div>
|
208
208
|
|
209
209
|
<div id="footer">
|
210
|
-
Generated on
|
210
|
+
Generated on Wed Jun 24 03:08:00 2020 by
|
211
211
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
212
212
|
0.9.24 (ruby-2.6.3).
|
213
213
|
</div>
|
@@ -200,19 +200,19 @@
|
|
200
200
|
<pre class="lines">
|
201
201
|
|
202
202
|
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
203
|
+
134
|
204
|
+
135
|
205
|
+
136
|
206
|
+
137
|
207
|
+
138
|
208
|
+
139
|
209
|
+
140
|
210
|
+
141
|
211
|
+
142
|
212
|
+
143</pre>
|
213
213
|
</td>
|
214
214
|
<td>
|
215
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line
|
215
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/connection.rb', line 134</span>
|
216
216
|
|
217
217
|
<span class='kw'>def</span> <span class='id identifier rubyid_handle_message'>handle_message</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='rparen'>)</span>
|
218
218
|
<span class='kw'>if</span> <span class='id identifier rubyid_skip_debug_print?'>skip_debug_print?</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>method</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
@@ -234,7 +234,7 @@
|
|
234
234
|
</div>
|
235
235
|
|
236
236
|
<div id="footer">
|
237
|
-
Generated on
|
237
|
+
Generated on Wed Jun 24 03:08:00 2020 by
|
238
238
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
239
239
|
0.9.24 (ruby-2.6.3).
|
240
240
|
</div>
|