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
data/docs/Puppeteer/Browser.html
CHANGED
@@ -105,6 +105,27 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
|
108
|
+
|
109
|
+
<h2>
|
110
|
+
Constant Summary
|
111
|
+
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
112
|
+
</h2>
|
113
|
+
|
114
|
+
<dl class="constants">
|
115
|
+
|
116
|
+
<dt id="EVENT_MAPPINGS-constant" class="">EVENT_MAPPINGS =
|
117
|
+
|
118
|
+
</dt>
|
119
|
+
<dd><pre class="code"><span class='lbrace'>{</span>
|
120
|
+
<span class='label'>disconnected:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Browser.Disconnected</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
121
|
+
<span class='label'>targetcreated:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Browser.TargetCreated</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
122
|
+
<span class='label'>targetchanged:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Browser.TargetChanged</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
123
|
+
<span class='label'>targetdestroyed:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Browser.TargetDestroyed</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
124
|
+
<span class='rbrace'>}</span></pre></dd>
|
125
|
+
|
126
|
+
</dl>
|
127
|
+
|
128
|
+
|
108
129
|
|
109
130
|
|
110
131
|
|
@@ -435,6 +456,28 @@
|
|
435
456
|
|
436
457
|
|
437
458
|
|
459
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
460
|
+
|
461
|
+
</li>
|
462
|
+
|
463
|
+
|
464
|
+
<li class="public ">
|
465
|
+
<span class="summary_signature">
|
466
|
+
|
467
|
+
<a href="#on-instance_method" title="#on (instance method)">#<strong>on</strong>(event_name, &block) ⇒ Object </a>
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
</span>
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
438
481
|
<span class="summary_desc"><div class='inline'></div></span>
|
439
482
|
|
440
483
|
</li>
|
@@ -640,7 +683,7 @@
|
|
640
683
|
|
641
684
|
|
642
685
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="EventCallbackable.html" title="Puppeteer::EventCallbackable (module)">EventCallbackable</a></span></h3>
|
643
|
-
<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>
|
686
|
+
<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>
|
644
687
|
|
645
688
|
|
646
689
|
|
@@ -790,7 +833,7 @@
|
|
790
833
|
<span class='ivar'>@contexts</span><span class='lbracket'>[</span><span class='id identifier rubyid_context_id'>context_id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="BrowserContext.html" title="Puppeteer::BrowserContext (class)">BrowserContext</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="BrowserContext.html#initialize-instance_method" title="Puppeteer::BrowserContext#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='ivar'>@connection</span><span class='comma'>,</span> <span class='kw'>self</span><span class='period'>.</span> <span class='id identifier rubyid_context_id'>context_id</span><span class='rparen'>)</span>
|
791
834
|
<span class='kw'>end</span>
|
792
835
|
<span class='ivar'>@targets</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
793
|
-
<span class='ivar'>@connection</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.
|
836
|
+
<span class='ivar'>@connection</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Connection.Disconnected</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span>
|
794
837
|
<span class='id identifier rubyid_emit_event'>emit_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Browser.Disconnected</span><span class='tstring_end'>'</span></span>
|
795
838
|
<span class='kw'>end</span>
|
796
839
|
<span class='ivar'>@connection</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Target.targetCreated</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_method'>method</span><span class='lparen'>(</span><span class='symbol'>:handle_target_created</span><span class='rparen'>)</span>
|
@@ -957,12 +1000,12 @@
|
|
957
1000
|
<pre class="lines">
|
958
1001
|
|
959
1002
|
|
960
|
-
|
961
|
-
|
962
|
-
|
1003
|
+
85
|
1004
|
+
86
|
1005
|
+
87</pre>
|
963
1006
|
</td>
|
964
1007
|
<td>
|
965
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1008
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 85</span>
|
966
1009
|
|
967
1010
|
<span class='kw'>def</span> <span class='id identifier rubyid_browser_contexts'>browser_contexts</span>
|
968
1011
|
<span class='lbracket'>[</span><span class='ivar'>@default_context</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='ivar'>@contexts</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span>
|
@@ -987,13 +1030,13 @@
|
|
987
1030
|
<pre class="lines">
|
988
1031
|
|
989
1032
|
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
1033
|
+
264
|
1034
|
+
265
|
1035
|
+
266
|
1036
|
+
267</pre>
|
994
1037
|
</td>
|
995
1038
|
<td>
|
996
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1039
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 264</span>
|
997
1040
|
|
998
1041
|
<span class='kw'>def</span> <span class='id identifier rubyid_close'>close</span>
|
999
1042
|
<span class='ivar'>@close_callback</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
|
@@ -1041,12 +1084,12 @@
|
|
1041
1084
|
<pre class="lines">
|
1042
1085
|
|
1043
1086
|
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1087
|
+
273
|
1088
|
+
274
|
1089
|
+
275</pre>
|
1047
1090
|
</td>
|
1048
1091
|
<td>
|
1049
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1092
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 273</span>
|
1050
1093
|
|
1051
1094
|
<span class='kw'>def</span> <span class='id identifier rubyid_connected?'>connected?</span>
|
1052
1095
|
<span class='op'>!</span><span class='ivar'>@connection</span><span class='period'>.</span><span class='id identifier rubyid_closed?'>closed?</span>
|
@@ -1093,14 +1136,14 @@
|
|
1093
1136
|
<pre class="lines">
|
1094
1137
|
|
1095
1138
|
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1139
|
+
79
|
1140
|
+
80
|
1141
|
+
81
|
1142
|
+
82
|
1143
|
+
83</pre>
|
1101
1144
|
</td>
|
1102
1145
|
<td>
|
1103
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1146
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 79</span>
|
1104
1147
|
|
1105
1148
|
<span class='kw'>def</span> <span class='id identifier rubyid_create_incognito_browser_context'>create_incognito_browser_context</span>
|
1106
1149
|
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='ivar'>@connection</span><span class='period'>.</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.createBrowserContext</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
@@ -1164,20 +1207,20 @@
|
|
1164
1207
|
<pre class="lines">
|
1165
1208
|
|
1166
1209
|
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1177
|
-
|
1210
|
+
187
|
1211
|
+
188
|
1212
|
+
189
|
1213
|
+
190
|
1214
|
+
191
|
1215
|
+
192
|
1216
|
+
193
|
1217
|
+
194
|
1218
|
+
195
|
1219
|
+
196
|
1220
|
+
197</pre>
|
1178
1221
|
</td>
|
1179
1222
|
<td>
|
1180
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1223
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 187</span>
|
1181
1224
|
|
1182
1225
|
<span class='kw'>def</span> <span class='id identifier rubyid_create_page_in_context'>create_page_in_context</span><span class='lparen'>(</span><span class='id identifier rubyid_context_id'>context_id</span><span class='rparen'>)</span>
|
1183
1226
|
<span class='id identifier rubyid_create_target_params'>create_target_params</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='label'>url:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>about:blank</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
|
@@ -1232,12 +1275,12 @@
|
|
1232
1275
|
<pre class="lines">
|
1233
1276
|
|
1234
1277
|
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1278
|
+
90
|
1279
|
+
91
|
1280
|
+
92</pre>
|
1238
1281
|
</td>
|
1239
1282
|
<td>
|
1240
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1283
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 90</span>
|
1241
1284
|
|
1242
1285
|
<span class='kw'>def</span> <span class='id identifier rubyid_default_browser_context'>default_browser_context</span>
|
1243
1286
|
<span class='ivar'>@default_context</span>
|
@@ -1262,12 +1305,12 @@
|
|
1262
1305
|
<pre class="lines">
|
1263
1306
|
|
1264
1307
|
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1308
|
+
269
|
1309
|
+
270
|
1310
|
+
271</pre>
|
1268
1311
|
</td>
|
1269
1312
|
<td>
|
1270
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1313
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 269</span>
|
1271
1314
|
|
1272
1315
|
<span class='kw'>def</span> <span class='id identifier rubyid_disconnect'>disconnect</span>
|
1273
1316
|
<span class='ivar'>@connection</span><span class='period'>.</span><span class='id identifier rubyid_dispose'>dispose</span>
|
@@ -1316,13 +1359,13 @@
|
|
1316
1359
|
<pre class="lines">
|
1317
1360
|
|
1318
1361
|
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1362
|
+
95
|
1363
|
+
96
|
1364
|
+
97
|
1365
|
+
98</pre>
|
1323
1366
|
</td>
|
1324
1367
|
<td>
|
1325
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1368
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 95</span>
|
1326
1369
|
|
1327
1370
|
<span class='kw'>def</span> <span class='id identifier rubyid_dispose_context'>dispose_context</span><span class='lparen'>(</span><span class='id identifier rubyid_context_id'>context_id</span><span class='rparen'>)</span>
|
1328
1371
|
<span class='ivar'>@connection</span><span class='period'>.</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.disposeBrowserContext</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>browserContextId:</span> <span class='id identifier rubyid_context_id'>context_id</span><span class='rparen'>)</span>
|
@@ -1372,22 +1415,6 @@
|
|
1372
1415
|
<pre class="lines">
|
1373
1416
|
|
1374
1417
|
|
1375
|
-
85
|
1376
|
-
86
|
1377
|
-
87
|
1378
|
-
88
|
1379
|
-
89
|
1380
|
-
90
|
1381
|
-
91
|
1382
|
-
92
|
1383
|
-
93
|
1384
|
-
94
|
1385
|
-
95
|
1386
|
-
96
|
1387
|
-
97
|
1388
|
-
98
|
1389
|
-
99
|
1390
|
-
100
|
1391
1418
|
101
|
1392
1419
|
102
|
1393
1420
|
103
|
@@ -1401,10 +1428,25 @@
|
|
1401
1428
|
111
|
1402
1429
|
112
|
1403
1430
|
113
|
1404
|
-
114
|
1431
|
+
114
|
1432
|
+
115
|
1433
|
+
116
|
1434
|
+
117
|
1435
|
+
118
|
1436
|
+
119
|
1437
|
+
120
|
1438
|
+
121
|
1439
|
+
122
|
1440
|
+
123
|
1441
|
+
124
|
1442
|
+
125
|
1443
|
+
126
|
1444
|
+
127
|
1445
|
+
128
|
1446
|
+
129</pre>
|
1405
1447
|
</td>
|
1406
1448
|
<td>
|
1407
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1449
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 101</span>
|
1408
1450
|
|
1409
1451
|
<span class='kw'>def</span> <span class='id identifier rubyid_handle_target_created'>handle_target_created</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span>
|
1410
1452
|
<span class='id identifier rubyid_target_info'>target_info</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="Target.html" title="Puppeteer::Target (class)">Target</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Target/TargetInfo.html" title="Puppeteer::Target::TargetInfo (class)">TargetInfo</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Target/TargetInfo.html#initialize-instance_method" title="Puppeteer::Target::TargetInfo#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>targetInfo</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
@@ -1426,8 +1468,7 @@
|
|
1426
1468
|
<span class='rparen'>)</span>
|
1427
1469
|
<span class='comment'># assert(!this._targets.has(event.targetInfo.targetId), 'Target should not exist before targetCreated');
|
1428
1470
|
</span> <span class='ivar'>@targets</span><span class='lbracket'>[</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='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_target'>target</span>
|
1429
|
-
|
1430
|
-
<span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_on_initialize_succeeded'>on_initialize_succeeded</span> <span class='kw'>do</span>
|
1471
|
+
<span class='kw'>if</span> <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_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_initialized_promise'>initialized_promise</span>
|
1431
1472
|
<span class='id identifier rubyid_emit_event'>emit_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Browser.TargetCreated</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_target'>target</span>
|
1432
1473
|
<span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier rubyid_emit_event'>emit_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.BrowserContext.TargetCreated</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_target'>target</span>
|
1433
1474
|
<span class='kw'>end</span>
|
@@ -1480,28 +1521,28 @@
|
|
1480
1521
|
<pre class="lines">
|
1481
1522
|
|
1482
1523
|
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1524
|
+
133
|
1525
|
+
134
|
1526
|
+
135
|
1527
|
+
136
|
1528
|
+
137
|
1529
|
+
138
|
1530
|
+
139
|
1531
|
+
140
|
1532
|
+
141
|
1533
|
+
142
|
1534
|
+
143</pre>
|
1494
1535
|
</td>
|
1495
1536
|
<td>
|
1496
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1537
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 133</span>
|
1497
1538
|
|
1498
1539
|
<span class='kw'>def</span> <span class='id identifier rubyid_handle_target_destroyed'>handle_target_destroyed</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span>
|
1499
1540
|
<span class='id identifier rubyid_target_id'>target_id</span> <span class='op'>=</span> <span class='id identifier rubyid_event'>event</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>targetId</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1500
1541
|
<span class='id identifier rubyid_target'>target</span> <span class='op'>=</span> <span class='ivar'>@targets</span><span class='lbracket'>[</span><span class='id identifier rubyid_target_id'>target_id</span><span class='rbracket'>]</span>
|
1501
|
-
<span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier
|
1542
|
+
<span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_ignore_initialize_callback_promise'>ignore_initialize_callback_promise</span>
|
1502
1543
|
<span class='ivar'>@targets</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_target_id'>target_id</span><span class='rparen'>)</span>
|
1503
|
-
<span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier
|
1504
|
-
<span class='id identifier
|
1544
|
+
<span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_closed_callback'>closed_callback</span>
|
1545
|
+
<span class='kw'>if</span> <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_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_initialized_promise'>initialized_promise</span>
|
1505
1546
|
<span class='id identifier rubyid_emit_event'>emit_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Browser.TargetDestroyed</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_target'>target</span>
|
1506
1547
|
<span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_browser_context'>browser_context</span><span class='period'>.</span><span class='id identifier rubyid_emit_event'>emit_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.BrowserContext.TargetDestroyed</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_target'>target</span>
|
1507
1548
|
<span class='kw'>end</span>
|
@@ -1550,21 +1591,6 @@
|
|
1550
1591
|
<pre class="lines">
|
1551
1592
|
|
1552
1593
|
|
1553
|
-
131
|
1554
|
-
132
|
1555
|
-
133
|
1556
|
-
134
|
1557
|
-
135
|
1558
|
-
136
|
1559
|
-
137
|
1560
|
-
138
|
1561
|
-
139
|
1562
|
-
140
|
1563
|
-
141
|
1564
|
-
142
|
1565
|
-
143
|
1566
|
-
144
|
1567
|
-
145
|
1568
1594
|
146
|
1569
1595
|
147
|
1570
1596
|
148
|
@@ -1574,10 +1600,25 @@
|
|
1574
1600
|
152
|
1575
1601
|
153
|
1576
1602
|
154
|
1577
|
-
155
|
1603
|
+
155
|
1604
|
+
156
|
1605
|
+
157
|
1606
|
+
158
|
1607
|
+
159
|
1608
|
+
160
|
1609
|
+
161
|
1610
|
+
162
|
1611
|
+
163
|
1612
|
+
164
|
1613
|
+
165
|
1614
|
+
166
|
1615
|
+
167
|
1616
|
+
168
|
1617
|
+
169
|
1618
|
+
170</pre>
|
1578
1619
|
</td>
|
1579
1620
|
<td>
|
1580
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1621
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 146</span>
|
1581
1622
|
|
1582
1623
|
<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_event'>event</span><span class='rparen'>)</span>
|
1583
1624
|
<span class='id identifier rubyid_target_info'>target_info</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="Target.html" title="Puppeteer::Target (class)">Target</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Target/TargetInfo.html" title="Puppeteer::Target::TargetInfo (class)">TargetInfo</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Target/TargetInfo.html#initialize-instance_method" title="Puppeteer::Target::TargetInfo#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>targetInfo</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
@@ -1624,12 +1665,12 @@
|
|
1624
1665
|
<pre class="lines">
|
1625
1666
|
|
1626
1667
|
|
1627
|
-
|
1628
|
-
|
1629
|
-
|
1668
|
+
181
|
1669
|
+
182
|
1670
|
+
183</pre>
|
1630
1671
|
</td>
|
1631
1672
|
<td>
|
1632
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1673
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 181</span>
|
1633
1674
|
|
1634
1675
|
<span class='kw'>def</span> <span class='id identifier rubyid_new_page'>new_page</span>
|
1635
1676
|
<span class='ivar'>@default_context</span><span class='period'>.</span><span class='id identifier rubyid_new_page'>new_page</span>
|
@@ -1637,6 +1678,73 @@
|
|
1637
1678
|
</td>
|
1638
1679
|
</tr>
|
1639
1680
|
</table>
|
1681
|
+
</div>
|
1682
|
+
|
1683
|
+
<div class="method_details ">
|
1684
|
+
<h3 class="signature " id="on-instance_method">
|
1685
|
+
|
1686
|
+
#<strong>on</strong>(event_name, &block) ⇒ <tt>Object</tt>
|
1687
|
+
|
1688
|
+
|
1689
|
+
|
1690
|
+
|
1691
|
+
|
1692
|
+
</h3><div class="docstring">
|
1693
|
+
<div class="discussion">
|
1694
|
+
|
1695
|
+
|
1696
|
+
</div>
|
1697
|
+
</div>
|
1698
|
+
<div class="tags">
|
1699
|
+
<p class="tag_title">Parameters:</p>
|
1700
|
+
<ul class="param">
|
1701
|
+
|
1702
|
+
<li>
|
1703
|
+
|
1704
|
+
<span class='name'>event_name</span>
|
1705
|
+
|
1706
|
+
|
1707
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
1708
|
+
|
1709
|
+
|
1710
|
+
|
1711
|
+
—
|
1712
|
+
<div class='inline'>
|
1713
|
+
<p>either of :disconnected, :targetcreated, :targetchanged, :targetdestroyed</p>
|
1714
|
+
</div>
|
1715
|
+
|
1716
|
+
</li>
|
1717
|
+
|
1718
|
+
</ul>
|
1719
|
+
|
1720
|
+
|
1721
|
+
</div><table class="source_code">
|
1722
|
+
<tr>
|
1723
|
+
<td>
|
1724
|
+
<pre class="lines">
|
1725
|
+
|
1726
|
+
|
1727
|
+
65
|
1728
|
+
66
|
1729
|
+
67
|
1730
|
+
68
|
1731
|
+
69
|
1732
|
+
70
|
1733
|
+
71</pre>
|
1734
|
+
</td>
|
1735
|
+
<td>
|
1736
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 65</span>
|
1737
|
+
|
1738
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='id identifier rubyid_event_name'>event_name</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1739
|
+
<span class='kw'>unless</span> <span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Browser::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='id identifier rubyid_event_name'>event_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rparen'>)</span>
|
1740
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unknown event name: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_event_name'>event_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>. Known events are </span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Browser::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1741
|
+
<span class='kw'>end</span>
|
1742
|
+
|
1743
|
+
<span class='id identifier rubyid_add_event_listener'>add_event_listener</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Browser::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='lbracket'>[</span><span class='id identifier rubyid_event_name'>event_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1744
|
+
<span class='kw'>end</span></pre>
|
1745
|
+
</td>
|
1746
|
+
</tr>
|
1747
|
+
</table>
|
1640
1748
|
</div>
|
1641
1749
|
|
1642
1750
|
<div class="method_details ">
|
@@ -1676,12 +1784,12 @@
|
|
1676
1784
|
<pre class="lines">
|
1677
1785
|
|
1678
1786
|
|
1679
|
-
|
1680
|
-
|
1681
|
-
|
1787
|
+
250
|
1788
|
+
251
|
1789
|
+
252</pre>
|
1682
1790
|
</td>
|
1683
1791
|
<td>
|
1684
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1792
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 250</span>
|
1685
1793
|
|
1686
1794
|
<span class='kw'>def</span> <span class='id identifier rubyid_pages'>pages</span>
|
1687
1795
|
<span class='id identifier rubyid_browser_contexts'>browser_contexts</span><span class='period'>.</span><span class='id identifier rubyid_flat_map'>flat_map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:pages</span><span class='rparen'>)</span>
|
@@ -1728,12 +1836,12 @@
|
|
1728
1836
|
<pre class="lines">
|
1729
1837
|
|
1730
1838
|
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1839
|
+
74
|
1840
|
+
75
|
1841
|
+
76</pre>
|
1734
1842
|
</td>
|
1735
1843
|
<td>
|
1736
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1844
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 74</span>
|
1737
1845
|
|
1738
1846
|
<span class='kw'>def</span> <span class='id identifier rubyid_process'>process</span>
|
1739
1847
|
<span class='ivar'>@process</span>
|
@@ -1780,12 +1888,12 @@
|
|
1780
1888
|
<pre class="lines">
|
1781
1889
|
|
1782
1890
|
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1891
|
+
206
|
1892
|
+
207
|
1893
|
+
208</pre>
|
1786
1894
|
</td>
|
1787
1895
|
<td>
|
1788
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1896
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 206</span>
|
1789
1897
|
|
1790
1898
|
<span class='kw'>def</span> <span class='id identifier rubyid_target'>target</span>
|
1791
1899
|
<span class='id identifier rubyid_targets'>targets</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_target'>target</span><span class='op'>|</span> <span class='id identifier rubyid_target'>target</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'>browser</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
|
@@ -1832,12 +1940,12 @@
|
|
1832
1940
|
<pre class="lines">
|
1833
1941
|
|
1834
1942
|
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1943
|
+
200
|
1944
|
+
201
|
1945
|
+
202</pre>
|
1838
1946
|
</td>
|
1839
1947
|
<td>
|
1840
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
1948
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 200</span>
|
1841
1949
|
|
1842
1950
|
<span class='kw'>def</span> <span class='id identifier rubyid_targets'>targets</span>
|
1843
1951
|
<span class='ivar'>@targets</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='period'>.</span><span class='id identifier rubyid_select'>select</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_target'>target</span><span class='op'>|</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_initialized?'>initialized?</span> <span class='rbrace'>}</span>
|
@@ -1884,12 +1992,12 @@
|
|
1884
1992
|
<pre class="lines">
|
1885
1993
|
|
1886
1994
|
|
1887
|
-
|
1888
|
-
|
1889
|
-
|
1995
|
+
260
|
1996
|
+
261
|
1997
|
+
262</pre>
|
1890
1998
|
</td>
|
1891
1999
|
<td>
|
1892
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
2000
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 260</span>
|
1893
2001
|
|
1894
2002
|
<span class='kw'>def</span> <span class='id identifier rubyid_user_agent'>user_agent</span>
|
1895
2003
|
<span class='id identifier rubyid_get_version'>get_version</span><span class='period'>.</span><span class='id identifier rubyid_user_agent'>user_agent</span>
|
@@ -1936,12 +2044,12 @@
|
|
1936
2044
|
<pre class="lines">
|
1937
2045
|
|
1938
2046
|
|
1939
|
-
|
1940
|
-
|
1941
|
-
|
2047
|
+
255
|
2048
|
+
256
|
2049
|
+
257</pre>
|
1942
2050
|
</td>
|
1943
2051
|
<td>
|
1944
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
2052
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 255</span>
|
1945
2053
|
|
1946
2054
|
<span class='kw'>def</span> <span class='id identifier rubyid_version'>version</span>
|
1947
2055
|
<span class='id identifier rubyid_get_version'>get_version</span><span class='period'>.</span><span class='id identifier rubyid_product'>product</span>
|
@@ -2014,26 +2122,6 @@
|
|
2014
2122
|
<pre class="lines">
|
2015
2123
|
|
2016
2124
|
|
2017
|
-
198
|
2018
|
-
199
|
2019
|
-
200
|
2020
|
-
201
|
2021
|
-
202
|
2022
|
-
203
|
2023
|
-
204
|
2024
|
-
205
|
2025
|
-
206
|
2026
|
-
207
|
2027
|
-
208
|
2028
|
-
209
|
2029
|
-
210
|
2030
|
-
211
|
2031
|
-
212
|
2032
|
-
213
|
2033
|
-
214
|
2034
|
-
215
|
2035
|
-
216
|
2036
|
-
217
|
2037
2125
|
218
|
2038
2126
|
219
|
2039
2127
|
220
|
@@ -2043,10 +2131,30 @@
|
|
2043
2131
|
224
|
2044
2132
|
225
|
2045
2133
|
226
|
2046
|
-
227
|
2134
|
+
227
|
2135
|
+
228
|
2136
|
+
229
|
2137
|
+
230
|
2138
|
+
231
|
2139
|
+
232
|
2140
|
+
233
|
2141
|
+
234
|
2142
|
+
235
|
2143
|
+
236
|
2144
|
+
237
|
2145
|
+
238
|
2146
|
+
239
|
2147
|
+
240
|
2148
|
+
241
|
2149
|
+
242
|
2150
|
+
243
|
2151
|
+
244
|
2152
|
+
245
|
2153
|
+
246
|
2154
|
+
247</pre>
|
2047
2155
|
</td>
|
2048
2156
|
<td>
|
2049
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
2157
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 218</span>
|
2050
2158
|
|
2051
2159
|
<span class='kw'>def</span> <span class='id identifier rubyid_wait_for_target'>wait_for_target</span><span class='lparen'>(</span><span class='label'>predicate:</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
2052
2160
|
<span class='id identifier rubyid_timeout_in_sec'>timeout_in_sec</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_timeout'>timeout</span> <span class='op'>||</span> <span class='int'>30000</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'>/</span> <span class='float'>1000.0</span>
|
@@ -2120,12 +2228,12 @@
|
|
2120
2228
|
<pre class="lines">
|
2121
2229
|
|
2122
2230
|
|
2123
|
-
|
2124
|
-
|
2125
|
-
|
2231
|
+
177
|
2232
|
+
178
|
2233
|
+
179</pre>
|
2126
2234
|
</td>
|
2127
2235
|
<td>
|
2128
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line
|
2236
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/browser.rb', line 177</span>
|
2129
2237
|
|
2130
2238
|
<span class='kw'>def</span> <span class='id identifier rubyid_websocket_endpoint'>websocket_endpoint</span>
|
2131
2239
|
<span class='ivar'>@connection</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span>
|
@@ -2140,7 +2248,7 @@
|
|
2140
2248
|
</div>
|
2141
2249
|
|
2142
2250
|
<div id="footer">
|
2143
|
-
Generated on
|
2251
|
+
Generated on Wed Jun 24 03:08:00 2020 by
|
2144
2252
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2145
2253
|
0.9.24 (ruby-2.6.3).
|
2146
2254
|
</div>
|