puppeteer-ruby 0.0.5 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/docs/Puppeteer.html +53 -43
- data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
- data/docs/Puppeteer/Browser.html +255 -147
- 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 +86 -57
- 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 +708 -69
- data/docs/Puppeteer/DOMWorld/DetachedError.html +1 -1
- data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +1 -1
- data/docs/Puppeteer/DebugPrint.html +2 -2
- data/docs/Puppeteer/Device.html +1 -1
- data/docs/Puppeteer/Devices.html +1 -1
- data/docs/Puppeteer/ElementHandle.html +1120 -181
- 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 +1 -1
- data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
- data/docs/Puppeteer/ExecutionContext.html +227 -1
- data/docs/Puppeteer/ExecutionContext/EvaluationError.html +1 -1
- data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +1 -1
- data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +2 -2
- data/docs/Puppeteer/FileChooser.html +455 -0
- data/docs/Puppeteer/Frame.html +492 -304
- data/docs/Puppeteer/FrameManager.html +22 -26
- data/docs/Puppeteer/FrameManager/NavigationError.html +1 -1
- data/docs/Puppeteer/IfPresent.html +1 -1
- data/docs/Puppeteer/JSHandle.html +1 -1
- data/docs/Puppeteer/Keyboard.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDefinition.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDescription.html +1 -1
- data/docs/Puppeteer/Launcher.html +1 -1
- data/docs/Puppeteer/Launcher/Base.html +1 -1
- data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +1 -1
- data/docs/Puppeteer/Launcher/BrowserOptions.html +1 -1
- data/docs/Puppeteer/Launcher/Chrome.html +64 -23
- 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 +980 -436
- data/docs/Puppeteer/Page/FileChooserTimeoutError.html +206 -0
- 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 +173 -37
- data/docs/Puppeteer/Target.html +149 -197
- 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 +434 -8
- data/docs/Puppeteer/WaitTask/TerminatedError.html +1 -1
- data/docs/Puppeteer/WaitTask/TimeoutError.html +206 -0
- 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 +2 -2
- data/docs/Puppeteer/WebSocktTransportError.html +1 -1
- data/docs/_index.html +47 -19
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +5 -3
- data/docs/index.html +5 -3
- data/docs/method_list.html +788 -444
- data/docs/top-level-namespace.html +1 -1
- data/lib/puppeteer.rb +7 -1
- data/lib/puppeteer/browser.rb +21 -6
- data/lib/puppeteer/browser_runner.rb +1 -1
- data/lib/puppeteer/cdp_session.rb +33 -11
- data/lib/puppeteer/connection.rb +13 -1
- data/lib/puppeteer/dom_world.rb +113 -108
- data/lib/puppeteer/element_handle.rb +183 -222
- 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/execution_context.rb +36 -17
- data/lib/puppeteer/file_chooser.rb +29 -0
- data/lib/puppeteer/frame.rb +32 -12
- data/lib/puppeteer/frame_manager.rb +0 -2
- data/lib/puppeteer/launcher/chrome.rb +48 -2
- data/lib/puppeteer/mouse.rb +3 -8
- data/lib/puppeteer/page.rb +116 -65
- data/lib/puppeteer/remote_object.rb +15 -1
- data/lib/puppeteer/target.rb +24 -24
- data/lib/puppeteer/version.rb +1 -1
- data/lib/puppeteer/viewport.rb +18 -0
- data/lib/puppeteer/wait_task.rb +183 -1
- data/lib/puppeteer/web_socket.rb +3 -1
- data/lib/puppeteer/web_socket_transport.rb +1 -1
- metadata +12 -2
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>
|
@@ -936,7 +980,7 @@
|
|
936
980
|
<li class="public ">
|
937
981
|
<span class="summary_signature">
|
938
982
|
|
939
|
-
<a href="#
|
983
|
+
<a href="#type_text-instance_method" title="#type_text (instance method)">#<strong>type_text</strong>(selector, text, delay: nil) ⇒ Object </a>
|
940
984
|
|
941
985
|
|
942
986
|
|
@@ -1002,29 +1046,7 @@
|
|
1002
1046
|
<li class="public ">
|
1003
1047
|
<span class="summary_signature">
|
1004
1048
|
|
1005
|
-
<a href="#
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
</span>
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
1020
|
-
|
1021
|
-
</li>
|
1022
|
-
|
1023
|
-
|
1024
|
-
<li class="public ">
|
1025
|
-
<span class="summary_signature">
|
1026
|
-
|
1027
|
-
<a href="#wait_for_selector-instance_method" title="#wait_for_selector (instance method)">#<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) ⇒ !Promise<?Puppeteer.ElementHandle> </a>
|
1049
|
+
<a href="#wait_for_selector-instance_method" title="#wait_for_selector (instance method)">#<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) ⇒ Object </a>
|
1028
1050
|
|
1029
1051
|
|
1030
1052
|
|
@@ -1046,7 +1068,7 @@
|
|
1046
1068
|
<li class="public ">
|
1047
1069
|
<span class="summary_signature">
|
1048
1070
|
|
1049
|
-
<a href="#wait_for_xpath-instance_method" title="#wait_for_xpath (instance method)">#<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) ⇒
|
1071
|
+
<a href="#wait_for_xpath-instance_method" title="#wait_for_xpath (instance method)">#<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) ⇒ Object </a>
|
1050
1072
|
|
1051
1073
|
|
1052
1074
|
|
@@ -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>
|
@@ -3134,9 +3344,9 @@
|
|
3134
3344
|
</div>
|
3135
3345
|
|
3136
3346
|
<div class="method_details ">
|
3137
|
-
<h3 class="signature " id="
|
3347
|
+
<h3 class="signature " id="type_text-instance_method">
|
3138
3348
|
|
3139
|
-
#<strong>
|
3349
|
+
#<strong>type_text</strong>(selector, text, delay: nil) ⇒ <tt>Object</tt>
|
3140
3350
|
|
3141
3351
|
|
3142
3352
|
|
@@ -3157,7 +3367,7 @@
|
|
3157
3367
|
<span class='name'>selector</span>
|
3158
3368
|
|
3159
3369
|
|
3160
|
-
<span class='type'>(<tt>
|
3370
|
+
<span class='type'>(<tt>String</tt>)</span>
|
3161
3371
|
|
3162
3372
|
|
3163
3373
|
|
@@ -3168,7 +3378,7 @@
|
|
3168
3378
|
<span class='name'>text</span>
|
3169
3379
|
|
3170
3380
|
|
3171
|
-
<span class='type'>(<tt>
|
3381
|
+
<span class='type'>(<tt>String</tt>)</span>
|
3172
3382
|
|
3173
3383
|
|
3174
3384
|
|
@@ -3176,11 +3386,13 @@
|
|
3176
3386
|
|
3177
3387
|
<li>
|
3178
3388
|
|
3179
|
-
<span class='name'>
|
3389
|
+
<span class='name'>delay</span>
|
3390
|
+
|
3180
3391
|
|
3392
|
+
<span class='type'>(<tt>Number</tt>)</span>
|
3181
3393
|
|
3182
|
-
<span class='type'>(<tt>{delay: (number|undefined)}=</tt>)</span>
|
3183
3394
|
|
3395
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
3184
3396
|
|
3185
3397
|
|
3186
3398
|
</li>
|
@@ -3194,15 +3406,15 @@
|
|
3194
3406
|
<pre class="lines">
|
3195
3407
|
|
3196
3408
|
|
3197
|
-
|
3198
|
-
|
3199
|
-
|
3409
|
+
197
|
3410
|
+
198
|
3411
|
+
199</pre>
|
3200
3412
|
</td>
|
3201
3413
|
<td>
|
3202
|
-
<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>
|
3203
3415
|
|
3204
|
-
<span class='kw'>def</span> <span class='id identifier
|
3205
|
-
<span class='ivar'>@main_world</span><span class='period'>.</span><span class='id identifier
|
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>
|
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>
|
3206
3418
|
<span class='kw'>end</span></pre>
|
3207
3419
|
</td>
|
3208
3420
|
</tr>
|
@@ -3246,12 +3458,12 @@
|
|
3246
3458
|
<pre class="lines">
|
3247
3459
|
|
3248
3460
|
|
3249
|
-
|
3250
|
-
|
3251
|
-
|
3461
|
+
122
|
3462
|
+
123
|
3463
|
+
124</pre>
|
3252
3464
|
</td>
|
3253
3465
|
<td>
|
3254
|
-
<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>
|
3255
3467
|
|
3256
3468
|
<span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
|
3257
3469
|
<span class='ivar'>@url</span>
|
@@ -3337,12 +3549,12 @@
|
|
3337
3549
|
<pre class="lines">
|
3338
3550
|
|
3339
3551
|
|
3340
|
-
|
3341
|
-
|
3342
|
-
|
3552
|
+
257
|
3553
|
+
258
|
3554
|
+
259</pre>
|
3343
3555
|
</td>
|
3344
3556
|
<td>
|
3345
|
-
<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>
|
3346
3558
|
|
3347
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>
|
3348
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>
|
@@ -3353,9 +3565,9 @@
|
|
3353
3565
|
</div>
|
3354
3566
|
|
3355
3567
|
<div class="method_details ">
|
3356
|
-
<h3 class="signature " id="
|
3568
|
+
<h3 class="signature " id="wait_for_selector-instance_method">
|
3357
3569
|
|
3358
|
-
#<strong>
|
3570
|
+
#<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) ⇒ <tt>Object</tt>
|
3359
3571
|
|
3360
3572
|
|
3361
3573
|
|
@@ -3373,23 +3585,21 @@
|
|
3373
3585
|
|
3374
3586
|
<li>
|
3375
3587
|
|
3376
|
-
<span class='name'>
|
3588
|
+
<span class='name'>selector</span>
|
3377
3589
|
|
3378
3590
|
|
3379
|
-
<span class='type'>(<tt>
|
3591
|
+
<span class='type'>(<tt>String</tt>)</span>
|
3380
3592
|
|
3381
3593
|
|
3382
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
3383
|
-
|
3384
3594
|
|
3385
3595
|
</li>
|
3386
3596
|
|
3387
3597
|
<li>
|
3388
3598
|
|
3389
|
-
<span class='name'>
|
3599
|
+
<span class='name'>visible</span>
|
3390
3600
|
|
3391
3601
|
|
3392
|
-
<span class='type'>(<tt>
|
3602
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
3393
3603
|
|
3394
3604
|
|
3395
3605
|
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
@@ -3397,111 +3607,64 @@
|
|
3397
3607
|
|
3398
3608
|
—
|
3399
3609
|
<div class='inline'>
|
3400
|
-
<p
|
3610
|
+
<p>Wait for element visible (not 'display: none' nor 'visibility: hidden') on true. default to false.</p>
|
3401
3611
|
</div>
|
3402
3612
|
|
3403
3613
|
</li>
|
3404
3614
|
|
3405
|
-
</ul>
|
3406
|
-
|
3407
|
-
|
3408
|
-
</div><table class="source_code">
|
3409
|
-
<tr>
|
3410
|
-
<td>
|
3411
|
-
<pre class="lines">
|
3412
|
-
|
3413
|
-
|
3414
|
-
36
|
3415
|
-
37
|
3416
|
-
38</pre>
|
3417
|
-
</td>
|
3418
|
-
<td>
|
3419
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/frame.rb', line 36</span>
|
3420
|
-
|
3421
|
-
<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>
|
3422
|
-
<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>
|
3423
|
-
<span class='kw'>end</span></pre>
|
3424
|
-
</td>
|
3425
|
-
</tr>
|
3426
|
-
</table>
|
3427
|
-
</div>
|
3428
|
-
|
3429
|
-
<div class="method_details ">
|
3430
|
-
<h3 class="signature " id="wait_for_selector-instance_method">
|
3431
|
-
|
3432
|
-
#<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) ⇒ <tt>!Promise<?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>></tt>
|
3433
|
-
|
3434
|
-
|
3435
|
-
|
3436
|
-
|
3437
|
-
|
3438
|
-
</h3><div class="docstring">
|
3439
|
-
<div class="discussion">
|
3440
|
-
|
3441
|
-
|
3442
|
-
</div>
|
3443
|
-
</div>
|
3444
|
-
<div class="tags">
|
3445
|
-
<p class="tag_title">Parameters:</p>
|
3446
|
-
<ul class="param">
|
3447
|
-
|
3448
3615
|
<li>
|
3449
3616
|
|
3450
|
-
<span class='name'>
|
3451
|
-
|
3617
|
+
<span class='name'>hidden</span>
|
3452
3618
|
|
3453
|
-
<span class='type'>(<tt>string</tt>)</span>
|
3454
|
-
|
3455
|
-
|
3456
|
-
|
3457
|
-
</li>
|
3458
|
-
|
3459
|
-
<li>
|
3460
3619
|
|
3461
|
-
<span class='
|
3620
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
3462
3621
|
|
3463
3622
|
|
3464
|
-
<
|
3623
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
3465
3624
|
|
3466
3625
|
|
3626
|
+
—
|
3627
|
+
<div class='inline'>
|
3628
|
+
<p>Wait for element invisible ('display: none' nor 'visibility: hidden') on true. default to false.</p>
|
3629
|
+
</div>
|
3467
3630
|
|
3468
3631
|
</li>
|
3469
3632
|
|
3470
|
-
</ul>
|
3471
|
-
|
3472
|
-
<p class="tag_title">Returns:</p>
|
3473
|
-
<ul class="return">
|
3474
|
-
|
3475
3633
|
<li>
|
3476
3634
|
|
3635
|
+
<span class='name'>timeout</span>
|
3477
3636
|
|
3478
|
-
<span class='type'>(<tt>!Promise<?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.<span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>></tt>)</span>
|
3479
3637
|
|
3638
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
3639
|
+
|
3640
|
+
|
3641
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
3480
3642
|
|
3481
3643
|
|
3482
3644
|
</li>
|
3483
3645
|
|
3484
3646
|
</ul>
|
3485
3647
|
|
3648
|
+
|
3486
3649
|
</div><table class="source_code">
|
3487
3650
|
<tr>
|
3488
3651
|
<td>
|
3489
3652
|
<pre class="lines">
|
3490
3653
|
|
3491
3654
|
|
3492
|
-
|
3493
|
-
|
3494
|
-
|
3495
|
-
|
3496
|
-
|
3497
|
-
|
3498
|
-
|
3499
|
-
|
3500
|
-
|
3501
|
-
|
3655
|
+
227
|
3656
|
+
228
|
3657
|
+
229
|
3658
|
+
230
|
3659
|
+
231
|
3660
|
+
232
|
3661
|
+
233
|
3662
|
+
234
|
3663
|
+
235
|
3664
|
+
236</pre>
|
3502
3665
|
</td>
|
3503
3666
|
<td>
|
3504
|
-
<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>
|
3505
3668
|
|
3506
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>
|
3507
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>
|
@@ -3521,7 +3684,7 @@
|
|
3521
3684
|
<div class="method_details ">
|
3522
3685
|
<h3 class="signature " id="wait_for_xpath-instance_method">
|
3523
3686
|
|
3524
|
-
#<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) ⇒ <tt
|
3687
|
+
#<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) ⇒ <tt>Object</tt>
|
3525
3688
|
|
3526
3689
|
|
3527
3690
|
|
@@ -3542,7 +3705,7 @@
|
|
3542
3705
|
<span class='name'>xpath</span>
|
3543
3706
|
|
3544
3707
|
|
3545
|
-
<span class='type'>(<tt>
|
3708
|
+
<span class='type'>(<tt>String</tt>)</span>
|
3546
3709
|
|
3547
3710
|
|
3548
3711
|
|
@@ -3550,50 +3713,75 @@
|
|
3550
3713
|
|
3551
3714
|
<li>
|
3552
3715
|
|
3553
|
-
<span class='name'>
|
3716
|
+
<span class='name'>visible</span>
|
3554
3717
|
|
3555
3718
|
|
3556
|
-
<span class='type'>(<tt
|
3719
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
3720
|
+
|
3557
3721
|
|
3722
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
3558
3723
|
|
3559
3724
|
|
3725
|
+
—
|
3726
|
+
<div class='inline'>
|
3727
|
+
<p>Wait for element visible (not 'display: none' nor 'visibility: hidden') on true. default to false.</p>
|
3728
|
+
</div>
|
3729
|
+
|
3560
3730
|
</li>
|
3561
3731
|
|
3562
|
-
|
3563
|
-
|
3564
|
-
<
|
3565
|
-
|
3732
|
+
<li>
|
3733
|
+
|
3734
|
+
<span class='name'>hidden</span>
|
3735
|
+
|
3736
|
+
|
3737
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
3738
|
+
|
3739
|
+
|
3740
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
3741
|
+
|
3742
|
+
|
3743
|
+
—
|
3744
|
+
<div class='inline'>
|
3745
|
+
<p>Wait for element invisible ('display: none' nor 'visibility: hidden') on true. default to false.</p>
|
3746
|
+
</div>
|
3747
|
+
|
3748
|
+
</li>
|
3566
3749
|
|
3567
3750
|
<li>
|
3568
3751
|
|
3752
|
+
<span class='name'>timeout</span>
|
3569
3753
|
|
3570
|
-
|
3754
|
+
|
3755
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
3571
3756
|
|
3572
3757
|
|
3758
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
3759
|
+
|
3573
3760
|
|
3574
3761
|
</li>
|
3575
3762
|
|
3576
3763
|
</ul>
|
3577
3764
|
|
3765
|
+
|
3578
3766
|
</div><table class="source_code">
|
3579
3767
|
<tr>
|
3580
3768
|
<td>
|
3581
3769
|
<pre class="lines">
|
3582
3770
|
|
3583
3771
|
|
3584
|
-
|
3585
|
-
|
3586
|
-
|
3587
|
-
|
3588
|
-
|
3589
|
-
|
3590
|
-
|
3591
|
-
|
3592
|
-
|
3593
|
-
|
3772
|
+
242
|
3773
|
+
243
|
3774
|
+
244
|
3775
|
+
245
|
3776
|
+
246
|
3777
|
+
247
|
3778
|
+
248
|
3779
|
+
249
|
3780
|
+
250
|
3781
|
+
251</pre>
|
3594
3782
|
</td>
|
3595
3783
|
<td>
|
3596
|
-
<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>
|
3597
3785
|
|
3598
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>
|
3599
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>
|
@@ -3615,7 +3803,7 @@
|
|
3615
3803
|
</div>
|
3616
3804
|
|
3617
3805
|
<div id="footer">
|
3618
|
-
Generated on
|
3806
|
+
Generated on Sat Jun 20 17:15:06 2020 by
|
3619
3807
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
3620
3808
|
0.9.24 (ruby-2.6.3).
|
3621
3809
|
</div>
|