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
@@ -126,7 +126,7 @@
|
|
126
126
|
</div>
|
127
127
|
|
128
128
|
<div id="footer">
|
129
|
-
Generated on
|
129
|
+
Generated on Sat Jun 20 17:15:05 2020 by
|
130
130
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
131
131
|
0.9.24 (ruby-2.6.3).
|
132
132
|
</div>
|
@@ -891,7 +891,7 @@
|
|
891
891
|
</div>
|
892
892
|
|
893
893
|
<div id="footer">
|
894
|
-
Generated on
|
894
|
+
Generated on Sat Jun 20 17:15:08 2020 by
|
895
895
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
896
896
|
0.9.24 (ruby-2.6.3).
|
897
897
|
</div>
|
@@ -375,7 +375,7 @@
|
|
375
375
|
</div>
|
376
376
|
|
377
377
|
<div id="footer">
|
378
|
-
Generated on
|
378
|
+
Generated on Sat Jun 20 17:15:08 2020 by
|
379
379
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
380
380
|
0.9.24 (ruby-2.6.3).
|
381
381
|
</div>
|
data/docs/Puppeteer/Page.html
CHANGED
@@ -112,7 +112,7 @@
|
|
112
112
|
|
113
113
|
|
114
114
|
|
115
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Page/ScreenshotOptions.html" title="Puppeteer::Page::ScreenshotOptions (class)">ScreenshotOptions</a></span>, <span class='object_link'><a href="Page/ScriptTag.html" title="Puppeteer::Page::ScriptTag (class)">ScriptTag</a></span>, <span class='object_link'><a href="Page/StyleTag.html" title="Puppeteer::Page::StyleTag (class)">StyleTag</a></span>, <span class='object_link'><a href="Page/TargetCrashedError.html" title="Puppeteer::Page::TargetCrashedError (class)">TargetCrashedError</a></span>
|
115
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Page/FileChooserTimeoutError.html" title="Puppeteer::Page::FileChooserTimeoutError (class)">FileChooserTimeoutError</a></span>, <span class='object_link'><a href="Page/ScreenshotOptions.html" title="Puppeteer::Page::ScreenshotOptions (class)">ScreenshotOptions</a></span>, <span class='object_link'><a href="Page/ScriptTag.html" title="Puppeteer::Page::ScriptTag (class)">ScriptTag</a></span>, <span class='object_link'><a href="Page/StyleTag.html" title="Puppeteer::Page::StyleTag (class)">StyleTag</a></span>, <span class='object_link'><a href="Page/TargetCrashedError.html" title="Puppeteer::Page::TargetCrashedError (class)">TargetCrashedError</a></span>
|
116
116
|
|
117
117
|
|
118
118
|
</p>
|
@@ -456,6 +456,76 @@
|
|
456
456
|
|
457
457
|
|
458
458
|
|
459
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
460
|
+
|
461
|
+
</li>
|
462
|
+
|
463
|
+
|
464
|
+
<li class="public ">
|
465
|
+
<span class="summary_signature">
|
466
|
+
|
467
|
+
<a href="#async_Seval-instance_method" title="#async_Seval (instance method)">#<strong>async_Seval</strong> ⇒ Future </a>
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
</span>
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
<span class="summary_desc"><div class='inline'>
|
482
|
+
<p>`$eval()` in JavaScript.</p>
|
483
|
+
</div></span>
|
484
|
+
|
485
|
+
</li>
|
486
|
+
|
487
|
+
|
488
|
+
<li class="public ">
|
489
|
+
<span class="summary_signature">
|
490
|
+
|
491
|
+
<a href="#async_SSeval-instance_method" title="#async_SSeval (instance method)">#<strong>async_SSeval</strong> ⇒ Future </a>
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
</span>
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
<span class="summary_desc"><div class='inline'>
|
506
|
+
<p>`$$eval()` in JavaScript.</p>
|
507
|
+
</div></span>
|
508
|
+
|
509
|
+
</li>
|
510
|
+
|
511
|
+
|
512
|
+
<li class="public ">
|
513
|
+
<span class="summary_signature">
|
514
|
+
|
515
|
+
<a href="#async_wait_for_file_chooser-instance_method" title="#async_wait_for_file_chooser (instance method)">#<strong>async_wait_for_file_chooser</strong> ⇒ Future<Puppeteer::FileChooser> </a>
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
</span>
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
|
526
|
+
|
527
|
+
|
528
|
+
|
459
529
|
<span class="summary_desc"><div class='inline'></div></span>
|
460
530
|
|
461
531
|
</li>
|
@@ -940,6 +1010,28 @@
|
|
940
1010
|
|
941
1011
|
|
942
1012
|
|
1013
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
1014
|
+
|
1015
|
+
</li>
|
1016
|
+
|
1017
|
+
|
1018
|
+
<li class="public ">
|
1019
|
+
<span class="summary_signature">
|
1020
|
+
|
1021
|
+
<a href="#handle_file_chooser-instance_method" title="#handle_file_chooser (instance method)">#<strong>handle_file_chooser</strong>(event) ⇒ Object </a>
|
1022
|
+
|
1023
|
+
|
1024
|
+
|
1025
|
+
</span>
|
1026
|
+
|
1027
|
+
|
1028
|
+
|
1029
|
+
|
1030
|
+
|
1031
|
+
|
1032
|
+
|
1033
|
+
|
1034
|
+
|
943
1035
|
<span class="summary_desc"><div class='inline'></div></span>
|
944
1036
|
|
945
1037
|
</li>
|
@@ -1084,7 +1176,7 @@
|
|
1084
1176
|
<li class="public ">
|
1085
1177
|
<span class="summary_signature">
|
1086
1178
|
|
1087
|
-
<a href="#reload-instance_method" title="#reload (instance method)">#<strong>reload</strong>(timeout: nil, wait_until: nil) ⇒
|
1179
|
+
<a href="#reload-instance_method" title="#reload (instance method)">#<strong>reload</strong>(timeout: nil, wait_until: nil) ⇒ Puppeteer::Response </a>
|
1088
1180
|
|
1089
1181
|
|
1090
1182
|
|
@@ -1220,7 +1312,7 @@
|
|
1220
1312
|
<li class="public ">
|
1221
1313
|
<span class="summary_signature">
|
1222
1314
|
|
1223
|
-
<a href="#Seval-instance_method" title="#Seval (instance method)">#<strong>Seval</strong>(selector, page_function, *args) ⇒
|
1315
|
+
<a href="#Seval-instance_method" title="#Seval (instance method)">#<strong>Seval</strong>(selector, page_function, *args) ⇒ Object </a>
|
1224
1316
|
|
1225
1317
|
|
1226
1318
|
|
@@ -1268,7 +1360,7 @@
|
|
1268
1360
|
<li class="public ">
|
1269
1361
|
<span class="summary_signature">
|
1270
1362
|
|
1271
|
-
<a href="#SSeval-instance_method" title="#SSeval (instance method)">#<strong>SSeval</strong>(selector, page_function, *args) ⇒
|
1363
|
+
<a href="#SSeval-instance_method" title="#SSeval (instance method)">#<strong>SSeval</strong>(selector, page_function, *args) ⇒ Object </a>
|
1272
1364
|
|
1273
1365
|
|
1274
1366
|
|
@@ -1360,7 +1452,7 @@
|
|
1360
1452
|
<li class="public ">
|
1361
1453
|
<span class="summary_signature">
|
1362
1454
|
|
1363
|
-
<a href="#
|
1455
|
+
<a href="#type_text-instance_method" title="#type_text (instance method)">#<strong>type_text</strong>(selector, text, delay: nil) ⇒ Object </a>
|
1364
1456
|
|
1365
1457
|
|
1366
1458
|
|
@@ -1418,6 +1510,28 @@
|
|
1418
1510
|
|
1419
1511
|
|
1420
1512
|
|
1513
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
1514
|
+
|
1515
|
+
</li>
|
1516
|
+
|
1517
|
+
|
1518
|
+
<li class="public ">
|
1519
|
+
<span class="summary_signature">
|
1520
|
+
|
1521
|
+
<a href="#wait_for_file_chooser-instance_method" title="#wait_for_file_chooser (instance method)">#<strong>wait_for_file_chooser</strong>(timeout: nil) ⇒ Puppeteer::FileChooser </a>
|
1522
|
+
|
1523
|
+
|
1524
|
+
|
1525
|
+
</span>
|
1526
|
+
|
1527
|
+
|
1528
|
+
|
1529
|
+
|
1530
|
+
|
1531
|
+
|
1532
|
+
|
1533
|
+
|
1534
|
+
|
1421
1535
|
<span class="summary_desc"><div class='inline'></div></span>
|
1422
1536
|
|
1423
1537
|
</li>
|
@@ -1448,7 +1562,7 @@
|
|
1448
1562
|
<li class="public ">
|
1449
1563
|
<span class="summary_signature">
|
1450
1564
|
|
1451
|
-
<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) ⇒
|
1565
|
+
<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>
|
1452
1566
|
|
1453
1567
|
|
1454
1568
|
|
@@ -1470,7 +1584,7 @@
|
|
1470
1584
|
<li class="public ">
|
1471
1585
|
<span class="summary_signature">
|
1472
1586
|
|
1473
|
-
<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) ⇒
|
1587
|
+
<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>
|
1474
1588
|
|
1475
1589
|
|
1476
1590
|
|
@@ -1698,7 +1812,9 @@
|
|
1698
1812
|
111
|
1699
1813
|
112
|
1700
1814
|
113
|
1701
|
-
114
|
1815
|
+
114
|
1816
|
+
115
|
1817
|
+
116</pre>
|
1702
1818
|
</td>
|
1703
1819
|
<td>
|
1704
1820
|
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 29</span>
|
@@ -1728,8 +1844,8 @@
|
|
1728
1844
|
<span class='kw'>next</span>
|
1729
1845
|
<span class='kw'>end</span>
|
1730
1846
|
|
1731
|
-
<span class='id identifier rubyid_session'>session</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Connection.html" title="Puppeteer::Connection (class)">Connection</a></span></span><span class='period'>.</span><span class='id identifier rubyid_from_session'><span class='object_link'><a href="Connection.html#from_session-class_method" title="Puppeteer::Connection.from_session (method)">from_session</a></span></span><span class='lparen'>(</span><span class='ivar'>@client</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_session'>session</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sessionId</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1732
|
-
<span class='comment'># const worker = new Worker(session, event.targetInfo.url, this._addConsoleMessage.bind(this), this._handleException.bind(this));
|
1847
|
+
<span class='id identifier rubyid_session'>session</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Connection.html" title="Puppeteer::Connection (class)">Connection</a></span></span><span class='period'>.</span><span class='id identifier rubyid_from_session'><span class='object_link'><a href="Connection.html#from_session-class_method" title="Puppeteer::Connection.from_session (method)">from_session</a></span></span><span class='lparen'>(</span><span class='ivar'>@client</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_session'>session</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sessionId</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='comment'># rubocop:disable Lint/UselessAssignment
|
1848
|
+
</span> <span class='comment'># const worker = new Worker(session, event.targetInfo.url, this._addConsoleMessage.bind(this), this._handleException.bind(this));
|
1733
1849
|
</span> <span class='comment'># this._workers.set(event.sessionId, worker);
|
1734
1850
|
</span> <span class='comment'># this.emit(Events.Page.WorkerCreated, worker);
|
1735
1851
|
</span> <span class='kw'>end</span>
|
@@ -1765,9 +1881,9 @@
|
|
1765
1881
|
<span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.NetworkManager.RequestFinished</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_event'>event</span><span class='op'>|</span>
|
1766
1882
|
<span class='id identifier rubyid_emit_event'>emit_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.RequestFinished</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_event'>event</span>
|
1767
1883
|
<span class='kw'>end</span>
|
1768
|
-
<span class='
|
1769
|
-
</span>
|
1770
|
-
|
1884
|
+
<span class='ivar'>@file_chooser_interception_is_disabled</span> <span class='op'>=</span> <span class='kw'>false</span>
|
1885
|
+
<span class='ivar'>@file_chooser_interceptors</span> <span class='op'>=</span> <span class='const'>Set</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
1886
|
+
|
1771
1887
|
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Page.domContentEventFired</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_event'>event</span><span class='op'>|</span>
|
1772
1888
|
<span class='id identifier rubyid_emit_event'>emit_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.DOMContentLoaded</span><span class='tstring_end'>'</span></span>
|
1773
1889
|
<span class='kw'>end</span>
|
@@ -1783,8 +1899,10 @@
|
|
1783
1899
|
</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Log.entryAdded</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_event'>event</span><span class='op'>|</span>
|
1784
1900
|
<span class='id identifier rubyid_handle_log_entry_added'>handle_log_entry_added</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span>
|
1785
1901
|
<span class='kw'>end</span>
|
1786
|
-
<span class='
|
1787
|
-
|
1902
|
+
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Page.fileChooserOpened</span><span class='tstring_end'>'</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_event'>event</span><span class='op'>|</span>
|
1903
|
+
<span class='id identifier rubyid_handle_file_chooser'>handle_file_chooser</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span>
|
1904
|
+
<span class='kw'>end</span>
|
1905
|
+
<span class='ivar'>@target</span><span class='period'>.</span><span class='id identifier rubyid_is_closed_promise'>is_closed_promise</span><span class='period'>.</span><span class='id identifier rubyid_then'>then</span> <span class='kw'>do</span>
|
1788
1906
|
<span class='id identifier rubyid_emit_event'>emit_event</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.Close</span><span class='tstring_end'>'</span></span>
|
1789
1907
|
<span class='ivar'>@closed</span> <span class='op'>=</span> <span class='kw'>true</span>
|
1790
1908
|
<span class='kw'>end</span>
|
@@ -1827,12 +1945,12 @@
|
|
1827
1945
|
<pre class="lines">
|
1828
1946
|
|
1829
1947
|
|
1830
|
-
|
1831
|
-
|
1832
|
-
|
1948
|
+
233
|
1949
|
+
234
|
1950
|
+
235</pre>
|
1833
1951
|
</td>
|
1834
1952
|
<td>
|
1835
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
1953
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 233</span>
|
1836
1954
|
|
1837
1955
|
<span class='kw'>def</span> <span class='id identifier rubyid_accessibility'>accessibility</span>
|
1838
1956
|
<span class='ivar'>@accessibility</span>
|
@@ -1870,12 +1988,12 @@
|
|
1870
1988
|
<pre class="lines">
|
1871
1989
|
|
1872
1990
|
|
1873
|
-
|
1874
|
-
|
1875
|
-
|
1991
|
+
233
|
1992
|
+
234
|
1993
|
+
235</pre>
|
1876
1994
|
</td>
|
1877
1995
|
<td>
|
1878
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
1996
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 233</span>
|
1879
1997
|
|
1880
1998
|
<span class='kw'>def</span> <span class='id identifier rubyid_coverage'>coverage</span>
|
1881
1999
|
<span class='ivar'>@coverage</span>
|
@@ -1930,12 +2048,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
1930
2048
|
<pre class="lines">
|
1931
2049
|
|
1932
2050
|
|
1933
|
-
|
1934
|
-
|
1935
|
-
|
2051
|
+
190
|
2052
|
+
191
|
2053
|
+
192</pre>
|
1936
2054
|
</td>
|
1937
2055
|
<td>
|
1938
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
2056
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 190</span>
|
1939
2057
|
|
1940
2058
|
<span class='kw'>def</span> <span class='id identifier rubyid_javascript_enabled'>javascript_enabled</span>
|
1941
2059
|
<span class='ivar'>@javascript_enabled</span>
|
@@ -1973,12 +2091,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
1973
2091
|
<pre class="lines">
|
1974
2092
|
|
1975
2093
|
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
2094
|
+
233
|
2095
|
+
234
|
2096
|
+
235</pre>
|
1979
2097
|
</td>
|
1980
2098
|
<td>
|
1981
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
2099
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 233</span>
|
1982
2100
|
|
1983
2101
|
<span class='kw'>def</span> <span class='id identifier rubyid_keyboard'>keyboard</span>
|
1984
2102
|
<span class='ivar'>@keyboard</span>
|
@@ -2016,12 +2134,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2016
2134
|
<pre class="lines">
|
2017
2135
|
|
2018
2136
|
|
2019
|
-
|
2020
|
-
|
2021
|
-
|
2137
|
+
963
|
2138
|
+
964
|
2139
|
+
965</pre>
|
2022
2140
|
</td>
|
2023
2141
|
<td>
|
2024
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
2142
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 963</span>
|
2025
2143
|
|
2026
2144
|
<span class='kw'>def</span> <span class='id identifier rubyid_mouse'>mouse</span>
|
2027
2145
|
<span class='ivar'>@mouse</span>
|
@@ -2076,12 +2194,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2076
2194
|
<pre class="lines">
|
2077
2195
|
|
2078
2196
|
|
2079
|
-
|
2080
|
-
|
2081
|
-
|
2197
|
+
190
|
2198
|
+
191
|
2199
|
+
192</pre>
|
2082
2200
|
</td>
|
2083
2201
|
<td>
|
2084
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
2202
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 190</span>
|
2085
2203
|
|
2086
2204
|
<span class='kw'>def</span> <span class='id identifier rubyid_target'>target</span>
|
2087
2205
|
<span class='ivar'>@target</span>
|
@@ -2119,12 +2237,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2119
2237
|
<pre class="lines">
|
2120
2238
|
|
2121
2239
|
|
2122
|
-
|
2123
|
-
|
2124
|
-
|
2240
|
+
233
|
2241
|
+
234
|
2242
|
+
235</pre>
|
2125
2243
|
</td>
|
2126
2244
|
<td>
|
2127
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
2245
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 233</span>
|
2128
2246
|
|
2129
2247
|
<span class='kw'>def</span> <span class='id identifier rubyid_touch_screen'>touch_screen</span>
|
2130
2248
|
<span class='ivar'>@touch_screen</span>
|
@@ -2162,12 +2280,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2162
2280
|
<pre class="lines">
|
2163
2281
|
|
2164
2282
|
|
2165
|
-
|
2166
|
-
|
2167
|
-
|
2283
|
+
786
|
2284
|
+
787
|
2285
|
+
788</pre>
|
2168
2286
|
</td>
|
2169
2287
|
<td>
|
2170
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
2288
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 786</span>
|
2171
2289
|
|
2172
2290
|
<span class='kw'>def</span> <span class='id identifier rubyid_viewport'>viewport</span>
|
2173
2291
|
<span class='ivar'>@viewport</span>
|
@@ -2363,12 +2481,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2363
2481
|
<pre class="lines">
|
2364
2482
|
|
2365
2483
|
|
2366
|
-
|
2367
|
-
|
2368
|
-
|
2484
|
+
385
|
2485
|
+
386
|
2486
|
+
387</pre>
|
2369
2487
|
</td>
|
2370
2488
|
<td>
|
2371
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
2489
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 385</span>
|
2372
2490
|
|
2373
2491
|
<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>
|
2374
2492
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -2430,12 +2548,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2430
2548
|
<pre class="lines">
|
2431
2549
|
|
2432
2550
|
|
2433
|
-
|
2434
|
-
|
2435
|
-
|
2551
|
+
401
|
2552
|
+
402
|
2553
|
+
403</pre>
|
2436
2554
|
</td>
|
2437
2555
|
<td>
|
2438
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
2556
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 401</span>
|
2439
2557
|
|
2440
2558
|
<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>
|
2441
2559
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -2535,12 +2653,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2535
2653
|
<pre class="lines">
|
2536
2654
|
|
2537
2655
|
|
2538
|
-
|
2539
|
-
|
2540
|
-
|
2656
|
+
978
|
2657
|
+
979
|
2658
|
+
980</pre>
|
2541
2659
|
</td>
|
2542
2660
|
<td>
|
2543
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
2661
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 978</span>
|
2544
2662
|
|
2545
2663
|
<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>
|
2546
2664
|
<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>
|
@@ -2551,9 +2669,9 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2551
2669
|
</div>
|
2552
2670
|
|
2553
2671
|
<div class="method_details ">
|
2554
|
-
<h3 class="signature " id="
|
2672
|
+
<h3 class="signature " id="async_Seval-instance_method">
|
2555
2673
|
|
2556
|
-
#<strong>
|
2674
|
+
#<strong>async_Seval</strong> ⇒ <tt>Future</tt>
|
2557
2675
|
|
2558
2676
|
|
2559
2677
|
|
@@ -2562,6 +2680,8 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2562
2680
|
</h3><div class="docstring">
|
2563
2681
|
<div class="discussion">
|
2564
2682
|
|
2683
|
+
<p>`$eval()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
|
2684
|
+
|
2565
2685
|
|
2566
2686
|
</div>
|
2567
2687
|
</div>
|
@@ -2571,10 +2691,10 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2571
2691
|
|
2572
2692
|
<li>
|
2573
2693
|
|
2574
|
-
<span class='name'>
|
2694
|
+
<span class='name'>selector</span>
|
2575
2695
|
|
2576
2696
|
|
2577
|
-
<span class='type'>(<tt>
|
2697
|
+
<span class='type'>(<tt>String</tt>)</span>
|
2578
2698
|
|
2579
2699
|
|
2580
2700
|
|
@@ -2582,17 +2702,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2582
2702
|
|
2583
2703
|
<li>
|
2584
2704
|
|
2585
|
-
<span class='name'>
|
2586
|
-
|
2705
|
+
<span class='name'>page_function</span>
|
2587
2706
|
|
2588
|
-
<span class='type'>(<tt>string|nil</tt>)</span>
|
2589
2707
|
|
2708
|
+
<span class='type'>(<tt>String</tt>)</span>
|
2590
2709
|
|
2591
2710
|
|
2592
|
-
—
|
2593
|
-
<div class='inline'>
|
2594
|
-
<p>'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2'</p>
|
2595
|
-
</div>
|
2596
2711
|
|
2597
2712
|
</li>
|
2598
2713
|
|
@@ -2618,15 +2733,15 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2618
2733
|
<pre class="lines">
|
2619
2734
|
|
2620
2735
|
|
2621
|
-
|
2622
|
-
|
2623
|
-
|
2736
|
+
303
|
2737
|
+
304
|
2738
|
+
305</pre>
|
2624
2739
|
</td>
|
2625
2740
|
<td>
|
2626
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
2741
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 303</span>
|
2627
2742
|
|
2628
|
-
<span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier
|
2629
|
-
<span class='
|
2743
|
+
<span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_Seval'>async_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>
|
2744
|
+
<span class='const'><span class='object_link'><a href="#Seval-instance_method" title="Puppeteer::Page#Seval (method)">Seval</a></span></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>
|
2630
2745
|
<span class='kw'>end</span></pre>
|
2631
2746
|
</td>
|
2632
2747
|
</tr>
|
@@ -2634,9 +2749,9 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2634
2749
|
</div>
|
2635
2750
|
|
2636
2751
|
<div class="method_details ">
|
2637
|
-
<h3 class="signature " id="
|
2752
|
+
<h3 class="signature " id="async_SSeval-instance_method">
|
2638
2753
|
|
2639
|
-
#<strong>
|
2754
|
+
#<strong>async_SSeval</strong> ⇒ <tt>Future</tt>
|
2640
2755
|
|
2641
2756
|
|
2642
2757
|
|
@@ -2645,6 +2760,8 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2645
2760
|
</h3><div class="docstring">
|
2646
2761
|
<div class="discussion">
|
2647
2762
|
|
2763
|
+
<p>`$$eval()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
|
2764
|
+
|
2648
2765
|
|
2649
2766
|
</div>
|
2650
2767
|
</div>
|
@@ -2654,108 +2771,57 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2654
2771
|
|
2655
2772
|
<li>
|
2656
2773
|
|
2657
|
-
<span class='name'>
|
2658
|
-
|
2774
|
+
<span class='name'>selector</span>
|
2659
2775
|
|
2660
|
-
<span class='type'>(<tt>String?</tt>)</span>
|
2661
2776
|
|
2777
|
+
<span class='type'>(<tt>String</tt>)</span>
|
2662
2778
|
|
2663
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2664
2779
|
|
2665
2780
|
|
2666
2781
|
</li>
|
2667
2782
|
|
2668
2783
|
<li>
|
2669
2784
|
|
2670
|
-
<span class='name'>
|
2671
|
-
|
2785
|
+
<span class='name'>page_function</span>
|
2672
2786
|
|
2673
|
-
<span class='type'>(<tt>String?</tt>)</span>
|
2674
2787
|
|
2788
|
+
<span class='type'>(<tt>String</tt>)</span>
|
2675
2789
|
|
2676
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2677
2790
|
|
2678
2791
|
|
2679
2792
|
</li>
|
2680
2793
|
|
2681
2794
|
</ul>
|
2682
2795
|
|
2683
|
-
|
2684
|
-
|
2685
|
-
<tr>
|
2686
|
-
<td>
|
2687
|
-
<pre class="lines">
|
2688
|
-
|
2689
|
-
|
2690
|
-
411
|
2691
|
-
412
|
2692
|
-
413</pre>
|
2693
|
-
</td>
|
2694
|
-
<td>
|
2695
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 411</span>
|
2696
|
-
|
2697
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_authenticate'>authenticate</span><span class='lparen'>(</span><span class='label'>username:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>password:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
2698
|
-
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_authenticate'>authenticate</span><span class='lparen'>(</span><span class='label'>username:</span> <span class='id identifier rubyid_username'>username</span><span class='comma'>,</span> <span class='label'>password:</span> <span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
|
2699
|
-
<span class='kw'>end</span></pre>
|
2700
|
-
</td>
|
2701
|
-
</tr>
|
2702
|
-
</table>
|
2703
|
-
</div>
|
2704
|
-
|
2705
|
-
<div class="method_details ">
|
2706
|
-
<h3 class="signature " id="browser-instance_method">
|
2707
|
-
|
2708
|
-
#<strong>browser</strong> ⇒ <tt>Object</tt>
|
2709
|
-
|
2710
|
-
|
2711
|
-
|
2712
|
-
|
2713
|
-
|
2714
|
-
</h3><table class="source_code">
|
2715
|
-
<tr>
|
2716
|
-
<td>
|
2717
|
-
<pre class="lines">
|
2718
|
-
|
2719
|
-
|
2720
|
-
178
|
2721
|
-
179
|
2722
|
-
180</pre>
|
2723
|
-
</td>
|
2724
|
-
<td>
|
2725
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 178</span>
|
2726
|
-
|
2727
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_browser'>browser</span>
|
2728
|
-
<span class='ivar'>@target</span><span class='period'>.</span><span class='id identifier rubyid_browser'>browser</span>
|
2729
|
-
<span class='kw'>end</span></pre>
|
2730
|
-
</td>
|
2731
|
-
</tr>
|
2732
|
-
</table>
|
2733
|
-
</div>
|
2734
|
-
|
2735
|
-
<div class="method_details ">
|
2736
|
-
<h3 class="signature " id="browser_context-instance_method">
|
2737
|
-
|
2738
|
-
#<strong>browser_context</strong> ⇒ <tt>Object</tt>
|
2796
|
+
<p class="tag_title">Returns:</p>
|
2797
|
+
<ul class="return">
|
2739
2798
|
|
2740
|
-
|
2799
|
+
<li>
|
2800
|
+
|
2801
|
+
|
2802
|
+
<span class='type'>(<tt>Future</tt>)</span>
|
2803
|
+
|
2804
|
+
|
2805
|
+
|
2806
|
+
</li>
|
2741
2807
|
|
2808
|
+
</ul>
|
2742
2809
|
|
2743
|
-
|
2744
|
-
</h3><table class="source_code">
|
2810
|
+
</div><table class="source_code">
|
2745
2811
|
<tr>
|
2746
2812
|
<td>
|
2747
2813
|
<pre class="lines">
|
2748
2814
|
|
2749
2815
|
|
2750
|
-
|
2751
|
-
|
2752
|
-
|
2816
|
+
319
|
2817
|
+
320
|
2818
|
+
321</pre>
|
2753
2819
|
</td>
|
2754
2820
|
<td>
|
2755
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
2821
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 319</span>
|
2756
2822
|
|
2757
|
-
<span class='kw'>def</span> <span class='id identifier
|
2758
|
-
<span class='
|
2823
|
+
<span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_SSeval'>async_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>
|
2824
|
+
<span class='const'><span class='object_link'><a href="#SSeval-instance_method" title="Puppeteer::Page#SSeval (method)">SSeval</a></span></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>
|
2759
2825
|
<span class='kw'>end</span></pre>
|
2760
2826
|
</td>
|
2761
2827
|
</tr>
|
@@ -2763,9 +2829,9 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2763
2829
|
</div>
|
2764
2830
|
|
2765
2831
|
<div class="method_details ">
|
2766
|
-
<h3 class="signature " id="
|
2832
|
+
<h3 class="signature " id="async_wait_for_file_chooser-instance_method">
|
2767
2833
|
|
2768
|
-
#<strong>
|
2834
|
+
#<strong>async_wait_for_file_chooser</strong> ⇒ <tt>Future<<span class='object_link'><a href="FileChooser.html" title="Puppeteer::FileChooser (class)">Puppeteer::FileChooser</a></span>></tt>
|
2769
2835
|
|
2770
2836
|
|
2771
2837
|
|
@@ -2783,10 +2849,10 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2783
2849
|
|
2784
2850
|
<li>
|
2785
2851
|
|
2786
|
-
<span class='name'>
|
2852
|
+
<span class='name'>timeout</span>
|
2787
2853
|
|
2788
2854
|
|
2789
|
-
<span class='type'>(<tt>
|
2855
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
2790
2856
|
|
2791
2857
|
|
2792
2858
|
|
@@ -2794,6 +2860,19 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2794
2860
|
|
2795
2861
|
</ul>
|
2796
2862
|
|
2863
|
+
<p class="tag_title">Returns:</p>
|
2864
|
+
<ul class="return">
|
2865
|
+
|
2866
|
+
<li>
|
2867
|
+
|
2868
|
+
|
2869
|
+
<span class='type'>(<tt>Future<<span class='object_link'><a href="FileChooser.html" title="Puppeteer::FileChooser (class)">Puppeteer::FileChooser</a></span>></tt>)</span>
|
2870
|
+
|
2871
|
+
|
2872
|
+
|
2873
|
+
</li>
|
2874
|
+
|
2875
|
+
</ul>
|
2797
2876
|
|
2798
2877
|
</div><table class="source_code">
|
2799
2878
|
<tr>
|
@@ -2801,15 +2880,15 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2801
2880
|
<pre class="lines">
|
2802
2881
|
|
2803
2882
|
|
2804
|
-
|
2805
|
-
|
2806
|
-
|
2883
|
+
171
|
2884
|
+
172
|
2885
|
+
173</pre>
|
2807
2886
|
</td>
|
2808
2887
|
<td>
|
2809
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
2888
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 171</span>
|
2810
2889
|
|
2811
|
-
<span class='kw'>def</span> <span class='id identifier
|
2812
|
-
<span class='
|
2890
|
+
<span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_wait_for_file_chooser'>async_wait_for_file_chooser</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
2891
|
+
<span class='id identifier rubyid_wait_for_file_chooser'>wait_for_file_chooser</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
|
2813
2892
|
<span class='kw'>end</span></pre>
|
2814
2893
|
</td>
|
2815
2894
|
</tr>
|
@@ -2817,9 +2896,9 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2817
2896
|
</div>
|
2818
2897
|
|
2819
2898
|
<div class="method_details ">
|
2820
|
-
<h3 class="signature " id="
|
2899
|
+
<h3 class="signature " id="async_wait_for_navigation-instance_method">
|
2821
2900
|
|
2822
|
-
#<strong>
|
2901
|
+
#<strong>async_wait_for_navigation</strong> ⇒ <tt>Future</tt>
|
2823
2902
|
|
2824
2903
|
|
2825
2904
|
|
@@ -2837,10 +2916,10 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2837
2916
|
|
2838
2917
|
<li>
|
2839
2918
|
|
2840
|
-
<span class='name'>
|
2919
|
+
<span class='name'>timeout</span>
|
2841
2920
|
|
2842
2921
|
|
2843
|
-
<span class='type'>(<tt>
|
2922
|
+
<span class='type'>(<tt>number|nil</tt>)</span>
|
2844
2923
|
|
2845
2924
|
|
2846
2925
|
|
@@ -2848,21 +2927,287 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2848
2927
|
|
2849
2928
|
<li>
|
2850
2929
|
|
2851
|
-
<span class='name'>
|
2930
|
+
<span class='name'>wait_until</span>
|
2852
2931
|
|
2853
2932
|
|
2854
|
-
<span class='type'>(<tt>
|
2933
|
+
<span class='type'>(<tt>string|nil</tt>)</span>
|
2855
2934
|
|
2856
2935
|
|
2857
|
-
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2858
2936
|
|
2937
|
+
—
|
2938
|
+
<div class='inline'>
|
2939
|
+
<p>'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2'</p>
|
2940
|
+
</div>
|
2859
2941
|
|
2860
2942
|
</li>
|
2861
2943
|
|
2862
|
-
|
2863
|
-
|
2864
|
-
|
2865
|
-
|
2944
|
+
</ul>
|
2945
|
+
|
2946
|
+
<p class="tag_title">Returns:</p>
|
2947
|
+
<ul class="return">
|
2948
|
+
|
2949
|
+
<li>
|
2950
|
+
|
2951
|
+
|
2952
|
+
<span class='type'>(<tt>Future</tt>)</span>
|
2953
|
+
|
2954
|
+
|
2955
|
+
|
2956
|
+
</li>
|
2957
|
+
|
2958
|
+
</ul>
|
2959
|
+
|
2960
|
+
</div><table class="source_code">
|
2961
|
+
<tr>
|
2962
|
+
<td>
|
2963
|
+
<pre class="lines">
|
2964
|
+
|
2965
|
+
|
2966
|
+
660
|
2967
|
+
661
|
2968
|
+
662</pre>
|
2969
|
+
</td>
|
2970
|
+
<td>
|
2971
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 660</span>
|
2972
|
+
|
2973
|
+
<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>
|
2974
|
+
<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>
|
2975
|
+
<span class='kw'>end</span></pre>
|
2976
|
+
</td>
|
2977
|
+
</tr>
|
2978
|
+
</table>
|
2979
|
+
</div>
|
2980
|
+
|
2981
|
+
<div class="method_details ">
|
2982
|
+
<h3 class="signature " id="authenticate-instance_method">
|
2983
|
+
|
2984
|
+
#<strong>authenticate</strong>(username: nil, password: nil) ⇒ <tt>Object</tt>
|
2985
|
+
|
2986
|
+
|
2987
|
+
|
2988
|
+
|
2989
|
+
|
2990
|
+
</h3><div class="docstring">
|
2991
|
+
<div class="discussion">
|
2992
|
+
|
2993
|
+
|
2994
|
+
</div>
|
2995
|
+
</div>
|
2996
|
+
<div class="tags">
|
2997
|
+
<p class="tag_title">Parameters:</p>
|
2998
|
+
<ul class="param">
|
2999
|
+
|
3000
|
+
<li>
|
3001
|
+
|
3002
|
+
<span class='name'>username</span>
|
3003
|
+
|
3004
|
+
|
3005
|
+
<span class='type'>(<tt>String?</tt>)</span>
|
3006
|
+
|
3007
|
+
|
3008
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
3009
|
+
|
3010
|
+
|
3011
|
+
</li>
|
3012
|
+
|
3013
|
+
<li>
|
3014
|
+
|
3015
|
+
<span class='name'>password</span>
|
3016
|
+
|
3017
|
+
|
3018
|
+
<span class='type'>(<tt>String?</tt>)</span>
|
3019
|
+
|
3020
|
+
|
3021
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
3022
|
+
|
3023
|
+
|
3024
|
+
</li>
|
3025
|
+
|
3026
|
+
</ul>
|
3027
|
+
|
3028
|
+
|
3029
|
+
</div><table class="source_code">
|
3030
|
+
<tr>
|
3031
|
+
<td>
|
3032
|
+
<pre class="lines">
|
3033
|
+
|
3034
|
+
|
3035
|
+
439
|
3036
|
+
440
|
3037
|
+
441</pre>
|
3038
|
+
</td>
|
3039
|
+
<td>
|
3040
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 439</span>
|
3041
|
+
|
3042
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_authenticate'>authenticate</span><span class='lparen'>(</span><span class='label'>username:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>password:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
3043
|
+
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_authenticate'>authenticate</span><span class='lparen'>(</span><span class='label'>username:</span> <span class='id identifier rubyid_username'>username</span><span class='comma'>,</span> <span class='label'>password:</span> <span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
|
3044
|
+
<span class='kw'>end</span></pre>
|
3045
|
+
</td>
|
3046
|
+
</tr>
|
3047
|
+
</table>
|
3048
|
+
</div>
|
3049
|
+
|
3050
|
+
<div class="method_details ">
|
3051
|
+
<h3 class="signature " id="browser-instance_method">
|
3052
|
+
|
3053
|
+
#<strong>browser</strong> ⇒ <tt>Object</tt>
|
3054
|
+
|
3055
|
+
|
3056
|
+
|
3057
|
+
|
3058
|
+
|
3059
|
+
</h3><table class="source_code">
|
3060
|
+
<tr>
|
3061
|
+
<td>
|
3062
|
+
<pre class="lines">
|
3063
|
+
|
3064
|
+
|
3065
|
+
192
|
3066
|
+
193
|
3067
|
+
194</pre>
|
3068
|
+
</td>
|
3069
|
+
<td>
|
3070
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 192</span>
|
3071
|
+
|
3072
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_browser'>browser</span>
|
3073
|
+
<span class='ivar'>@target</span><span class='period'>.</span><span class='id identifier rubyid_browser'>browser</span>
|
3074
|
+
<span class='kw'>end</span></pre>
|
3075
|
+
</td>
|
3076
|
+
</tr>
|
3077
|
+
</table>
|
3078
|
+
</div>
|
3079
|
+
|
3080
|
+
<div class="method_details ">
|
3081
|
+
<h3 class="signature " id="browser_context-instance_method">
|
3082
|
+
|
3083
|
+
#<strong>browser_context</strong> ⇒ <tt>Object</tt>
|
3084
|
+
|
3085
|
+
|
3086
|
+
|
3087
|
+
|
3088
|
+
|
3089
|
+
</h3><table class="source_code">
|
3090
|
+
<tr>
|
3091
|
+
<td>
|
3092
|
+
<pre class="lines">
|
3093
|
+
|
3094
|
+
|
3095
|
+
196
|
3096
|
+
197
|
3097
|
+
198</pre>
|
3098
|
+
</td>
|
3099
|
+
<td>
|
3100
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 196</span>
|
3101
|
+
|
3102
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_browser_context'>browser_context</span>
|
3103
|
+
<span class='ivar'>@target</span><span class='period'>.</span><span class='id identifier rubyid_browser_context'>browser_context</span>
|
3104
|
+
<span class='kw'>end</span></pre>
|
3105
|
+
</td>
|
3106
|
+
</tr>
|
3107
|
+
</table>
|
3108
|
+
</div>
|
3109
|
+
|
3110
|
+
<div class="method_details ">
|
3111
|
+
<h3 class="signature " id="cache_enabled=-instance_method">
|
3112
|
+
|
3113
|
+
#<strong>cache_enabled=</strong>(enabled) ⇒ <tt>Object</tt>
|
3114
|
+
|
3115
|
+
|
3116
|
+
|
3117
|
+
|
3118
|
+
|
3119
|
+
</h3><div class="docstring">
|
3120
|
+
<div class="discussion">
|
3121
|
+
|
3122
|
+
|
3123
|
+
</div>
|
3124
|
+
</div>
|
3125
|
+
<div class="tags">
|
3126
|
+
<p class="tag_title">Parameters:</p>
|
3127
|
+
<ul class="param">
|
3128
|
+
|
3129
|
+
<li>
|
3130
|
+
|
3131
|
+
<span class='name'>enabled</span>
|
3132
|
+
|
3133
|
+
|
3134
|
+
<span class='type'>(<tt>boolean</tt>)</span>
|
3135
|
+
|
3136
|
+
|
3137
|
+
|
3138
|
+
</li>
|
3139
|
+
|
3140
|
+
</ul>
|
3141
|
+
|
3142
|
+
|
3143
|
+
</div><table class="source_code">
|
3144
|
+
<tr>
|
3145
|
+
<td>
|
3146
|
+
<pre class="lines">
|
3147
|
+
|
3148
|
+
|
3149
|
+
805
|
3150
|
+
806
|
3151
|
+
807</pre>
|
3152
|
+
</td>
|
3153
|
+
<td>
|
3154
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 805</span>
|
3155
|
+
|
3156
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cache_enabled='>cache_enabled=</span><span class='lparen'>(</span><span class='id identifier rubyid_enabled'>enabled</span><span class='rparen'>)</span>
|
3157
|
+
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_cache_enabled'>cache_enabled</span> <span class='op'>=</span> <span class='id identifier rubyid_enabled'>enabled</span>
|
3158
|
+
<span class='kw'>end</span></pre>
|
3159
|
+
</td>
|
3160
|
+
</tr>
|
3161
|
+
</table>
|
3162
|
+
</div>
|
3163
|
+
|
3164
|
+
<div class="method_details ">
|
3165
|
+
<h3 class="signature " id="click-instance_method">
|
3166
|
+
|
3167
|
+
#<strong>click</strong>(selector, delay: nil, button: nil, click_count: nil) ⇒ <tt>Object</tt>
|
3168
|
+
|
3169
|
+
|
3170
|
+
|
3171
|
+
|
3172
|
+
|
3173
|
+
</h3><div class="docstring">
|
3174
|
+
<div class="discussion">
|
3175
|
+
|
3176
|
+
|
3177
|
+
</div>
|
3178
|
+
</div>
|
3179
|
+
<div class="tags">
|
3180
|
+
<p class="tag_title">Parameters:</p>
|
3181
|
+
<ul class="param">
|
3182
|
+
|
3183
|
+
<li>
|
3184
|
+
|
3185
|
+
<span class='name'>selector</span>
|
3186
|
+
|
3187
|
+
|
3188
|
+
<span class='type'>(<tt>String</tt>)</span>
|
3189
|
+
|
3190
|
+
|
3191
|
+
|
3192
|
+
</li>
|
3193
|
+
|
3194
|
+
<li>
|
3195
|
+
|
3196
|
+
<span class='name'>delay</span>
|
3197
|
+
|
3198
|
+
|
3199
|
+
<span class='type'>(<tt>Number</tt>)</span>
|
3200
|
+
|
3201
|
+
|
3202
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
3203
|
+
|
3204
|
+
|
3205
|
+
</li>
|
3206
|
+
|
3207
|
+
<li>
|
3208
|
+
|
3209
|
+
<span class='name'>button</span>
|
3210
|
+
|
2866
3211
|
|
2867
3212
|
<span class='type'>(<tt>String</tt>)</span>
|
2868
3213
|
|
@@ -2899,12 +3244,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2899
3244
|
<pre class="lines">
|
2900
3245
|
|
2901
3246
|
|
2902
|
-
|
2903
|
-
|
2904
|
-
|
3247
|
+
969
|
3248
|
+
970
|
3249
|
+
971</pre>
|
2905
3250
|
</td>
|
2906
3251
|
<td>
|
2907
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
3252
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 969</span>
|
2908
3253
|
|
2909
3254
|
<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>
|
2910
3255
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -2953,19 +3298,19 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
2953
3298
|
<pre class="lines">
|
2954
3299
|
|
2955
3300
|
|
2956
|
-
|
2957
|
-
|
2958
|
-
|
2959
|
-
|
2960
|
-
|
2961
|
-
|
2962
|
-
|
2963
|
-
|
2964
|
-
|
2965
|
-
|
3301
|
+
947
|
3302
|
+
948
|
3303
|
+
949
|
3304
|
+
950
|
3305
|
+
951
|
3306
|
+
952
|
3307
|
+
953
|
3308
|
+
954
|
3309
|
+
955
|
3310
|
+
956</pre>
|
2966
3311
|
</td>
|
2967
3312
|
<td>
|
2968
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
3313
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 947</span>
|
2969
3314
|
|
2970
3315
|
<span class='kw'>def</span> <span class='id identifier rubyid_close'>close</span>
|
2971
3316
|
<span class='comment'># assert(!!this._client._connection, 'Protocol error: Connection closed. Most likely the page has been closed.');
|
@@ -3019,12 +3364,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3019
3364
|
<pre class="lines">
|
3020
3365
|
|
3021
3366
|
|
3022
|
-
|
3023
|
-
|
3024
|
-
|
3367
|
+
959
|
3368
|
+
960
|
3369
|
+
961</pre>
|
3025
3370
|
</td>
|
3026
3371
|
<td>
|
3027
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
3372
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 959</span>
|
3028
3373
|
|
3029
3374
|
<span class='kw'>def</span> <span class='id identifier rubyid_closed?'>closed?</span>
|
3030
3375
|
<span class='ivar'>@closed</span>
|
@@ -3071,12 +3416,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3071
3416
|
<pre class="lines">
|
3072
3417
|
|
3073
3418
|
|
3074
|
-
|
3075
|
-
|
3076
|
-
|
3419
|
+
618
|
3420
|
+
619
|
3421
|
+
620</pre>
|
3077
3422
|
</td>
|
3078
3423
|
<td>
|
3079
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
3424
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 618</span>
|
3080
3425
|
|
3081
3426
|
<span class='kw'>def</span> <span class='id identifier rubyid_content'>content</span>
|
3082
3427
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span>
|
@@ -3125,12 +3470,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3125
3470
|
<pre class="lines">
|
3126
3471
|
|
3127
3472
|
|
3128
|
-
|
3129
|
-
|
3130
|
-
|
3473
|
+
629
|
3474
|
+
630
|
3475
|
+
631</pre>
|
3131
3476
|
</td>
|
3132
3477
|
<td>
|
3133
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
3478
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 629</span>
|
3134
3479
|
|
3135
3480
|
<span class='kw'>def</span> <span class='id identifier rubyid_content='>content=</span><span class='lparen'>(</span><span class='id identifier rubyid_html'>html</span><span class='rparen'>)</span>
|
3136
3481
|
<span class='id identifier rubyid_main_frame'>main_frame</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='rparen'>)</span>
|
@@ -3179,12 +3524,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3179
3524
|
<pre class="lines">
|
3180
3525
|
|
3181
3526
|
|
3182
|
-
|
3183
|
-
|
3184
|
-
|
3527
|
+
253
|
3528
|
+
254
|
3529
|
+
255</pre>
|
3185
3530
|
</td>
|
3186
3531
|
<td>
|
3187
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
3532
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 253</span>
|
3188
3533
|
|
3189
3534
|
<span class='kw'>def</span> <span class='id identifier rubyid_default_navigation_timeout='>default_navigation_timeout=</span><span class='lparen'>(</span><span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
|
3190
3535
|
<span class='ivar'>@timeout_settings</span><span class='period'>.</span><span class='id identifier rubyid_default_navigation_timeout'>default_navigation_timeout</span> <span class='op'>=</span> <span class='id identifier rubyid_timeout'>timeout</span>
|
@@ -3233,12 +3578,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3233
3578
|
<pre class="lines">
|
3234
3579
|
|
3235
3580
|
|
3236
|
-
|
3237
|
-
|
3238
|
-
|
3581
|
+
258
|
3582
|
+
259
|
3583
|
+
260</pre>
|
3239
3584
|
</td>
|
3240
3585
|
<td>
|
3241
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
3586
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 258</span>
|
3242
3587
|
|
3243
3588
|
<span class='kw'>def</span> <span class='id identifier rubyid_default_timeout='>default_timeout=</span><span class='lparen'>(</span><span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
|
3244
3589
|
<span class='ivar'>@timeout_settings</span><span class='period'>.</span><span class='id identifier rubyid_default_timeout'>default_timeout</span> <span class='op'>=</span> <span class='id identifier rubyid_timeout'>timeout</span>
|
@@ -3287,13 +3632,13 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3287
3632
|
<pre class="lines">
|
3288
3633
|
|
3289
3634
|
|
3290
|
-
|
3291
|
-
|
3292
|
-
|
3293
|
-
|
3635
|
+
725
|
3636
|
+
726
|
3637
|
+
727
|
3638
|
+
728</pre>
|
3294
3639
|
</td>
|
3295
3640
|
<td>
|
3296
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
3641
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 725</span>
|
3297
3642
|
|
3298
3643
|
<span class='kw'>def</span> <span class='id identifier rubyid_emulate'>emulate</span><span class='lparen'>(</span><span class='id identifier rubyid_device'>device</span><span class='rparen'>)</span>
|
3299
3644
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_viewport'>viewport</span> <span class='op'>=</span> <span class='id identifier rubyid_device'>device</span><span class='period'>.</span><span class='id identifier rubyid_viewport'>viewport</span>
|
@@ -3343,18 +3688,18 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3343
3688
|
<pre class="lines">
|
3344
3689
|
|
3345
3690
|
|
3346
|
-
|
3347
|
-
|
3348
|
-
|
3349
|
-
|
3350
|
-
|
3351
|
-
|
3352
|
-
|
3353
|
-
|
3354
|
-
|
3691
|
+
769
|
3692
|
+
770
|
3693
|
+
771
|
3694
|
+
772
|
3695
|
+
773
|
3696
|
+
774
|
3697
|
+
775
|
3698
|
+
776
|
3699
|
+
777</pre>
|
3355
3700
|
</td>
|
3356
3701
|
<td>
|
3357
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
3702
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 769</span>
|
3358
3703
|
|
3359
3704
|
<span class='kw'>def</span> <span class='id identifier rubyid_emulate_timezone'>emulate_timezone</span><span class='lparen'>(</span><span class='id identifier rubyid_timezone_id'>timezone_id</span><span class='rparen'>)</span>
|
3360
3705
|
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_send_message'>send_message</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Emulation.setTimezoneOverride</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>timezoneId:</span> <span class='id identifier rubyid_timezoneId'>timezoneId</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
@@ -3433,12 +3778,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3433
3778
|
<pre class="lines">
|
3434
3779
|
|
3435
3780
|
|
3436
|
-
|
3437
|
-
|
3438
|
-
|
3781
|
+
791
|
3782
|
+
792
|
3783
|
+
793</pre>
|
3439
3784
|
</td>
|
3440
3785
|
<td>
|
3441
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
3786
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 791</span>
|
3442
3787
|
|
3443
3788
|
<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>
|
3444
3789
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -3511,13 +3856,13 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3511
3856
|
<pre class="lines">
|
3512
3857
|
|
3513
3858
|
|
3514
|
-
|
3515
|
-
|
3516
|
-
|
3517
|
-
|
3859
|
+
279
|
3860
|
+
280
|
3861
|
+
281
|
3862
|
+
282</pre>
|
3518
3863
|
</td>
|
3519
3864
|
<td>
|
3520
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
3865
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 279</span>
|
3521
3866
|
|
3522
3867
|
<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>
|
3523
3868
|
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span>
|
@@ -3567,12 +3912,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3567
3912
|
<pre class="lines">
|
3568
3913
|
|
3569
3914
|
|
3570
|
-
|
3571
|
-
|
3572
|
-
|
3915
|
+
444
|
3916
|
+
445
|
3917
|
+
446</pre>
|
3573
3918
|
</td>
|
3574
3919
|
<td>
|
3575
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
3920
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 444</span>
|
3576
3921
|
|
3577
3922
|
<span class='kw'>def</span> <span class='id identifier rubyid_extra_http_headers='>extra_http_headers=</span><span class='lparen'>(</span><span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
|
3578
3923
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_extra_http_headers'>extra_http_headers</span> <span class='op'>=</span> <span class='id identifier rubyid_headers'>headers</span>
|
@@ -3621,12 +3966,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3621
3966
|
<pre class="lines">
|
3622
3967
|
|
3623
3968
|
|
3624
|
-
|
3625
|
-
|
3626
|
-
|
3969
|
+
983
|
3970
|
+
984
|
3971
|
+
985</pre>
|
3627
3972
|
</td>
|
3628
3973
|
<td>
|
3629
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
3974
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 983</span>
|
3630
3975
|
|
3631
3976
|
<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>
|
3632
3977
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -3651,12 +3996,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3651
3996
|
<pre class="lines">
|
3652
3997
|
|
3653
3998
|
|
3654
|
-
|
3655
|
-
|
3656
|
-
|
3999
|
+
235
|
4000
|
+
236
|
4001
|
+
237</pre>
|
3657
4002
|
</td>
|
3658
4003
|
<td>
|
3659
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
4004
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 235</span>
|
3660
4005
|
|
3661
4006
|
<span class='kw'>def</span> <span class='id identifier rubyid_frames'>frames</span>
|
3662
4007
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_frames'>frames</span>
|
@@ -3725,12 +4070,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3725
4070
|
<pre class="lines">
|
3726
4071
|
|
3727
4072
|
|
3728
|
-
|
3729
|
-
|
3730
|
-
|
4073
|
+
702
|
4074
|
+
703
|
4075
|
+
704</pre>
|
3731
4076
|
</td>
|
3732
4077
|
<td>
|
3733
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
4078
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 702</span>
|
3734
4079
|
|
3735
4080
|
<span class='kw'>def</span> <span class='id identifier rubyid_go_back'>go_back</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>
|
3736
4081
|
<span class='id identifier rubyid_go'>go</span><span class='lparen'>(</span><span class='op'>-</span><span class='int'>1</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>
|
@@ -3799,12 +4144,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3799
4144
|
<pre class="lines">
|
3800
4145
|
|
3801
4146
|
|
3802
|
-
|
3803
|
-
|
3804
|
-
|
4147
|
+
708
|
4148
|
+
709
|
4149
|
+
710</pre>
|
3805
4150
|
</td>
|
3806
4151
|
<td>
|
3807
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
4152
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 708</span>
|
3808
4153
|
|
3809
4154
|
<span class='kw'>def</span> <span class='id identifier rubyid_go_forward'>go_forward</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>
|
3810
4155
|
<span class='id identifier rubyid_go'>go</span><span class='lparen'>(</span><span class='int'>+1</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>
|
@@ -3883,27 +4228,77 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3883
4228
|
<div class='inline'>
|
3884
4229
|
<p>'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2'</p>
|
3885
4230
|
</div>
|
3886
|
-
|
3887
|
-
</li>
|
4231
|
+
|
4232
|
+
</li>
|
4233
|
+
|
4234
|
+
</ul>
|
4235
|
+
|
4236
|
+
|
4237
|
+
</div><table class="source_code">
|
4238
|
+
<tr>
|
4239
|
+
<td>
|
4240
|
+
<pre class="lines">
|
4241
|
+
|
4242
|
+
|
4243
|
+
637
|
4244
|
+
638
|
4245
|
+
639</pre>
|
4246
|
+
</td>
|
4247
|
+
<td>
|
4248
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 637</span>
|
4249
|
+
|
4250
|
+
<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>
|
4251
|
+
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</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='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>
|
4252
|
+
<span class='kw'>end</span></pre>
|
4253
|
+
</td>
|
4254
|
+
</tr>
|
4255
|
+
</table>
|
4256
|
+
</div>
|
4257
|
+
|
4258
|
+
<div class="method_details ">
|
4259
|
+
<h3 class="signature " id="handle_file_chooser-instance_method">
|
4260
|
+
|
4261
|
+
#<strong>handle_file_chooser</strong>(event) ⇒ <tt>Object</tt>
|
3888
4262
|
|
3889
|
-
</ul>
|
3890
4263
|
|
4264
|
+
|
3891
4265
|
|
3892
|
-
|
4266
|
+
|
4267
|
+
</h3><table class="source_code">
|
3893
4268
|
<tr>
|
3894
4269
|
<td>
|
3895
4270
|
<pre class="lines">
|
3896
4271
|
|
3897
4272
|
|
3898
|
-
|
3899
|
-
|
3900
|
-
|
4273
|
+
127
|
4274
|
+
128
|
4275
|
+
129
|
4276
|
+
130
|
4277
|
+
131
|
4278
|
+
132
|
4279
|
+
133
|
4280
|
+
134
|
4281
|
+
135
|
4282
|
+
136
|
4283
|
+
137
|
4284
|
+
138
|
4285
|
+
139</pre>
|
3901
4286
|
</td>
|
3902
4287
|
<td>
|
3903
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
3904
|
-
|
3905
|
-
<span class='kw'>def</span> <span class='id identifier
|
3906
|
-
<span class='
|
4288
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 127</span>
|
4289
|
+
|
4290
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_handle_file_chooser'>handle_file_chooser</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span>
|
4291
|
+
<span class='kw'>return</span> <span class='kw'>if</span> <span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
4292
|
+
|
4293
|
+
<span class='id identifier rubyid_frame'>frame</span> <span class='op'>=</span> <span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_frame'>frame</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>frameId</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
4294
|
+
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_frame'>frame</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span>
|
4295
|
+
<span class='id identifier rubyid_element'>element</span> <span class='op'>=</span> <span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier rubyid_adopt_backend_node_id'>adopt_backend_node_id</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>backendNodeId</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
4296
|
+
<span class='id identifier rubyid_interceptors'>interceptors</span> <span class='op'>=</span> <span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span>
|
4297
|
+
<span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_clear'>clear</span>
|
4298
|
+
<span class='id identifier rubyid_file_chooser'>file_chooser</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="FileChooser.html" title="Puppeteer::FileChooser (class)">FileChooser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="FileChooser.html#initialize-instance_method" title="Puppeteer::FileChooser#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_element'>element</span><span class='comma'>,</span> <span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span>
|
4299
|
+
<span class='id identifier rubyid_interceptors'>interceptors</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_promise'>promise</span><span class='op'>|</span>
|
4300
|
+
<span class='id identifier rubyid_promise'>promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</span><span class='id identifier rubyid_file_chooser'>file_chooser</span><span class='rparen'>)</span>
|
4301
|
+
<span class='kw'>end</span>
|
3907
4302
|
<span class='kw'>end</span></pre>
|
3908
4303
|
</td>
|
3909
4304
|
</tr>
|
@@ -3949,12 +4344,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3949
4344
|
<pre class="lines">
|
3950
4345
|
|
3951
4346
|
|
3952
|
-
|
3953
|
-
|
3954
|
-
|
4347
|
+
988
|
4348
|
+
989
|
4349
|
+
990</pre>
|
3955
4350
|
</td>
|
3956
4351
|
<td>
|
3957
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
4352
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 988</span>
|
3958
4353
|
|
3959
4354
|
<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>
|
3960
4355
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -3979,17 +4374,17 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
3979
4374
|
<pre class="lines">
|
3980
4375
|
|
3981
4376
|
|
3982
|
-
116
|
3983
|
-
117
|
3984
4377
|
118
|
3985
4378
|
119
|
3986
4379
|
120
|
3987
4380
|
121
|
3988
4381
|
122
|
3989
|
-
123
|
4382
|
+
123
|
4383
|
+
124
|
4384
|
+
125</pre>
|
3990
4385
|
</td>
|
3991
4386
|
<td>
|
3992
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
4387
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 118</span>
|
3993
4388
|
|
3994
4389
|
<span class='kw'>def</span> <span class='id identifier rubyid_init'>init</span>
|
3995
4390
|
<span class='id identifier rubyid_await_all'><span class='object_link'><a href="ConcurrentRubyUtils.html#await_all-instance_method" title="Puppeteer::ConcurrentRubyUtils#await_all (method)">await_all</a></span></span><span class='lparen'>(</span>
|
@@ -4019,12 +4414,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4019
4414
|
<pre class="lines">
|
4020
4415
|
|
4021
4416
|
|
4022
|
-
|
4023
|
-
|
4024
|
-
|
4417
|
+
229
|
4418
|
+
230
|
4419
|
+
231</pre>
|
4025
4420
|
</td>
|
4026
4421
|
<td>
|
4027
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
4422
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 229</span>
|
4028
4423
|
|
4029
4424
|
<span class='kw'>def</span> <span class='id identifier rubyid_main_frame'>main_frame</span>
|
4030
4425
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_main_frame'>main_frame</span>
|
@@ -4049,12 +4444,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4049
4444
|
<pre class="lines">
|
4050
4445
|
|
4051
4446
|
|
4052
|
-
|
4053
|
-
|
4054
|
-
|
4447
|
+
248
|
4448
|
+
249
|
4449
|
+
250</pre>
|
4055
4450
|
</td>
|
4056
4451
|
<td>
|
4057
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
4452
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 248</span>
|
4058
4453
|
|
4059
4454
|
<span class='kw'>def</span> <span class='id identifier rubyid_offline_mode='>offline_mode=</span><span class='lparen'>(</span><span class='id identifier rubyid_enabled'>enabled</span><span class='rparen'>)</span>
|
4060
4455
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_offline_mode'>offline_mode</span> <span class='op'>=</span> <span class='id identifier rubyid_enabled'>enabled</span>
|
@@ -4116,13 +4511,13 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4116
4511
|
<pre class="lines">
|
4117
4512
|
|
4118
4513
|
|
4119
|
-
|
4120
|
-
|
4121
|
-
|
4122
|
-
|
4514
|
+
286
|
4515
|
+
287
|
4516
|
+
288
|
4517
|
+
289</pre>
|
4123
4518
|
</td>
|
4124
4519
|
<td>
|
4125
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
4520
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 286</span>
|
4126
4521
|
|
4127
4522
|
<span class='kw'>def</span> <span class='id identifier rubyid_query_objects'>query_objects</span><span class='lparen'>(</span><span class='id identifier rubyid_prototype_handle'>prototype_handle</span><span class='rparen'>)</span>
|
4128
4523
|
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span>
|
@@ -4136,7 +4531,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4136
4531
|
<div class="method_details ">
|
4137
4532
|
<h3 class="signature " id="reload-instance_method">
|
4138
4533
|
|
4139
|
-
#<strong>reload</strong>(timeout: nil, wait_until: nil) ⇒ <tt
|
4534
|
+
#<strong>reload</strong>(timeout: nil, wait_until: nil) ⇒ <tt>Puppeteer::Response</tt>
|
4140
4535
|
|
4141
4536
|
|
4142
4537
|
|
@@ -4154,12 +4549,32 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4154
4549
|
|
4155
4550
|
<li>
|
4156
4551
|
|
4157
|
-
<span class='name'>
|
4552
|
+
<span class='name'>timeout</span>
|
4158
4553
|
|
4159
4554
|
|
4160
|
-
<span class='type'>(<tt
|
4555
|
+
<span class='type'>(<tt>number|nil</tt>)</span>
|
4161
4556
|
|
4162
4557
|
|
4558
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
4559
|
+
|
4560
|
+
|
4561
|
+
</li>
|
4562
|
+
|
4563
|
+
<li>
|
4564
|
+
|
4565
|
+
<span class='name'>wait_until</span>
|
4566
|
+
|
4567
|
+
|
4568
|
+
<span class='type'>(<tt>string|nil</tt>)</span>
|
4569
|
+
|
4570
|
+
|
4571
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
4572
|
+
|
4573
|
+
|
4574
|
+
—
|
4575
|
+
<div class='inline'>
|
4576
|
+
<p>'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2'</p>
|
4577
|
+
</div>
|
4163
4578
|
|
4164
4579
|
</li>
|
4165
4580
|
|
@@ -4171,7 +4586,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4171
4586
|
<li>
|
4172
4587
|
|
4173
4588
|
|
4174
|
-
<span class='type'>(<tt
|
4589
|
+
<span class='type'>(<tt>Puppeteer::Response</tt>)</span>
|
4175
4590
|
|
4176
4591
|
|
4177
4592
|
|
@@ -4185,24 +4600,22 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4185
4600
|
<pre class="lines">
|
4186
4601
|
|
4187
4602
|
|
4188
|
-
|
4189
|
-
|
4190
|
-
|
4191
|
-
|
4192
|
-
|
4193
|
-
|
4194
|
-
621</pre>
|
4603
|
+
644
|
4604
|
+
645
|
4605
|
+
646
|
4606
|
+
647
|
4607
|
+
648
|
4608
|
+
649</pre>
|
4195
4609
|
</td>
|
4196
4610
|
<td>
|
4197
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
4611
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 644</span>
|
4198
4612
|
|
4199
4613
|
<span class='kw'>def</span> <span class='id identifier rubyid_reload'>reload</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>
|
4200
|
-
<span class='
|
4201
|
-
</span>
|
4202
|
-
</span>
|
4203
|
-
|
4204
|
-
|
4205
|
-
</span><span class='kw'>end</span></pre>
|
4614
|
+
<span class='id identifier rubyid_await_all'><span class='object_link'><a href="ConcurrentRubyUtils.html#await_all-instance_method" title="Puppeteer::ConcurrentRubyUtils#await_all (method)">await_all</a></span></span><span class='lparen'>(</span>
|
4615
|
+
<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='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><span class='comma'>,</span>
|
4616
|
+
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_async_send_message'>async_send_message</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Page.reload</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span>
|
4617
|
+
<span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
4618
|
+
<span class='kw'>end</span></pre>
|
4206
4619
|
</td>
|
4207
4620
|
</tr>
|
4208
4621
|
</table>
|
@@ -4247,12 +4660,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4247
4660
|
<pre class="lines">
|
4248
4661
|
|
4249
4662
|
|
4250
|
-
|
4251
|
-
|
4252
|
-
|
4663
|
+
244
|
4664
|
+
245
|
4665
|
+
246</pre>
|
4253
4666
|
</td>
|
4254
4667
|
<td>
|
4255
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
4668
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 244</span>
|
4256
4669
|
|
4257
4670
|
<span class='kw'>def</span> <span class='id identifier rubyid_request_interception='>request_interception=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
4258
4671
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_request_interception'>request_interception</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
@@ -4316,12 +4729,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4316
4729
|
<pre class="lines">
|
4317
4730
|
|
4318
4731
|
|
4319
|
-
|
4320
|
-
|
4321
|
-
|
4732
|
+
265
|
4733
|
+
266
|
4734
|
+
267</pre>
|
4322
4735
|
</td>
|
4323
4736
|
<td>
|
4324
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
4737
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 265</span>
|
4325
4738
|
|
4326
4739
|
<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>
|
4327
4740
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -4362,15 +4775,15 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4362
4775
|
<pre class="lines">
|
4363
4776
|
|
4364
4777
|
|
4365
|
-
|
4366
|
-
|
4367
|
-
|
4368
|
-
|
4369
|
-
|
4370
|
-
|
4778
|
+
818
|
4779
|
+
819
|
4780
|
+
820
|
4781
|
+
821
|
4782
|
+
822
|
4783
|
+
823</pre>
|
4371
4784
|
</td>
|
4372
4785
|
<td>
|
4373
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
4786
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 818</span>
|
4374
4787
|
|
4375
4788
|
<span class='kw'>def</span> <span class='id identifier rubyid_screenshot'>screenshot</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
4376
4789
|
<span class='id identifier rubyid_screenshot_options'>screenshot_options</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Page/ScreenshotOptions.html" title="Puppeteer::Page::ScreenshotOptions (class)">ScreenshotOptions</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Page/ScreenshotOptions.html#initialize-instance_method" title="Puppeteer::Page::ScreenshotOptions#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
@@ -4446,12 +4859,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4446
4859
|
<pre class="lines">
|
4447
4860
|
|
4448
4861
|
|
4449
|
-
|
4450
|
-
|
4451
|
-
|
4862
|
+
995
|
4863
|
+
996
|
4864
|
+
997</pre>
|
4452
4865
|
</td>
|
4453
4866
|
<td>
|
4454
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
4867
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 995</span>
|
4455
4868
|
|
4456
4869
|
<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>
|
4457
4870
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -4511,12 +4924,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4511
4924
|
<pre class="lines">
|
4512
4925
|
|
4513
4926
|
|
4514
|
-
|
4515
|
-
|
4516
|
-
|
4927
|
+
624
|
4928
|
+
625
|
4929
|
+
626</pre>
|
4517
4930
|
</td>
|
4518
4931
|
<td>
|
4519
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
4932
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 624</span>
|
4520
4933
|
|
4521
4934
|
<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>
|
4522
4935
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -4529,7 +4942,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4529
4942
|
<div class="method_details ">
|
4530
4943
|
<h3 class="signature " id="Seval-instance_method">
|
4531
4944
|
|
4532
|
-
#<strong>Seval</strong>(selector, page_function, *args) ⇒ <tt
|
4945
|
+
#<strong>Seval</strong>(selector, page_function, *args) ⇒ <tt>Object</tt>
|
4533
4946
|
|
4534
4947
|
|
4535
4948
|
|
@@ -4552,18 +4965,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4552
4965
|
<span class='name'>selector</span>
|
4553
4966
|
|
4554
4967
|
|
4555
|
-
<span class='type'>(<tt>
|
4556
|
-
|
4557
|
-
|
4558
|
-
|
4559
|
-
</li>
|
4560
|
-
|
4561
|
-
<li>
|
4562
|
-
|
4563
|
-
<span class='name'>pageFunction</span>
|
4564
|
-
|
4565
|
-
|
4566
|
-
<span class='type'>(<tt>Function|string</tt>)</span>
|
4968
|
+
<span class='type'>(<tt>String</tt>)</span>
|
4567
4969
|
|
4568
4970
|
|
4569
4971
|
|
@@ -4571,10 +4973,10 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4571
4973
|
|
4572
4974
|
<li>
|
4573
4975
|
|
4574
|
-
<span class='name'>
|
4976
|
+
<span class='name'>page_function</span>
|
4575
4977
|
|
4576
4978
|
|
4577
|
-
<span class='type'>(<tt
|
4979
|
+
<span class='type'>(<tt>String</tt>)</span>
|
4578
4980
|
|
4579
4981
|
|
4580
4982
|
|
@@ -4588,7 +4990,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4588
4990
|
<li>
|
4589
4991
|
|
4590
4992
|
|
4591
|
-
<span class='type'>(<tt
|
4993
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
4592
4994
|
|
4593
4995
|
|
4594
4996
|
|
@@ -4602,12 +5004,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4602
5004
|
<pre class="lines">
|
4603
5005
|
|
4604
5006
|
|
4605
|
-
|
4606
|
-
|
4607
|
-
|
5007
|
+
295
|
5008
|
+
296
|
5009
|
+
297</pre>
|
4608
5010
|
</td>
|
4609
5011
|
<td>
|
4610
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
5012
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 295</span>
|
4611
5013
|
|
4612
5014
|
<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>
|
4613
5015
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -4671,12 +5073,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4671
5073
|
<pre class="lines">
|
4672
5074
|
|
4673
5075
|
|
4674
|
-
|
4675
|
-
|
4676
|
-
|
5076
|
+
272
|
5077
|
+
273
|
5078
|
+
274</pre>
|
4677
5079
|
</td>
|
4678
5080
|
<td>
|
4679
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
5081
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 272</span>
|
4680
5082
|
|
4681
5083
|
<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>
|
4682
5084
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -4689,7 +5091,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4689
5091
|
<div class="method_details ">
|
4690
5092
|
<h3 class="signature " id="SSeval-instance_method">
|
4691
5093
|
|
4692
|
-
#<strong>SSeval</strong>(selector, page_function, *args) ⇒ <tt
|
5094
|
+
#<strong>SSeval</strong>(selector, page_function, *args) ⇒ <tt>Object</tt>
|
4693
5095
|
|
4694
5096
|
|
4695
5097
|
|
@@ -4712,18 +5114,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4712
5114
|
<span class='name'>selector</span>
|
4713
5115
|
|
4714
5116
|
|
4715
|
-
<span class='type'>(<tt>
|
4716
|
-
|
4717
|
-
|
4718
|
-
|
4719
|
-
</li>
|
4720
|
-
|
4721
|
-
<li>
|
4722
|
-
|
4723
|
-
<span class='name'>pageFunction</span>
|
4724
|
-
|
4725
|
-
|
4726
|
-
<span class='type'>(<tt>Function|string</tt>)</span>
|
5117
|
+
<span class='type'>(<tt>String</tt>)</span>
|
4727
5118
|
|
4728
5119
|
|
4729
5120
|
|
@@ -4731,10 +5122,10 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4731
5122
|
|
4732
5123
|
<li>
|
4733
5124
|
|
4734
|
-
<span class='name'>
|
5125
|
+
<span class='name'>page_function</span>
|
4735
5126
|
|
4736
5127
|
|
4737
|
-
<span class='type'>(<tt
|
5128
|
+
<span class='type'>(<tt>String</tt>)</span>
|
4738
5129
|
|
4739
5130
|
|
4740
5131
|
|
@@ -4748,7 +5139,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4748
5139
|
<li>
|
4749
5140
|
|
4750
5141
|
|
4751
|
-
<span class='type'>(<tt
|
5142
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
4752
5143
|
|
4753
5144
|
|
4754
5145
|
|
@@ -4762,12 +5153,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4762
5153
|
<pre class="lines">
|
4763
5154
|
|
4764
5155
|
|
4765
|
-
|
4766
|
-
|
4767
|
-
|
5156
|
+
311
|
5157
|
+
312
|
5158
|
+
313</pre>
|
4768
5159
|
</td>
|
4769
5160
|
<td>
|
4770
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
5161
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 311</span>
|
4771
5162
|
|
4772
5163
|
<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>
|
4773
5164
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -4831,12 +5222,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4831
5222
|
<pre class="lines">
|
4832
5223
|
|
4833
5224
|
|
4834
|
-
|
4835
|
-
|
4836
|
-
|
5225
|
+
326
|
5226
|
+
327
|
5227
|
+
328</pre>
|
4837
5228
|
</td>
|
4838
5229
|
<td>
|
4839
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
5230
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 326</span>
|
4840
5231
|
|
4841
5232
|
<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>
|
4842
5233
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -4870,7 +5261,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4870
5261
|
<span class='name'>selector</span>
|
4871
5262
|
|
4872
5263
|
|
4873
|
-
<span class='type'>(<tt>
|
5264
|
+
<span class='type'>(<tt>String</tt>)</span>
|
4874
5265
|
|
4875
5266
|
|
4876
5267
|
|
@@ -4885,12 +5276,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4885
5276
|
<pre class="lines">
|
4886
5277
|
|
4887
5278
|
|
4888
|
-
|
4889
|
-
|
4890
|
-
|
5279
|
+
1000
|
5280
|
+
1001
|
5281
|
+
1002</pre>
|
4891
5282
|
</td>
|
4892
5283
|
<td>
|
4893
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
5284
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1000</span>
|
4894
5285
|
|
4895
5286
|
<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>
|
4896
5287
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -4937,12 +5328,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4937
5328
|
<pre class="lines">
|
4938
5329
|
|
4939
5330
|
|
4940
|
-
|
4941
|
-
|
4942
|
-
|
5331
|
+
810
|
5332
|
+
811
|
5333
|
+
812</pre>
|
4943
5334
|
</td>
|
4944
5335
|
<td>
|
4945
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
5336
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 810</span>
|
4946
5337
|
|
4947
5338
|
<span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span>
|
4948
5339
|
<span class='ivar'>@title</span>
|
@@ -4953,9 +5344,9 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4953
5344
|
</div>
|
4954
5345
|
|
4955
5346
|
<div class="method_details ">
|
4956
|
-
<h3 class="signature " id="
|
5347
|
+
<h3 class="signature " id="type_text-instance_method">
|
4957
5348
|
|
4958
|
-
#<strong>
|
5349
|
+
#<strong>type_text</strong>(selector, text, delay: nil) ⇒ <tt>Object</tt>
|
4959
5350
|
|
4960
5351
|
|
4961
5352
|
|
@@ -4976,7 +5367,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4976
5367
|
<span class='name'>selector</span>
|
4977
5368
|
|
4978
5369
|
|
4979
|
-
<span class='type'>(<tt>
|
5370
|
+
<span class='type'>(<tt>String</tt>)</span>
|
4980
5371
|
|
4981
5372
|
|
4982
5373
|
|
@@ -4987,7 +5378,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4987
5378
|
<span class='name'>text</span>
|
4988
5379
|
|
4989
5380
|
|
4990
|
-
<span class='type'>(<tt>
|
5381
|
+
<span class='type'>(<tt>String</tt>)</span>
|
4991
5382
|
|
4992
5383
|
|
4993
5384
|
|
@@ -4995,11 +5386,13 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
4995
5386
|
|
4996
5387
|
<li>
|
4997
5388
|
|
4998
|
-
<span class='name'>
|
5389
|
+
<span class='name'>delay</span>
|
5390
|
+
|
4999
5391
|
|
5392
|
+
<span class='type'>(<tt>Number</tt>)</span>
|
5000
5393
|
|
5001
|
-
<span class='type'>(<tt>{delay: (number|undefined)}=</tt>)</span>
|
5002
5394
|
|
5395
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
5003
5396
|
|
5004
5397
|
|
5005
5398
|
</li>
|
@@ -5013,15 +5406,15 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
5013
5406
|
<pre class="lines">
|
5014
5407
|
|
5015
5408
|
|
5016
|
-
|
5017
|
-
|
5018
|
-
|
5409
|
+
1012
|
5410
|
+
1013
|
5411
|
+
1014</pre>
|
5019
5412
|
</td>
|
5020
5413
|
<td>
|
5021
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
5414
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1012</span>
|
5022
5415
|
|
5023
|
-
<span class='kw'>def</span> <span class='id identifier
|
5024
|
-
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier
|
5416
|
+
<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>
|
5417
|
+
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
5025
5418
|
<span class='kw'>end</span></pre>
|
5026
5419
|
</td>
|
5027
5420
|
</tr>
|
@@ -5065,12 +5458,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
5065
5458
|
<pre class="lines">
|
5066
5459
|
|
5067
5460
|
|
5068
|
-
|
5069
|
-
|
5070
|
-
|
5461
|
+
613
|
5462
|
+
614
|
5463
|
+
615</pre>
|
5071
5464
|
</td>
|
5072
5465
|
<td>
|
5073
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
5466
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 613</span>
|
5074
5467
|
|
5075
5468
|
<span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
|
5076
5469
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span>
|
@@ -5119,12 +5512,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
5119
5512
|
<pre class="lines">
|
5120
5513
|
|
5121
5514
|
|
5122
|
-
|
5123
|
-
|
5124
|
-
|
5515
|
+
449
|
5516
|
+
450
|
5517
|
+
451</pre>
|
5125
5518
|
</td>
|
5126
5519
|
<td>
|
5127
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
5520
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 449</span>
|
5128
5521
|
|
5129
5522
|
<span class='kw'>def</span> <span class='id identifier rubyid_user_agent='>user_agent=</span><span class='lparen'>(</span><span class='id identifier rubyid_user_agent'>user_agent</span><span class='rparen'>)</span>
|
5130
5523
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_user_agent'>user_agent</span> <span class='op'>=</span> <span class='id identifier rubyid_user_agent'>user_agent</span>
|
@@ -5132,6 +5525,107 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
5132
5525
|
</td>
|
5133
5526
|
</tr>
|
5134
5527
|
</table>
|
5528
|
+
</div>
|
5529
|
+
|
5530
|
+
<div class="method_details ">
|
5531
|
+
<h3 class="signature " id="wait_for_file_chooser-instance_method">
|
5532
|
+
|
5533
|
+
#<strong>wait_for_file_chooser</strong>(timeout: nil) ⇒ <tt><span class='object_link'><a href="FileChooser.html" title="Puppeteer::FileChooser (class)">Puppeteer::FileChooser</a></span></tt>
|
5534
|
+
|
5535
|
+
|
5536
|
+
|
5537
|
+
|
5538
|
+
|
5539
|
+
</h3><div class="docstring">
|
5540
|
+
<div class="discussion">
|
5541
|
+
|
5542
|
+
|
5543
|
+
</div>
|
5544
|
+
</div>
|
5545
|
+
<div class="tags">
|
5546
|
+
<p class="tag_title">Parameters:</p>
|
5547
|
+
<ul class="param">
|
5548
|
+
|
5549
|
+
<li>
|
5550
|
+
|
5551
|
+
<span class='name'>timeout</span>
|
5552
|
+
|
5553
|
+
|
5554
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
5555
|
+
|
5556
|
+
|
5557
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
5558
|
+
|
5559
|
+
|
5560
|
+
</li>
|
5561
|
+
|
5562
|
+
</ul>
|
5563
|
+
|
5564
|
+
<p class="tag_title">Returns:</p>
|
5565
|
+
<ul class="return">
|
5566
|
+
|
5567
|
+
<li>
|
5568
|
+
|
5569
|
+
|
5570
|
+
<span class='type'>(<tt><span class='object_link'><a href="FileChooser.html" title="Puppeteer::FileChooser (class)">Puppeteer::FileChooser</a></span></tt>)</span>
|
5571
|
+
|
5572
|
+
|
5573
|
+
|
5574
|
+
</li>
|
5575
|
+
|
5576
|
+
</ul>
|
5577
|
+
|
5578
|
+
</div><table class="source_code">
|
5579
|
+
<tr>
|
5580
|
+
<td>
|
5581
|
+
<pre class="lines">
|
5582
|
+
|
5583
|
+
|
5584
|
+
149
|
5585
|
+
150
|
5586
|
+
151
|
5587
|
+
152
|
5588
|
+
153
|
5589
|
+
154
|
5590
|
+
155
|
5591
|
+
156
|
5592
|
+
157
|
5593
|
+
158
|
5594
|
+
159
|
5595
|
+
160
|
5596
|
+
161
|
5597
|
+
162
|
5598
|
+
163
|
5599
|
+
164
|
5600
|
+
165
|
5601
|
+
166
|
5602
|
+
167</pre>
|
5603
|
+
</td>
|
5604
|
+
<td>
|
5605
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 149</span>
|
5606
|
+
|
5607
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_wait_for_file_chooser'>wait_for_file_chooser</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
5608
|
+
<span class='kw'>if</span> <span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
5609
|
+
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_send_message'>send_message</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Page.setInterceptFileChooserDialog</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>enabled:</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
5610
|
+
<span class='kw'>end</span>
|
5611
|
+
|
5612
|
+
<span class='id identifier rubyid_option_timeout'>option_timeout</span> <span class='op'>=</span> <span class='id identifier rubyid_timeout'>timeout</span> <span class='op'>||</span> <span class='ivar'>@timeout_settings</span><span class='period'>.</span><span class='id identifier rubyid_timeout'>timeout</span>
|
5613
|
+
<span class='id identifier rubyid_promise'>promise</span> <span class='op'>=</span> <span class='id identifier rubyid_resolvable_future'><span class='object_link'><a href="ConcurrentRubyUtils.html#resolvable_future-instance_method" title="Puppeteer::ConcurrentRubyUtils#resolvable_future (method)">resolvable_future</a></span></span>
|
5614
|
+
<span class='ivar'>@file_chooser_interceptors</span> <span class='op'><<</span> <span class='id identifier rubyid_promise'>promise</span>
|
5615
|
+
|
5616
|
+
<span class='kw'>begin</span>
|
5617
|
+
<span class='const'>Timeout</span><span class='period'>.</span><span class='id identifier rubyid_timeout'>timeout</span><span class='lparen'>(</span><span class='id identifier rubyid_option_timeout'>option_timeout</span> <span class='op'>/</span> <span class='float'>1000.0</span><span class='rparen'>)</span> <span class='kw'>do</span>
|
5618
|
+
<span class='id identifier rubyid_promise'>promise</span><span class='period'>.</span><span class='id identifier rubyid_value!'>value!</span>
|
5619
|
+
<span class='kw'>end</span>
|
5620
|
+
<span class='kw'>rescue</span> <span class='const'>Timeout</span><span class='op'>::</span><span class='const'>Error</span>
|
5621
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="Page/FileChooserTimeoutError.html" title="Puppeteer::Page::FileChooserTimeoutError (class)">FileChooserTimeoutError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Page/FileChooserTimeoutError.html#initialize-instance_method" title="Puppeteer::Page::FileChooserTimeoutError#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='id identifier rubyid_option_timeout'>option_timeout</span><span class='rparen'>)</span>
|
5622
|
+
<span class='kw'>ensure</span>
|
5623
|
+
<span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_promise'>promise</span><span class='rparen'>)</span>
|
5624
|
+
<span class='kw'>end</span>
|
5625
|
+
<span class='kw'>end</span></pre>
|
5626
|
+
</td>
|
5627
|
+
</tr>
|
5628
|
+
</table>
|
5135
5629
|
</div>
|
5136
5630
|
|
5137
5631
|
<div class="method_details ">
|
@@ -5210,12 +5704,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
5210
5704
|
<pre class="lines">
|
5211
5705
|
|
5212
5706
|
|
5213
|
-
|
5214
|
-
|
5215
|
-
|
5707
|
+
1062
|
5708
|
+
1063
|
5709
|
+
1064</pre>
|
5216
5710
|
</td>
|
5217
5711
|
<td>
|
5218
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
5712
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1062</span>
|
5219
5713
|
|
5220
5714
|
<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>
|
5221
5715
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -5228,7 +5722,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
5228
5722
|
<div class="method_details ">
|
5229
5723
|
<h3 class="signature " id="wait_for_selector-instance_method">
|
5230
5724
|
|
5231
|
-
#<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) ⇒ <tt
|
5725
|
+
#<strong>wait_for_selector</strong>(selector, visible: nil, hidden: nil, timeout: nil) ⇒ <tt>Object</tt>
|
5232
5726
|
|
5233
5727
|
|
5234
5728
|
|
@@ -5249,7 +5743,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
5249
5743
|
<span class='name'>selector</span>
|
5250
5744
|
|
5251
5745
|
|
5252
|
-
<span class='type'>(<tt>
|
5746
|
+
<span class='type'>(<tt>String</tt>)</span>
|
5253
5747
|
|
5254
5748
|
|
5255
5749
|
|
@@ -5257,43 +5751,68 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
5257
5751
|
|
5258
5752
|
<li>
|
5259
5753
|
|
5260
|
-
<span class='name'>
|
5754
|
+
<span class='name'>visible</span>
|
5261
5755
|
|
5262
5756
|
|
5263
|
-
<span class='type'>(<tt
|
5757
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
5264
5758
|
|
5265
5759
|
|
5760
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
5761
|
+
|
5762
|
+
|
5763
|
+
—
|
5764
|
+
<div class='inline'>
|
5765
|
+
<p>Wait for element visible (not 'display: none' nor 'visibility: hidden') on true. default to false.</p>
|
5766
|
+
</div>
|
5266
5767
|
|
5267
5768
|
</li>
|
5268
5769
|
|
5269
|
-
|
5270
|
-
|
5271
|
-
<
|
5272
|
-
|
5770
|
+
<li>
|
5771
|
+
|
5772
|
+
<span class='name'>hidden</span>
|
5773
|
+
|
5774
|
+
|
5775
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
5776
|
+
|
5777
|
+
|
5778
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
5779
|
+
|
5780
|
+
|
5781
|
+
—
|
5782
|
+
<div class='inline'>
|
5783
|
+
<p>Wait for element invisible ('display: none' nor 'visibility: hidden') on true. default to false.</p>
|
5784
|
+
</div>
|
5785
|
+
|
5786
|
+
</li>
|
5273
5787
|
|
5274
5788
|
<li>
|
5275
5789
|
|
5790
|
+
<span class='name'>timeout</span>
|
5791
|
+
|
5792
|
+
|
5793
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
5276
5794
|
|
5277
|
-
<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>
|
5278
5795
|
|
5796
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
5279
5797
|
|
5280
5798
|
|
5281
5799
|
</li>
|
5282
5800
|
|
5283
5801
|
</ul>
|
5284
5802
|
|
5803
|
+
|
5285
5804
|
</div><table class="source_code">
|
5286
5805
|
<tr>
|
5287
5806
|
<td>
|
5288
5807
|
<pre class="lines">
|
5289
5808
|
|
5290
5809
|
|
5291
|
-
|
5292
|
-
|
5293
|
-
|
5810
|
+
1030
|
5811
|
+
1031
|
5812
|
+
1032</pre>
|
5294
5813
|
</td>
|
5295
5814
|
<td>
|
5296
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
5815
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1030</span>
|
5297
5816
|
|
5298
5817
|
<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>
|
5299
5818
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -5306,7 +5825,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
5306
5825
|
<div class="method_details ">
|
5307
5826
|
<h3 class="signature " id="wait_for_xpath-instance_method">
|
5308
5827
|
|
5309
|
-
#<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) ⇒ <tt
|
5828
|
+
#<strong>wait_for_xpath</strong>(xpath, visible: nil, hidden: nil, timeout: nil) ⇒ <tt>Object</tt>
|
5310
5829
|
|
5311
5830
|
|
5312
5831
|
|
@@ -5327,7 +5846,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
5327
5846
|
<span class='name'>xpath</span>
|
5328
5847
|
|
5329
5848
|
|
5330
|
-
<span class='type'>(<tt>
|
5849
|
+
<span class='type'>(<tt>String</tt>)</span>
|
5331
5850
|
|
5332
5851
|
|
5333
5852
|
|
@@ -5335,43 +5854,68 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
5335
5854
|
|
5336
5855
|
<li>
|
5337
5856
|
|
5338
|
-
<span class='name'>
|
5857
|
+
<span class='name'>visible</span>
|
5858
|
+
|
5859
|
+
|
5860
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
5339
5861
|
|
5340
5862
|
|
5341
|
-
<
|
5863
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
5342
5864
|
|
5343
5865
|
|
5866
|
+
—
|
5867
|
+
<div class='inline'>
|
5868
|
+
<p>Wait for element visible (not 'display: none' nor 'visibility: hidden') on true. default to false.</p>
|
5869
|
+
</div>
|
5344
5870
|
|
5345
5871
|
</li>
|
5346
5872
|
|
5347
|
-
|
5348
|
-
|
5349
|
-
<
|
5350
|
-
|
5873
|
+
<li>
|
5874
|
+
|
5875
|
+
<span class='name'>hidden</span>
|
5876
|
+
|
5877
|
+
|
5878
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
5879
|
+
|
5880
|
+
|
5881
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
5882
|
+
|
5883
|
+
|
5884
|
+
—
|
5885
|
+
<div class='inline'>
|
5886
|
+
<p>Wait for element invisible ('display: none' nor 'visibility: hidden') on true. default to false.</p>
|
5887
|
+
</div>
|
5888
|
+
|
5889
|
+
</li>
|
5351
5890
|
|
5352
5891
|
<li>
|
5353
5892
|
|
5893
|
+
<span class='name'>timeout</span>
|
5354
5894
|
|
5355
|
-
<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>
|
5356
5895
|
|
5896
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
5897
|
+
|
5898
|
+
|
5899
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
5357
5900
|
|
5358
5901
|
|
5359
5902
|
</li>
|
5360
5903
|
|
5361
5904
|
</ul>
|
5362
5905
|
|
5906
|
+
|
5363
5907
|
</div><table class="source_code">
|
5364
5908
|
<tr>
|
5365
5909
|
<td>
|
5366
5910
|
<pre class="lines">
|
5367
5911
|
|
5368
5912
|
|
5369
|
-
|
5370
|
-
|
5371
|
-
|
5913
|
+
1046
|
5914
|
+
1047
|
5915
|
+
1048</pre>
|
5372
5916
|
</td>
|
5373
5917
|
<td>
|
5374
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
5918
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1046</span>
|
5375
5919
|
|
5376
5920
|
<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>
|
5377
5921
|
<span class='id identifier rubyid_main_frame'>main_frame</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>
|
@@ -5396,12 +5940,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
5396
5940
|
<pre class="lines">
|
5397
5941
|
|
5398
5942
|
|
5399
|
-
|
5400
|
-
|
5401
|
-
|
5943
|
+
239
|
5944
|
+
240
|
5945
|
+
241</pre>
|
5402
5946
|
</td>
|
5403
5947
|
<td>
|
5404
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
5948
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 239</span>
|
5405
5949
|
|
5406
5950
|
<span class='kw'>def</span> <span class='id identifier rubyid_workers'>workers</span>
|
5407
5951
|
<span class='ivar'>@workers</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span>
|
@@ -5416,7 +5960,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
5416
5960
|
</div>
|
5417
5961
|
|
5418
5962
|
<div id="footer">
|
5419
|
-
Generated on
|
5963
|
+
Generated on Sat Jun 20 17:15:06 2020 by
|
5420
5964
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
5421
5965
|
0.9.24 (ruby-2.6.3).
|
5422
5966
|
</div>
|