puppeteer-ruby 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/Puppeteer.html +2 -2
- data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
- data/docs/Puppeteer/Browser.html +254 -144
- data/docs/Puppeteer/BrowserContext.html +1 -1
- data/docs/Puppeteer/BrowserFetcher.html +1 -1
- data/docs/Puppeteer/BrowserRunner.html +1 -1
- data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +1 -1
- data/docs/Puppeteer/CDPSession.html +1 -1
- data/docs/Puppeteer/CDPSession/Error.html +1 -1
- data/docs/Puppeteer/ConcurrentRubyUtils.html +1 -1
- data/docs/Puppeteer/Connection.html +65 -61
- 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 +32 -32
- data/docs/Puppeteer/DOMWorld/DetachedError.html +1 -1
- data/docs/Puppeteer/DebugPrint.html +1 -1
- data/docs/Puppeteer/Device.html +1 -1
- data/docs/Puppeteer/Devices.html +1 -1
- data/docs/Puppeteer/ElementHandle.html +1 -1
- data/docs/Puppeteer/ElementHandle/BoundingBox.html +507 -0
- data/docs/Puppeteer/ElementHandle/BoxModel.html +404 -0
- data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +1 -1
- data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +1 -1
- data/docs/Puppeteer/ElementHandle/Point.html +1 -1
- data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +1 -1
- data/docs/Puppeteer/EmulationManager.html +1 -1
- data/docs/Puppeteer/EventCallbackable.html +1 -1
- data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
- data/docs/Puppeteer/ExecutionContext.html +1 -1
- data/docs/Puppeteer/ExecutionContext/EvaluationError.html +1 -1
- data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +1 -1
- data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +1 -1
- data/docs/Puppeteer/FileChooser.html +1 -1
- data/docs/Puppeteer/Frame.html +425 -289
- data/docs/Puppeteer/FrameManager.html +1 -1
- data/docs/Puppeteer/FrameManager/NavigationError.html +1 -1
- data/docs/Puppeteer/IfPresent.html +1 -1
- data/docs/Puppeteer/JSHandle.html +1 -1
- data/docs/Puppeteer/Keyboard.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDefinition.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDescription.html +1 -1
- data/docs/Puppeteer/Launcher.html +1 -1
- data/docs/Puppeteer/Launcher/Base.html +1 -1
- data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +1 -1
- data/docs/Puppeteer/Launcher/BrowserOptions.html +1 -1
- data/docs/Puppeteer/Launcher/Chrome.html +1 -1
- data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +1 -1
- data/docs/Puppeteer/Launcher/ChromeArgOptions.html +1 -1
- data/docs/Puppeteer/Launcher/LaunchOptions.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +1 -1
- data/docs/Puppeteer/Mouse.html +31 -41
- data/docs/Puppeteer/Mouse/Button.html +1 -1
- data/docs/Puppeteer/NetworkManager.html +1 -1
- data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
- data/docs/Puppeteer/Page.html +1 -1
- data/docs/Puppeteer/Page/FileChooserTimeoutError.html +1 -1
- data/docs/Puppeteer/Page/ScreenshotOptions.html +1 -1
- data/docs/Puppeteer/Page/ScriptTag.html +1 -1
- data/docs/Puppeteer/Page/StyleTag.html +1 -1
- data/docs/Puppeteer/Page/TargetCrashedError.html +1 -1
- data/docs/Puppeteer/RemoteObject.html +1 -1
- data/docs/Puppeteer/Target.html +1 -1
- data/docs/Puppeteer/Target/InitializeFailure.html +1 -1
- data/docs/Puppeteer/Target/TargetInfo.html +1 -1
- data/docs/Puppeteer/TimeoutError.html +1 -1
- data/docs/Puppeteer/TimeoutSettings.html +1 -1
- data/docs/Puppeteer/TouchScreen.html +1 -1
- data/docs/Puppeteer/Viewport.html +1 -1
- data/docs/Puppeteer/WaitTask.html +1 -1
- data/docs/Puppeteer/WaitTask/TerminatedError.html +1 -1
- data/docs/Puppeteer/WaitTask/TimeoutError.html +1 -1
- data/docs/Puppeteer/WebSocket.html +1 -1
- data/docs/Puppeteer/WebSocket/DriverImpl.html +1 -1
- data/docs/Puppeteer/WebSocket/TransportError.html +124 -0
- data/docs/Puppeteer/WebSocketTransport.html +1 -1
- data/docs/_index.html +5 -12
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +1 -1
- data/docs/index.html +1 -1
- data/docs/method_list.html +402 -386
- data/docs/top-level-namespace.html +1 -1
- data/lib/puppeteer/browser.rb +17 -1
- data/lib/puppeteer/connection.rb +13 -1
- data/lib/puppeteer/dom_world.rb +7 -6
- data/lib/puppeteer/frame.rb +19 -1
- data/lib/puppeteer/mouse.rb +3 -8
- data/lib/puppeteer/page.rb +1 -1
- data/lib/puppeteer/version.rb +1 -1
- metadata +5 -2
@@ -423,7 +423,7 @@
|
|
423
423
|
</div>
|
424
424
|
|
425
425
|
<div id="footer">
|
426
|
-
Generated on
|
426
|
+
Generated on Sat Jun 20 17:15:05 2020 by
|
427
427
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
428
428
|
0.9.24 (ruby-2.6.3).
|
429
429
|
</div>
|
@@ -425,7 +425,7 @@
|
|
425
425
|
</div>
|
426
426
|
|
427
427
|
<div id="footer">
|
428
|
-
Generated on
|
428
|
+
Generated on Sat Jun 20 17:15:08 2020 by
|
429
429
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
430
430
|
0.9.24 (ruby-2.6.3).
|
431
431
|
</div>
|
@@ -988,7 +988,7 @@
|
|
988
988
|
</div>
|
989
989
|
|
990
990
|
<div id="footer">
|
991
|
-
Generated on
|
991
|
+
Generated on Sat Jun 20 17:15:08 2020 by
|
992
992
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
993
993
|
0.9.24 (ruby-2.6.3).
|
994
994
|
</div>
|
@@ -114,7 +114,7 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on
|
117
|
+
Generated on Sat Jun 20 17:15:08 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>
|
@@ -347,7 +347,7 @@
|
|
347
347
|
</div>
|
348
348
|
|
349
349
|
<div id="footer">
|
350
|
-
Generated on
|
350
|
+
Generated on Sat Jun 20 17:15:08 2020 by
|
351
351
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
352
352
|
0.9.24 (ruby-2.6.3).
|
353
353
|
</div>
|
@@ -379,7 +379,7 @@
|
|
379
379
|
</div>
|
380
380
|
|
381
381
|
<div id="footer">
|
382
|
-
Generated on
|
382
|
+
Generated on Sat Jun 20 17:15:08 2020 by
|
383
383
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
384
384
|
0.9.24 (ruby-2.6.3).
|
385
385
|
</div>
|
@@ -445,7 +445,7 @@
|
|
445
445
|
</div>
|
446
446
|
|
447
447
|
<div id="footer">
|
448
|
-
Generated on
|
448
|
+
Generated on Sat Jun 20 17:15:07 2020 by
|
449
449
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
450
450
|
0.9.24 (ruby-2.6.3).
|
451
451
|
</div>
|
data/docs/Puppeteer/Frame.html
CHANGED
@@ -320,6 +320,50 @@
|
|
320
320
|
|
321
321
|
|
322
322
|
|
323
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
324
|
+
|
325
|
+
</li>
|
326
|
+
|
327
|
+
|
328
|
+
<li class="public ">
|
329
|
+
<span class="summary_signature">
|
330
|
+
|
331
|
+
<a href="#async_click-instance_method" title="#async_click (instance method)">#<strong>async_click</strong> ⇒ Future </a>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
</span>
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
346
|
+
|
347
|
+
</li>
|
348
|
+
|
349
|
+
|
350
|
+
<li class="public ">
|
351
|
+
<span class="summary_signature">
|
352
|
+
|
353
|
+
<a href="#async_wait_for_navigation-instance_method" title="#async_wait_for_navigation (instance method)">#<strong>async_wait_for_navigation</strong> ⇒ Future </a>
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
</span>
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
323
367
|
<span class="summary_desc"><div class='inline'></div></span>
|
324
368
|
|
325
369
|
</li>
|
@@ -994,28 +1038,6 @@
|
|
994
1038
|
|
995
1039
|
|
996
1040
|
|
997
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
998
|
-
|
999
|
-
</li>
|
1000
|
-
|
1001
|
-
|
1002
|
-
<li class="public ">
|
1003
|
-
<span class="summary_signature">
|
1004
|
-
|
1005
|
-
<a href="#wait_for_navigation-instance_method" title="#wait_for_navigation (instance method)">#<strong>wait_for_navigation</strong>(timeout: nil, wait_until: nil) ⇒ Object </a>
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
</span>
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
1041
|
<span class="summary_desc"><div class='inline'></div></span>
|
1020
1042
|
|
1021
1043
|
</li>
|
@@ -1145,8 +1167,6 @@
|
|
1145
1167
|
<pre class="lines">
|
1146
1168
|
|
1147
1169
|
|
1148
|
-
6
|
1149
|
-
7
|
1150
1170
|
8
|
1151
1171
|
9
|
1152
1172
|
10
|
@@ -1160,10 +1180,12 @@
|
|
1160
1180
|
18
|
1161
1181
|
19
|
1162
1182
|
20
|
1163
|
-
21
|
1183
|
+
21
|
1184
|
+
22
|
1185
|
+
23</pre>
|
1164
1186
|
</td>
|
1165
1187
|
<td>
|
1166
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1188
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 8</span>
|
1167
1189
|
|
1168
1190
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_frame_manager'>frame_manager</span><span class='comma'>,</span> <span class='id identifier rubyid_client'>client</span><span class='comma'>,</span> <span class='id identifier rubyid_parent_frame'>parent_frame</span><span class='comma'>,</span> <span class='id identifier rubyid_frame_id'>frame_id</span><span class='rparen'>)</span>
|
1169
1191
|
<span class='ivar'>@frame_manager</span> <span class='op'>=</span> <span class='id identifier rubyid_frame_manager'>frame_manager</span>
|
@@ -1219,12 +1241,12 @@
|
|
1219
1241
|
<pre class="lines">
|
1220
1242
|
|
1221
1243
|
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1244
|
+
25
|
1245
|
+
26
|
1246
|
+
27</pre>
|
1225
1247
|
</td>
|
1226
1248
|
<td>
|
1227
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1249
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 25</span>
|
1228
1250
|
|
1229
1251
|
<span class='kw'>def</span> <span class='id identifier rubyid_frame_manager'>frame_manager</span>
|
1230
1252
|
<span class='ivar'>@frame_manager</span>
|
@@ -1262,12 +1284,12 @@
|
|
1262
1284
|
<pre class="lines">
|
1263
1285
|
|
1264
1286
|
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1287
|
+
25
|
1288
|
+
26
|
1289
|
+
27</pre>
|
1268
1290
|
</td>
|
1269
1291
|
<td>
|
1270
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1292
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 25</span>
|
1271
1293
|
|
1272
1294
|
<span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
|
1273
1295
|
<span class='ivar'>@id</span>
|
@@ -1305,12 +1327,12 @@
|
|
1305
1327
|
<pre class="lines">
|
1306
1328
|
|
1307
1329
|
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1330
|
+
25
|
1331
|
+
26
|
1332
|
+
27</pre>
|
1311
1333
|
</td>
|
1312
1334
|
<td>
|
1313
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1335
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 25</span>
|
1314
1336
|
|
1315
1337
|
<span class='kw'>def</span> <span class='id identifier rubyid_lifecycle_events'>lifecycle_events</span>
|
1316
1338
|
<span class='ivar'>@lifecycle_events</span>
|
@@ -1348,12 +1370,12 @@
|
|
1348
1370
|
<pre class="lines">
|
1349
1371
|
|
1350
1372
|
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1373
|
+
25
|
1374
|
+
26
|
1375
|
+
27</pre>
|
1354
1376
|
</td>
|
1355
1377
|
<td>
|
1356
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1378
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 25</span>
|
1357
1379
|
|
1358
1380
|
<span class='kw'>def</span> <span class='id identifier rubyid_loader_id'>loader_id</span>
|
1359
1381
|
<span class='ivar'>@loader_id</span>
|
@@ -1391,12 +1413,12 @@
|
|
1391
1413
|
<pre class="lines">
|
1392
1414
|
|
1393
1415
|
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1416
|
+
25
|
1417
|
+
26
|
1418
|
+
27</pre>
|
1397
1419
|
</td>
|
1398
1420
|
<td>
|
1399
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1421
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 25</span>
|
1400
1422
|
|
1401
1423
|
<span class='kw'>def</span> <span class='id identifier rubyid_main_world'>main_world</span>
|
1402
1424
|
<span class='ivar'>@main_world</span>
|
@@ -1434,12 +1456,12 @@
|
|
1434
1456
|
<pre class="lines">
|
1435
1457
|
|
1436
1458
|
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1459
|
+
25
|
1460
|
+
26
|
1461
|
+
27</pre>
|
1440
1462
|
</td>
|
1441
1463
|
<td>
|
1442
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1464
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 25</span>
|
1443
1465
|
|
1444
1466
|
<span class='kw'>def</span> <span class='id identifier rubyid_secondary_world'>secondary_world</span>
|
1445
1467
|
<span class='ivar'>@secondary_world</span>
|
@@ -1508,12 +1530,12 @@
|
|
1508
1530
|
<pre class="lines">
|
1509
1531
|
|
1510
1532
|
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1533
|
+
145
|
1534
|
+
146
|
1535
|
+
147</pre>
|
1514
1536
|
</td>
|
1515
1537
|
<td>
|
1516
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1538
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 145</span>
|
1517
1539
|
|
1518
1540
|
<span class='kw'>def</span> <span class='id identifier rubyid_add_script_tag'>add_script_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_script_tag'>script_tag</span><span class='rparen'>)</span>
|
1519
1541
|
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_add_script_tag'>add_script_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_script_tag'>script_tag</span><span class='rparen'>)</span>
|
@@ -1575,12 +1597,12 @@
|
|
1575
1597
|
<pre class="lines">
|
1576
1598
|
|
1577
1599
|
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1600
|
+
151
|
1601
|
+
152
|
1602
|
+
153</pre>
|
1581
1603
|
</td>
|
1582
1604
|
<td>
|
1583
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1605
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 151</span>
|
1584
1606
|
|
1585
1607
|
<span class='kw'>def</span> <span class='id identifier rubyid_add_style_tag'>add_style_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_style_tag'>style_tag</span><span class='rparen'>)</span>
|
1586
1608
|
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_add_style_tag'>add_style_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_style_tag'>style_tag</span><span class='rparen'>)</span>
|
@@ -1588,6 +1610,194 @@
|
|
1588
1610
|
</td>
|
1589
1611
|
</tr>
|
1590
1612
|
</table>
|
1613
|
+
</div>
|
1614
|
+
|
1615
|
+
<div class="method_details ">
|
1616
|
+
<h3 class="signature " id="async_click-instance_method">
|
1617
|
+
|
1618
|
+
#<strong>async_click</strong> ⇒ <tt>Future</tt>
|
1619
|
+
|
1620
|
+
|
1621
|
+
|
1622
|
+
|
1623
|
+
|
1624
|
+
</h3><div class="docstring">
|
1625
|
+
<div class="discussion">
|
1626
|
+
|
1627
|
+
|
1628
|
+
</div>
|
1629
|
+
</div>
|
1630
|
+
<div class="tags">
|
1631
|
+
<p class="tag_title">Parameters:</p>
|
1632
|
+
<ul class="param">
|
1633
|
+
|
1634
|
+
<li>
|
1635
|
+
|
1636
|
+
<span class='name'>selector</span>
|
1637
|
+
|
1638
|
+
|
1639
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1640
|
+
|
1641
|
+
|
1642
|
+
|
1643
|
+
</li>
|
1644
|
+
|
1645
|
+
<li>
|
1646
|
+
|
1647
|
+
<span class='name'>delay</span>
|
1648
|
+
|
1649
|
+
|
1650
|
+
<span class='type'>(<tt>Number</tt>)</span>
|
1651
|
+
|
1652
|
+
|
1653
|
+
|
1654
|
+
</li>
|
1655
|
+
|
1656
|
+
<li>
|
1657
|
+
|
1658
|
+
<span class='name'>button</span>
|
1659
|
+
|
1660
|
+
|
1661
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1662
|
+
|
1663
|
+
|
1664
|
+
|
1665
|
+
—
|
1666
|
+
<div class='inline'>
|
1667
|
+
<p>“left”|“right”|“middle”</p>
|
1668
|
+
</div>
|
1669
|
+
|
1670
|
+
</li>
|
1671
|
+
|
1672
|
+
<li>
|
1673
|
+
|
1674
|
+
<span class='name'>click_count</span>
|
1675
|
+
|
1676
|
+
|
1677
|
+
<span class='type'>(<tt>Number</tt>)</span>
|
1678
|
+
|
1679
|
+
|
1680
|
+
|
1681
|
+
</li>
|
1682
|
+
|
1683
|
+
</ul>
|
1684
|
+
|
1685
|
+
<p class="tag_title">Returns:</p>
|
1686
|
+
<ul class="return">
|
1687
|
+
|
1688
|
+
<li>
|
1689
|
+
|
1690
|
+
|
1691
|
+
<span class='type'>(<tt>Future</tt>)</span>
|
1692
|
+
|
1693
|
+
|
1694
|
+
|
1695
|
+
</li>
|
1696
|
+
|
1697
|
+
</ul>
|
1698
|
+
|
1699
|
+
</div><table class="source_code">
|
1700
|
+
<tr>
|
1701
|
+
<td>
|
1702
|
+
<pre class="lines">
|
1703
|
+
|
1704
|
+
|
1705
|
+
160
|
1706
|
+
161
|
1707
|
+
162</pre>
|
1708
|
+
</td>
|
1709
|
+
<td>
|
1710
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 160</span>
|
1711
|
+
|
1712
|
+
<span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_click'>async_click</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>button:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1713
|
+
<span class='id identifier rubyid_click'>click</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='id identifier rubyid_delay'>delay</span><span class='comma'>,</span> <span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span>
|
1714
|
+
<span class='kw'>end</span></pre>
|
1715
|
+
</td>
|
1716
|
+
</tr>
|
1717
|
+
</table>
|
1718
|
+
</div>
|
1719
|
+
|
1720
|
+
<div class="method_details ">
|
1721
|
+
<h3 class="signature " id="async_wait_for_navigation-instance_method">
|
1722
|
+
|
1723
|
+
#<strong>async_wait_for_navigation</strong> ⇒ <tt>Future</tt>
|
1724
|
+
|
1725
|
+
|
1726
|
+
|
1727
|
+
|
1728
|
+
|
1729
|
+
</h3><div class="docstring">
|
1730
|
+
<div class="discussion">
|
1731
|
+
|
1732
|
+
|
1733
|
+
</div>
|
1734
|
+
</div>
|
1735
|
+
<div class="tags">
|
1736
|
+
<p class="tag_title">Parameters:</p>
|
1737
|
+
<ul class="param">
|
1738
|
+
|
1739
|
+
<li>
|
1740
|
+
|
1741
|
+
<span class='name'>timeout</span>
|
1742
|
+
|
1743
|
+
|
1744
|
+
<span class='type'>(<tt>number|nil</tt>)</span>
|
1745
|
+
|
1746
|
+
|
1747
|
+
|
1748
|
+
</li>
|
1749
|
+
|
1750
|
+
<li>
|
1751
|
+
|
1752
|
+
<span class='name'>wait_until</span>
|
1753
|
+
|
1754
|
+
|
1755
|
+
<span class='type'>(<tt>string|nil</tt>)</span>
|
1756
|
+
|
1757
|
+
|
1758
|
+
|
1759
|
+
—
|
1760
|
+
<div class='inline'>
|
1761
|
+
<p>'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2'</p>
|
1762
|
+
</div>
|
1763
|
+
|
1764
|
+
</li>
|
1765
|
+
|
1766
|
+
</ul>
|
1767
|
+
|
1768
|
+
<p class="tag_title">Returns:</p>
|
1769
|
+
<ul class="return">
|
1770
|
+
|
1771
|
+
<li>
|
1772
|
+
|
1773
|
+
|
1774
|
+
<span class='type'>(<tt>Future</tt>)</span>
|
1775
|
+
|
1776
|
+
|
1777
|
+
|
1778
|
+
</li>
|
1779
|
+
|
1780
|
+
</ul>
|
1781
|
+
|
1782
|
+
</div><table class="source_code">
|
1783
|
+
<tr>
|
1784
|
+
<td>
|
1785
|
+
<pre class="lines">
|
1786
|
+
|
1787
|
+
|
1788
|
+
45
|
1789
|
+
46
|
1790
|
+
47</pre>
|
1791
|
+
</td>
|
1792
|
+
<td>
|
1793
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 45</span>
|
1794
|
+
|
1795
|
+
<span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_wait_for_navigation'>async_wait_for_navigation</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1796
|
+
<span class='id identifier rubyid_wait_for_navigation'>wait_for_navigation</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
|
1797
|
+
<span class='kw'>end</span></pre>
|
1798
|
+
</td>
|
1799
|
+
</tr>
|
1800
|
+
</table>
|
1591
1801
|
</div>
|
1592
1802
|
|
1593
1803
|
<div class="method_details ">
|
@@ -1605,12 +1815,12 @@
|
|
1605
1815
|
<pre class="lines">
|
1606
1816
|
|
1607
1817
|
|
1608
|
-
|
1609
|
-
|
1610
|
-
|
1818
|
+
135
|
1819
|
+
136
|
1820
|
+
137</pre>
|
1611
1821
|
</td>
|
1612
1822
|
<td>
|
1613
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1823
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 135</span>
|
1614
1824
|
|
1615
1825
|
<span class='kw'>def</span> <span class='id identifier rubyid_child_frames'>child_frames</span>
|
1616
1826
|
<span class='ivar'>@child_frames</span><span class='period'>.</span><span class='id identifier rubyid_dup'>dup</span>
|
@@ -1703,12 +1913,12 @@
|
|
1703
1913
|
<pre class="lines">
|
1704
1914
|
|
1705
1915
|
|
1706
|
-
|
1707
|
-
|
1708
|
-
|
1916
|
+
168
|
1917
|
+
169
|
1918
|
+
170</pre>
|
1709
1919
|
</td>
|
1710
1920
|
<td>
|
1711
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1921
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 168</span>
|
1712
1922
|
|
1713
1923
|
<span class='kw'>def</span> <span class='id identifier rubyid_click'>click</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>button:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1714
1924
|
<span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_click'>click</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='id identifier rubyid_delay'>delay</span><span class='comma'>,</span> <span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span>
|
@@ -1733,12 +1943,12 @@
|
|
1733
1943
|
<pre class="lines">
|
1734
1944
|
|
1735
1945
|
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1946
|
+
106
|
1947
|
+
107
|
1948
|
+
108</pre>
|
1739
1949
|
</td>
|
1740
1950
|
<td>
|
1741
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1951
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 106</span>
|
1742
1952
|
|
1743
1953
|
<span class='kw'>def</span> <span class='id identifier rubyid_content'>content</span>
|
1744
1954
|
<span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span>
|
@@ -1763,18 +1973,18 @@
|
|
1763
1973
|
<pre class="lines">
|
1764
1974
|
|
1765
1975
|
|
1766
|
-
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1976
|
+
295
|
1977
|
+
296
|
1978
|
+
297
|
1979
|
+
298
|
1980
|
+
299
|
1981
|
+
300
|
1982
|
+
301
|
1983
|
+
302
|
1984
|
+
303</pre>
|
1775
1985
|
</td>
|
1776
1986
|
<td>
|
1777
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
1987
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 295</span>
|
1778
1988
|
|
1779
1989
|
<span class='kw'>def</span> <span class='id identifier rubyid_detach'>detach</span>
|
1780
1990
|
<span class='ivar'>@detached</span> <span class='op'>=</span> <span class='kw'>true</span>
|
@@ -1827,12 +2037,12 @@
|
|
1827
2037
|
<pre class="lines">
|
1828
2038
|
|
1829
2039
|
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
2040
|
+
139
|
2041
|
+
140
|
2042
|
+
141</pre>
|
1833
2043
|
</td>
|
1834
2044
|
<td>
|
1835
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2045
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 139</span>
|
1836
2046
|
|
1837
2047
|
<span class='kw'>def</span> <span class='id identifier rubyid_detached?'>detached?</span>
|
1838
2048
|
<span class='ivar'>@detached</span>
|
@@ -1892,12 +2102,12 @@
|
|
1892
2102
|
<pre class="lines">
|
1893
2103
|
|
1894
2104
|
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
2105
|
+
61
|
2106
|
+
62
|
2107
|
+
63</pre>
|
1898
2108
|
</td>
|
1899
2109
|
<td>
|
1900
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2110
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 61</span>
|
1901
2111
|
|
1902
2112
|
<span class='kw'>def</span> <span class='id identifier rubyid_evaluate'>evaluate</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
1903
2113
|
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_evaluate'>evaluate</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
@@ -1959,12 +2169,12 @@
|
|
1959
2169
|
<pre class="lines">
|
1960
2170
|
|
1961
2171
|
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
2172
|
+
55
|
2173
|
+
56
|
2174
|
+
57</pre>
|
1965
2175
|
</td>
|
1966
2176
|
<td>
|
1967
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2177
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 55</span>
|
1968
2178
|
|
1969
2179
|
<span class='kw'>def</span> <span class='id identifier rubyid_evaluate_handle'>evaluate_handle</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
1970
2180
|
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_evaluate_handle'>evaluate_handle</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
@@ -1989,12 +2199,12 @@
|
|
1989
2199
|
<pre class="lines">
|
1990
2200
|
|
1991
2201
|
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
2202
|
+
49
|
2203
|
+
50
|
2204
|
+
51</pre>
|
1995
2205
|
</td>
|
1996
2206
|
<td>
|
1997
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2207
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 49</span>
|
1998
2208
|
|
1999
2209
|
<span class='kw'>def</span> <span class='id identifier rubyid_execution_context'>execution_context</span>
|
2000
2210
|
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span>
|
@@ -2043,12 +2253,12 @@
|
|
2043
2253
|
<pre class="lines">
|
2044
2254
|
|
2045
2255
|
|
2046
|
-
|
2047
|
-
|
2048
|
-
|
2256
|
+
173
|
2257
|
+
174
|
2258
|
+
175</pre>
|
2049
2259
|
</td>
|
2050
2260
|
<td>
|
2051
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2261
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 173</span>
|
2052
2262
|
|
2053
2263
|
<span class='kw'>def</span> <span class='id identifier rubyid_focus'>focus</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
2054
2264
|
<span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_focus'>focus</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
@@ -2152,12 +2362,12 @@
|
|
2152
2362
|
<pre class="lines">
|
2153
2363
|
|
2154
2364
|
|
2155
|
-
|
2156
|
-
|
2157
|
-
|
2365
|
+
32
|
2366
|
+
33
|
2367
|
+
34</pre>
|
2158
2368
|
</td>
|
2159
2369
|
<td>
|
2160
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2370
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 32</span>
|
2161
2371
|
|
2162
2372
|
<span class='kw'>def</span> <span class='id identifier rubyid_goto'>goto</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='label'>referer:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
2163
2373
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_navigate_frame'>navigate_frame</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='label'>referer:</span> <span class='id identifier rubyid_referer'>referer</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
|
@@ -2182,16 +2392,16 @@
|
|
2182
2392
|
<pre class="lines">
|
2183
2393
|
|
2184
2394
|
|
2185
|
-
|
2186
|
-
|
2187
|
-
|
2188
|
-
|
2189
|
-
|
2190
|
-
|
2191
|
-
|
2395
|
+
282
|
2396
|
+
283
|
2397
|
+
284
|
2398
|
+
285
|
2399
|
+
286
|
2400
|
+
287
|
2401
|
+
288</pre>
|
2192
2402
|
</td>
|
2193
2403
|
<td>
|
2194
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2404
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 282</span>
|
2195
2405
|
|
2196
2406
|
<span class='kw'>def</span> <span class='id identifier rubyid_handle_lifecycle_event'>handle_lifecycle_event</span><span class='lparen'>(</span><span class='id identifier rubyid_loader_id'>loader_id</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
2197
2407
|
<span class='kw'>if</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>init</span><span class='tstring_end'>'</span></span>
|
@@ -2220,13 +2430,13 @@
|
|
2220
2430
|
<pre class="lines">
|
2221
2431
|
|
2222
2432
|
|
2223
|
-
|
2224
|
-
|
2225
|
-
|
2226
|
-
|
2433
|
+
290
|
2434
|
+
291
|
2435
|
+
292
|
2436
|
+
293</pre>
|
2227
2437
|
</td>
|
2228
2438
|
<td>
|
2229
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2439
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 290</span>
|
2230
2440
|
|
2231
2441
|
<span class='kw'>def</span> <span class='id identifier rubyid_handle_loading_stopped'>handle_loading_stopped</span>
|
2232
2442
|
<span class='ivar'>@lifecycle_events</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>DOMContentLoaded</span><span class='tstring_end'>'</span></span>
|
@@ -2276,12 +2486,12 @@
|
|
2276
2486
|
<pre class="lines">
|
2277
2487
|
|
2278
2488
|
|
2279
|
-
|
2280
|
-
|
2281
|
-
|
2489
|
+
178
|
2490
|
+
179
|
2491
|
+
180</pre>
|
2282
2492
|
</td>
|
2283
2493
|
<td>
|
2284
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2494
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 178</span>
|
2285
2495
|
|
2286
2496
|
<span class='kw'>def</span> <span class='id identifier rubyid_hover'>hover</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
2287
2497
|
<span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_hover'>hover</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
@@ -2328,12 +2538,12 @@
|
|
2328
2538
|
<pre class="lines">
|
2329
2539
|
|
2330
2540
|
|
2331
|
-
|
2332
|
-
|
2333
|
-
|
2541
|
+
117
|
2542
|
+
118
|
2543
|
+
119</pre>
|
2334
2544
|
</td>
|
2335
2545
|
<td>
|
2336
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2546
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 117</span>
|
2337
2547
|
|
2338
2548
|
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
2339
2549
|
<span class='ivar'>@name</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
@@ -2382,19 +2592,19 @@
|
|
2382
2592
|
<pre class="lines">
|
2383
2593
|
|
2384
2594
|
|
2385
|
-
|
2386
|
-
|
2387
|
-
|
2388
|
-
|
2389
|
-
|
2390
|
-
|
2391
|
-
|
2392
|
-
|
2393
|
-
|
2394
|
-
|
2595
|
+
266
|
2596
|
+
267
|
2597
|
+
268
|
2598
|
+
269
|
2599
|
+
270
|
2600
|
+
271
|
2601
|
+
272
|
2602
|
+
273
|
2603
|
+
274
|
2604
|
+
275</pre>
|
2395
2605
|
</td>
|
2396
2606
|
<td>
|
2397
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2607
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 266</span>
|
2398
2608
|
|
2399
2609
|
<span class='kw'>def</span> <span class='id identifier rubyid_navigated'>navigated</span><span class='lparen'>(</span><span class='id identifier rubyid_frame_payload'>frame_payload</span><span class='rparen'>)</span>
|
2400
2610
|
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_frame_payload'>frame_payload</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
@@ -2450,12 +2660,12 @@
|
|
2450
2660
|
<pre class="lines">
|
2451
2661
|
|
2452
2662
|
|
2453
|
-
|
2454
|
-
|
2455
|
-
|
2663
|
+
278
|
2664
|
+
279
|
2665
|
+
280</pre>
|
2456
2666
|
</td>
|
2457
2667
|
<td>
|
2458
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2668
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 278</span>
|
2459
2669
|
|
2460
2670
|
<span class='kw'>def</span> <span class='id identifier rubyid_navigated_within_document'>navigated_within_document</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
|
2461
2671
|
<span class='ivar'>@url</span> <span class='op'>=</span> <span class='id identifier rubyid_url'>url</span>
|
@@ -2502,12 +2712,12 @@
|
|
2502
2712
|
<pre class="lines">
|
2503
2713
|
|
2504
2714
|
|
2505
|
-
|
2506
|
-
|
2507
|
-
|
2715
|
+
127
|
2716
|
+
128
|
2717
|
+
129</pre>
|
2508
2718
|
</td>
|
2509
2719
|
<td>
|
2510
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2720
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 127</span>
|
2511
2721
|
|
2512
2722
|
<span class='kw'>def</span> <span class='id identifier rubyid_parent_frame'>parent_frame</span>
|
2513
2723
|
<span class='ivar'>@parent_frame</span>
|
@@ -2571,12 +2781,12 @@
|
|
2571
2781
|
<pre class="lines">
|
2572
2782
|
|
2573
2783
|
|
2574
|
-
|
2575
|
-
|
2576
|
-
|
2784
|
+
68
|
2785
|
+
69
|
2786
|
+
70</pre>
|
2577
2787
|
</td>
|
2578
2788
|
<td>
|
2579
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2789
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 68</span>
|
2580
2790
|
|
2581
2791
|
<span class='kw'>def</span> <span class='const'>S</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
2582
2792
|
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='const'>S</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
@@ -2649,12 +2859,12 @@
|
|
2649
2859
|
<pre class="lines">
|
2650
2860
|
|
2651
2861
|
|
2652
|
-
|
2653
|
-
|
2654
|
-
|
2862
|
+
185
|
2863
|
+
186
|
2864
|
+
187</pre>
|
2655
2865
|
</td>
|
2656
2866
|
<td>
|
2657
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2867
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 185</span>
|
2658
2868
|
|
2659
2869
|
<span class='kw'>def</span> <span class='id identifier rubyid_select'>select</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span>
|
2660
2870
|
<span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_select'>select</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span>
|
@@ -2714,12 +2924,12 @@
|
|
2714
2924
|
<pre class="lines">
|
2715
2925
|
|
2716
2926
|
|
2717
|
-
|
2718
|
-
|
2719
|
-
|
2927
|
+
112
|
2928
|
+
113
|
2929
|
+
114</pre>
|
2720
2930
|
</td>
|
2721
2931
|
<td>
|
2722
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
2932
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 112</span>
|
2723
2933
|
|
2724
2934
|
<span class='kw'>def</span> <span class='id identifier rubyid_set_content'>set_content</span><span class='lparen'>(</span><span class='id identifier rubyid_html'>html</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
2725
2935
|
<span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_set_content'>set_content</span><span class='lparen'>(</span><span class='id identifier rubyid_html'>html</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
|
@@ -2805,12 +3015,12 @@
|
|
2805
3015
|
<pre class="lines">
|
2806
3016
|
|
2807
3017
|
|
2808
|
-
|
2809
|
-
|
2810
|
-
|
3018
|
+
86
|
3019
|
+
87
|
3020
|
+
88</pre>
|
2811
3021
|
</td>
|
2812
3022
|
<td>
|
2813
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3023
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 86</span>
|
2814
3024
|
|
2815
3025
|
<span class='kw'>def</span> <span class='const'>Seval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
2816
3026
|
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='const'>Seval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
@@ -2874,12 +3084,12 @@
|
|
2874
3084
|
<pre class="lines">
|
2875
3085
|
|
2876
3086
|
|
2877
|
-
|
2878
|
-
|
2879
|
-
|
3087
|
+
102
|
3088
|
+
103
|
3089
|
+
104</pre>
|
2880
3090
|
</td>
|
2881
3091
|
<td>
|
2882
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3092
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 102</span>
|
2883
3093
|
|
2884
3094
|
<span class='kw'>def</span> <span class='const'>SS</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
2885
3095
|
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='const'>SS</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
@@ -2965,12 +3175,12 @@
|
|
2965
3175
|
<pre class="lines">
|
2966
3176
|
|
2967
3177
|
|
2968
|
-
|
2969
|
-
|
2970
|
-
|
3178
|
+
95
|
3179
|
+
96
|
3180
|
+
97</pre>
|
2971
3181
|
</td>
|
2972
3182
|
<td>
|
2973
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3183
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 95</span>
|
2974
3184
|
|
2975
3185
|
<span class='kw'>def</span> <span class='const'>SSeval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
2976
3186
|
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='const'>SSeval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
@@ -3034,12 +3244,12 @@
|
|
3034
3244
|
<pre class="lines">
|
3035
3245
|
|
3036
3246
|
|
3037
|
-
|
3038
|
-
|
3039
|
-
|
3247
|
+
76
|
3248
|
+
77
|
3249
|
+
78</pre>
|
3040
3250
|
</td>
|
3041
3251
|
<td>
|
3042
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3252
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 76</span>
|
3043
3253
|
|
3044
3254
|
<span class='kw'>def</span> <span class='const'>Sx</span><span class='lparen'>(</span><span class='id identifier rubyid_expression'>expression</span><span class='rparen'>)</span>
|
3045
3255
|
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='const'>Sx</span><span class='lparen'>(</span><span class='id identifier rubyid_expression'>expression</span><span class='rparen'>)</span>
|
@@ -3088,12 +3298,12 @@
|
|
3088
3298
|
<pre class="lines">
|
3089
3299
|
|
3090
3300
|
|
3091
|
-
|
3092
|
-
|
3093
|
-
|
3301
|
+
190
|
3302
|
+
191
|
3303
|
+
192</pre>
|
3094
3304
|
</td>
|
3095
3305
|
<td>
|
3096
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3306
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 190</span>
|
3097
3307
|
|
3098
3308
|
<span class='kw'>def</span> <span class='id identifier rubyid_tap'>tap</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
3099
3309
|
<span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
|
@@ -3118,12 +3328,12 @@
|
|
3118
3328
|
<pre class="lines">
|
3119
3329
|
|
3120
3330
|
|
3121
|
-
|
3122
|
-
|
3123
|
-
|
3331
|
+
261
|
3332
|
+
262
|
3333
|
+
263</pre>
|
3124
3334
|
</td>
|
3125
3335
|
<td>
|
3126
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3336
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 261</span>
|
3127
3337
|
|
3128
3338
|
<span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span>
|
3129
3339
|
<span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_title'>title</span>
|
@@ -3196,12 +3406,12 @@
|
|
3196
3406
|
<pre class="lines">
|
3197
3407
|
|
3198
3408
|
|
3199
|
-
|
3200
|
-
|
3201
|
-
|
3409
|
+
197
|
3410
|
+
198
|
3411
|
+
199</pre>
|
3202
3412
|
</td>
|
3203
3413
|
<td>
|
3204
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3414
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 197</span>
|
3205
3415
|
|
3206
3416
|
<span class='kw'>def</span> <span class='id identifier rubyid_type_text'>type_text</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
3207
3417
|
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_type_text'>type_text</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='id identifier rubyid_delay'>delay</span><span class='rparen'>)</span>
|
@@ -3248,12 +3458,12 @@
|
|
3248
3458
|
<pre class="lines">
|
3249
3459
|
|
3250
3460
|
|
3251
|
-
|
3252
|
-
|
3253
|
-
|
3461
|
+
122
|
3462
|
+
123
|
3463
|
+
124</pre>
|
3254
3464
|
</td>
|
3255
3465
|
<td>
|
3256
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3466
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 122</span>
|
3257
3467
|
|
3258
3468
|
<span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
|
3259
3469
|
<span class='ivar'>@url</span>
|
@@ -3339,12 +3549,12 @@
|
|
3339
3549
|
<pre class="lines">
|
3340
3550
|
|
3341
3551
|
|
3342
|
-
|
3343
|
-
|
3344
|
-
|
3552
|
+
257
|
3553
|
+
258
|
3554
|
+
259</pre>
|
3345
3555
|
</td>
|
3346
3556
|
<td>
|
3347
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3557
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 257</span>
|
3348
3558
|
|
3349
3559
|
<span class='kw'>def</span> <span class='id identifier rubyid_wait_for_function'>wait_for_function</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
3350
3560
|
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_function'>wait_for_function</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
@@ -3352,80 +3562,6 @@
|
|
3352
3562
|
</td>
|
3353
3563
|
</tr>
|
3354
3564
|
</table>
|
3355
|
-
</div>
|
3356
|
-
|
3357
|
-
<div class="method_details ">
|
3358
|
-
<h3 class="signature " id="wait_for_navigation-instance_method">
|
3359
|
-
|
3360
|
-
#<strong>wait_for_navigation</strong>(timeout: nil, wait_until: nil) ⇒ <tt>Object</tt>
|
3361
|
-
|
3362
|
-
|
3363
|
-
|
3364
|
-
|
3365
|
-
|
3366
|
-
</h3><div class="docstring">
|
3367
|
-
<div class="discussion">
|
3368
|
-
|
3369
|
-
|
3370
|
-
</div>
|
3371
|
-
</div>
|
3372
|
-
<div class="tags">
|
3373
|
-
<p class="tag_title">Parameters:</p>
|
3374
|
-
<ul class="param">
|
3375
|
-
|
3376
|
-
<li>
|
3377
|
-
|
3378
|
-
<span class='name'>timeout</span>
|
3379
|
-
|
3380
|
-
|
3381
|
-
<span class='type'>(<tt>number|nil</tt>)</span>
|
3382
|
-
|
3383
|
-
|
3384
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
3385
|
-
|
3386
|
-
|
3387
|
-
</li>
|
3388
|
-
|
3389
|
-
<li>
|
3390
|
-
|
3391
|
-
<span class='name'>wait_until</span>
|
3392
|
-
|
3393
|
-
|
3394
|
-
<span class='type'>(<tt>string|nil</tt>)</span>
|
3395
|
-
|
3396
|
-
|
3397
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
3398
|
-
|
3399
|
-
|
3400
|
-
—
|
3401
|
-
<div class='inline'>
|
3402
|
-
<p>'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2'</p>
|
3403
|
-
</div>
|
3404
|
-
|
3405
|
-
</li>
|
3406
|
-
|
3407
|
-
</ul>
|
3408
|
-
|
3409
|
-
|
3410
|
-
</div><table class="source_code">
|
3411
|
-
<tr>
|
3412
|
-
<td>
|
3413
|
-
<pre class="lines">
|
3414
|
-
|
3415
|
-
|
3416
|
-
36
|
3417
|
-
37
|
3418
|
-
38</pre>
|
3419
|
-
</td>
|
3420
|
-
<td>
|
3421
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 36</span>
|
3422
|
-
|
3423
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_wait_for_navigation'>wait_for_navigation</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
3424
|
-
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_frame_navigation'>wait_for_frame_navigation</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
|
3425
|
-
<span class='kw'>end</span></pre>
|
3426
|
-
</td>
|
3427
|
-
</tr>
|
3428
|
-
</table>
|
3429
3565
|
</div>
|
3430
3566
|
|
3431
3567
|
<div class="method_details ">
|
@@ -3516,19 +3652,19 @@
|
|
3516
3652
|
<pre class="lines">
|
3517
3653
|
|
3518
3654
|
|
3519
|
-
|
3520
|
-
|
3521
|
-
|
3522
|
-
|
3523
|
-
|
3524
|
-
|
3525
|
-
|
3526
|
-
|
3527
|
-
|
3528
|
-
|
3655
|
+
227
|
3656
|
+
228
|
3657
|
+
229
|
3658
|
+
230
|
3659
|
+
231
|
3660
|
+
232
|
3661
|
+
233
|
3662
|
+
234
|
3663
|
+
235
|
3664
|
+
236</pre>
|
3529
3665
|
</td>
|
3530
3666
|
<td>
|
3531
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3667
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 227</span>
|
3532
3668
|
|
3533
3669
|
<span class='kw'>def</span> <span class='id identifier rubyid_wait_for_selector'>wait_for_selector</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
3534
3670
|
<span class='id identifier rubyid_handle'>handle</span> <span class='op'>=</span> <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_selector'>wait_for_selector</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='id identifier rubyid_visible'>visible</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='id identifier rubyid_hidden'>hidden</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
|
@@ -3633,19 +3769,19 @@
|
|
3633
3769
|
<pre class="lines">
|
3634
3770
|
|
3635
3771
|
|
3636
|
-
|
3637
|
-
|
3638
|
-
|
3639
|
-
|
3640
|
-
|
3641
|
-
|
3642
|
-
|
3643
|
-
|
3644
|
-
|
3645
|
-
|
3772
|
+
242
|
3773
|
+
243
|
3774
|
+
244
|
3775
|
+
245
|
3776
|
+
246
|
3777
|
+
247
|
3778
|
+
248
|
3779
|
+
249
|
3780
|
+
250
|
3781
|
+
251</pre>
|
3646
3782
|
</td>
|
3647
3783
|
<td>
|
3648
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line
|
3784
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 242</span>
|
3649
3785
|
|
3650
3786
|
<span class='kw'>def</span> <span class='id identifier rubyid_wait_for_xpath'>wait_for_xpath</span><span class='lparen'>(</span><span class='id identifier rubyid_xpath'>xpath</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
3651
3787
|
<span class='id identifier rubyid_handle'>handle</span> <span class='op'>=</span> <span class='ivar'>@secondary_world</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_xpath'>wait_for_xpath</span><span class='lparen'>(</span><span class='id identifier rubyid_xpath'>xpath</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='id identifier rubyid_visible'>visible</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='id identifier rubyid_hidden'>hidden</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
|
@@ -3667,7 +3803,7 @@
|
|
3667
3803
|
</div>
|
3668
3804
|
|
3669
3805
|
<div id="footer">
|
3670
|
-
Generated on
|
3806
|
+
Generated on Sat Jun 20 17:15:06 2020 by
|
3671
3807
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
3672
3808
|
0.9.24 (ruby-2.6.3).
|
3673
3809
|
</div>
|