puppeteer-ruby 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/docs/Puppeteer.html +414 -96
- data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
- data/docs/Puppeteer/Browser.html +34 -34
- data/docs/Puppeteer/BrowserContext.html +2 -2
- data/docs/Puppeteer/BrowserFetcher.html +1 -1
- data/docs/Puppeteer/BrowserRunner.html +1 -1
- data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +1 -1
- data/docs/Puppeteer/CDPSession.html +2 -2
- data/docs/Puppeteer/CDPSession/Error.html +1 -1
- data/docs/Puppeteer/ConcurrentRubyUtils.html +14 -6
- data/docs/Puppeteer/Connection.html +2 -2
- data/docs/Puppeteer/Connection/MessageCallback.html +1 -1
- data/docs/Puppeteer/Connection/ProtocolError.html +1 -1
- data/docs/Puppeteer/Connection/RequestDebugPrinter.html +1 -1
- data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +1 -1
- data/docs/Puppeteer/ConsoleMessage.html +1 -1
- data/docs/Puppeteer/ConsoleMessage/Location.html +1 -1
- data/docs/Puppeteer/DOMWorld.html +1 -1
- data/docs/Puppeteer/DOMWorld/DetachedError.html +1 -1
- data/docs/Puppeteer/DebugPrint.html +1 -1
- data/docs/Puppeteer/Device.html +1 -1
- data/docs/Puppeteer/Devices.html +1 -1
- data/docs/Puppeteer/ElementHandle.html +1 -1
- data/docs/Puppeteer/ElementHandle/BoundingBox.html +1 -1
- data/docs/Puppeteer/ElementHandle/BoxModel.html +1 -1
- data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +1 -1
- data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +1 -1
- data/docs/Puppeteer/ElementHandle/Point.html +1 -1
- data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +1 -1
- data/docs/Puppeteer/EmulationManager.html +1 -1
- data/docs/Puppeteer/EventCallbackable.html +83 -17
- data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
- data/docs/Puppeteer/ExecutionContext.html +1 -1
- data/docs/Puppeteer/ExecutionContext/EvaluationError.html +1 -1
- data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +1 -1
- data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +1 -1
- data/docs/Puppeteer/FileChooser.html +1 -1
- data/docs/Puppeteer/Frame.html +1 -1
- data/docs/Puppeteer/FrameManager.html +2 -2
- data/docs/Puppeteer/FrameManager/NavigationError.html +1 -1
- data/docs/Puppeteer/IfPresent.html +1 -1
- data/docs/Puppeteer/JSHandle.html +1 -1
- data/docs/Puppeteer/Keyboard.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDefinition.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDescription.html +1 -1
- data/docs/Puppeteer/Launcher.html +1 -1
- data/docs/Puppeteer/Launcher/Base.html +1 -1
- data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +1 -1
- data/docs/Puppeteer/Launcher/BrowserOptions.html +1 -1
- data/docs/Puppeteer/Launcher/Chrome.html +1 -1
- data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +1 -1
- data/docs/Puppeteer/Launcher/ChromeArgOptions.html +1 -1
- data/docs/Puppeteer/Launcher/LaunchOptions.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +1 -1
- data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +1 -1
- data/docs/Puppeteer/Mouse.html +1 -1
- data/docs/Puppeteer/Mouse/Button.html +1 -1
- data/docs/Puppeteer/NetworkManager.html +2 -2
- data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
- data/docs/Puppeteer/Page.html +497 -294
- data/docs/Puppeteer/Page/FileChooserTimeoutError.html +5 -5
- data/docs/Puppeteer/Page/ScreenshotOptions.html +1 -1
- data/docs/Puppeteer/Page/ScriptTag.html +24 -24
- data/docs/Puppeteer/Page/StyleTag.html +19 -19
- data/docs/Puppeteer/Page/TargetCrashedError.html +1 -1
- data/docs/Puppeteer/RemoteObject.html +1 -1
- data/docs/Puppeteer/Target.html +2 -2
- data/docs/Puppeteer/Target/InitializeFailure.html +1 -1
- data/docs/Puppeteer/Target/TargetInfo.html +1 -1
- data/docs/Puppeteer/TimeoutError.html +1 -1
- data/docs/Puppeteer/TimeoutSettings.html +1 -1
- data/docs/Puppeteer/TouchScreen.html +1 -1
- data/docs/Puppeteer/Viewport.html +1 -1
- data/docs/Puppeteer/WaitTask.html +1 -1
- data/docs/Puppeteer/WaitTask/TerminatedError.html +1 -1
- data/docs/Puppeteer/WaitTask/TimeoutError.html +1 -1
- data/docs/Puppeteer/WebSocket.html +1 -1
- data/docs/Puppeteer/WebSocket/DriverImpl.html +1 -1
- data/docs/Puppeteer/WebSocket/TransportError.html +1 -1
- data/docs/Puppeteer/WebSocketTransport.html +9 -9
- data/docs/_index.html +1 -1
- data/docs/file.README.html +3 -1
- data/docs/index.html +3 -1
- data/docs/method_list.html +581 -557
- data/docs/top-level-namespace.html +1 -1
- data/lib/puppeteer.rb +36 -12
- data/lib/puppeteer/browser.rb +5 -0
- data/lib/puppeteer/concurrent_ruby_utils.rb +6 -2
- data/lib/puppeteer/event_callbackable.rb +11 -0
- data/lib/puppeteer/launcher.rb +6 -6
- data/lib/puppeteer/launcher/chrome.rb +1 -1
- data/lib/puppeteer/page.rb +39 -0
- data/lib/puppeteer/target.rb +1 -1
- data/lib/puppeteer/version.rb +1 -1
- data/lib/puppeteer/web_socket_transport.rb +8 -8
- data/puppeteer-ruby.png +0 -0
- metadata +3 -4
- data/Dockerfile +0 -6
- data/docker-compose.yml +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b420fde6222d1e26a5e8dc72b893a85e460b6db90483fcff3f97b7705b72a099
|
4
|
+
data.tar.gz: 54dc20b27ccc4898e3e7281d224080d4eec966a41eeefa058b1243e32d3b639b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65c9af35923c198fc9e17e5097f2258518f150f77056490065f820ba26703c2b239c86f8f0997d8f7ba51b8fb51f56e6f781a4ab0633b034ac04c462fe935f3c
|
7
|
+
data.tar.gz: 52fa2316e02d9f28791f1750d3ddd7f0d3ae434d2890c409fef2b3135394f54fec40c9570d440a9608fb8ffcbd41a200d55a0b56c348141887d158fe5efd6bef
|
data/README.md
CHANGED
data/docs/Puppeteer.html
CHANGED
@@ -1012,7 +1012,7 @@
|
|
1012
1012
|
<dt id="VERSION-constant" class="">VERSION =
|
1013
1013
|
|
1014
1014
|
</dt>
|
1015
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.0.
|
1015
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.0.12</span><span class='tstring_end'>'</span></span></pre></dd>
|
1016
1016
|
|
1017
1017
|
</dl>
|
1018
1018
|
|
@@ -1087,7 +1087,7 @@
|
|
1087
1087
|
<li class="public ">
|
1088
1088
|
<span class="summary_signature">
|
1089
1089
|
|
1090
|
-
<a href="#connect-instance_method" title="#connect (instance method)">#<strong>connect</strong>(browser_ws_endpoint: nil, browser_url: nil, transport: nil, ignore_https_errors: nil, default_viewport: nil, slow_mo: nil) ⇒
|
1090
|
+
<a href="#connect-instance_method" title="#connect (instance method)">#<strong>connect</strong>(browser_ws_endpoint: nil, browser_url: nil, transport: nil, ignore_https_errors: nil, default_viewport: nil, slow_mo: nil) ⇒ Puppeteer::Browser </a>
|
1091
1091
|
|
1092
1092
|
|
1093
1093
|
|
@@ -1131,7 +1131,7 @@
|
|
1131
1131
|
<li class="public ">
|
1132
1132
|
<span class="summary_signature">
|
1133
1133
|
|
1134
|
-
<a href="#default_args-instance_method" title="#default_args (instance method)">#<strong>default_args</strong>(args: nil, user_data_dir: nil, devtools: nil, headless: nil) ⇒
|
1134
|
+
<a href="#default_args-instance_method" title="#default_args (instance method)">#<strong>default_args</strong>(args: nil, user_data_dir: nil, devtools: nil, headless: nil) ⇒ Array<String> </a>
|
1135
1135
|
|
1136
1136
|
|
1137
1137
|
|
@@ -1175,7 +1175,7 @@
|
|
1175
1175
|
<li class="public ">
|
1176
1176
|
<span class="summary_signature">
|
1177
1177
|
|
1178
|
-
<a href="#executable_path-instance_method" title="#executable_path (instance method)">#<strong>executable_path</strong> ⇒
|
1178
|
+
<a href="#executable_path-instance_method" title="#executable_path (instance method)">#<strong>executable_path</strong> ⇒ String </a>
|
1179
1179
|
|
1180
1180
|
|
1181
1181
|
|
@@ -1223,7 +1223,7 @@
|
|
1223
1223
|
<li class="public ">
|
1224
1224
|
<span class="summary_signature">
|
1225
1225
|
|
1226
|
-
<a href="#launch-instance_method" title="#launch (instance method)">#<strong>launch</strong>(product: nil, executable_path: nil, ignore_default_args: nil, handle_SIGINT: nil, handle_SIGTERM: nil, handle_SIGHUP: nil, timeout: nil, dumpio: nil, env: nil, pipe: nil, args: nil, user_data_dir: nil, devtools: nil, headless: nil, ignore_https_errors: nil, default_viewport: nil, slow_mo: nil) ⇒
|
1226
|
+
<a href="#launch-instance_method" title="#launch (instance method)">#<strong>launch</strong>(product: nil, executable_path: nil, ignore_default_args: nil, handle_SIGINT: nil, handle_SIGTERM: nil, handle_SIGHUP: nil, timeout: nil, dumpio: nil, env: nil, pipe: nil, args: nil, user_data_dir: nil, devtools: nil, headless: nil, ignore_https_errors: nil, default_viewport: nil, slow_mo: nil) ⇒ Puppeteer::Browser </a>
|
1227
1227
|
|
1228
1228
|
|
1229
1229
|
|
@@ -1245,7 +1245,7 @@
|
|
1245
1245
|
<li class="public ">
|
1246
1246
|
<span class="summary_signature">
|
1247
1247
|
|
1248
|
-
<a href="#product-instance_method" title="#product (instance method)">#<strong>product</strong> ⇒
|
1248
|
+
<a href="#product-instance_method" title="#product (instance method)">#<strong>product</strong> ⇒ String </a>
|
1249
1249
|
|
1250
1250
|
|
1251
1251
|
|
@@ -1293,10 +1293,10 @@
|
|
1293
1293
|
|
1294
1294
|
<li>
|
1295
1295
|
|
1296
|
-
<span class='name'>
|
1296
|
+
<span class='name'>project_root</span>
|
1297
1297
|
|
1298
1298
|
|
1299
|
-
<span class='type'>(<tt>
|
1299
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1300
1300
|
|
1301
1301
|
|
1302
1302
|
|
@@ -1304,10 +1304,10 @@
|
|
1304
1304
|
|
1305
1305
|
<li>
|
1306
1306
|
|
1307
|
-
<span class='name'>
|
1307
|
+
<span class='name'>prefereed_revision</span>
|
1308
1308
|
|
1309
1309
|
|
1310
|
-
<span class='type'>(<tt>
|
1310
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1311
1311
|
|
1312
1312
|
|
1313
1313
|
|
@@ -1315,10 +1315,10 @@
|
|
1315
1315
|
|
1316
1316
|
<li>
|
1317
1317
|
|
1318
|
-
<span class='name'>
|
1318
|
+
<span class='name'>is_puppeteer_core</span>
|
1319
1319
|
|
1320
1320
|
|
1321
|
-
<span class='type'>(<tt>
|
1321
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1322
1322
|
|
1323
1323
|
|
1324
1324
|
|
@@ -1436,7 +1436,7 @@
|
|
1436
1436
|
<div class="method_details first">
|
1437
1437
|
<h3 class="signature first" id="connect-instance_method">
|
1438
1438
|
|
1439
|
-
#<strong>connect</strong>(browser_ws_endpoint: nil, browser_url: nil, transport: nil, ignore_https_errors: nil, default_viewport: nil, slow_mo: nil) ⇒ <tt
|
1439
|
+
#<strong>connect</strong>(browser_ws_endpoint: nil, browser_url: nil, transport: nil, ignore_https_errors: nil, default_viewport: nil, slow_mo: nil) ⇒ <tt><span class='object_link'><a href="Puppeteer/Browser.html" title="Puppeteer::Browser (class)">Puppeteer::Browser</a></span></tt>
|
1440
1440
|
|
1441
1441
|
|
1442
1442
|
|
@@ -1454,11 +1454,78 @@
|
|
1454
1454
|
|
1455
1455
|
<li>
|
1456
1456
|
|
1457
|
-
<span class='name'>
|
1457
|
+
<span class='name'>browser_ws_endpoint</span>
|
1458
|
+
|
1459
|
+
|
1460
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1461
|
+
|
1462
|
+
|
1463
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1464
|
+
|
1465
|
+
|
1466
|
+
</li>
|
1467
|
+
|
1468
|
+
<li>
|
1469
|
+
|
1470
|
+
<span class='name'>browser_url</span>
|
1471
|
+
|
1472
|
+
|
1473
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1474
|
+
|
1475
|
+
|
1476
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1477
|
+
|
1478
|
+
|
1479
|
+
</li>
|
1480
|
+
|
1481
|
+
<li>
|
1482
|
+
|
1483
|
+
<span class='name'>transport</span>
|
1484
|
+
|
1485
|
+
|
1486
|
+
<span class='type'>(<tt><span class='object_link'><a href="Puppeteer/WebSocketTransport.html" title="Puppeteer::WebSocketTransport (class)">Puppeteer::WebSocketTransport</a></span></tt>)</span>
|
1487
|
+
|
1488
|
+
|
1489
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1490
|
+
|
1491
|
+
|
1492
|
+
</li>
|
1493
|
+
|
1494
|
+
<li>
|
1495
|
+
|
1496
|
+
<span class='name'>ignore_https_errors</span>
|
1497
|
+
|
1458
1498
|
|
1499
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1459
1500
|
|
1460
|
-
<span class='type'>(<tt>!(<span class='object_link'><a href="Puppeteer/Launcher.html" title="Puppeteer::Launcher (module)">Launcher</a></span>.BrowserOptions & {browserWSEndpoint?: string, browserURL?: string, transport?: !<span class='object_link'><a href="" title="Puppeteer (class)">Puppeteer</a></span>.ConnectionTransport})</tt>)</span>
|
1461
1501
|
|
1502
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1503
|
+
|
1504
|
+
|
1505
|
+
</li>
|
1506
|
+
|
1507
|
+
<li>
|
1508
|
+
|
1509
|
+
<span class='name'>default_viewport</span>
|
1510
|
+
|
1511
|
+
|
1512
|
+
<span class='type'>(<tt><span class='object_link'><a href="Puppeteer/Viewport.html" title="Puppeteer::Viewport (class)">Puppeteer::Viewport</a></span>|nil</tt>)</span>
|
1513
|
+
|
1514
|
+
|
1515
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1516
|
+
|
1517
|
+
|
1518
|
+
</li>
|
1519
|
+
|
1520
|
+
<li>
|
1521
|
+
|
1522
|
+
<span class='name'>slow_mo</span>
|
1523
|
+
|
1524
|
+
|
1525
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
1526
|
+
|
1527
|
+
|
1528
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1462
1529
|
|
1463
1530
|
|
1464
1531
|
</li>
|
@@ -1471,7 +1538,7 @@
|
|
1471
1538
|
<li>
|
1472
1539
|
|
1473
1540
|
|
1474
|
-
<span class='type'>(<tt
|
1541
|
+
<span class='type'>(<tt><span class='object_link'><a href="Puppeteer/Browser.html" title="Puppeteer::Browser (class)">Puppeteer::Browser</a></span></tt>)</span>
|
1475
1542
|
|
1476
1543
|
|
1477
1544
|
|
@@ -1485,32 +1552,32 @@
|
|
1485
1552
|
<pre class="lines">
|
1486
1553
|
|
1487
1554
|
|
1488
|
-
130
|
1489
|
-
131
|
1490
|
-
132
|
1491
|
-
133
|
1492
|
-
134
|
1493
|
-
135
|
1494
|
-
136
|
1495
|
-
137
|
1496
|
-
138
|
1497
|
-
139
|
1498
|
-
140
|
1499
|
-
141
|
1500
|
-
142
|
1501
|
-
143
|
1502
|
-
144
|
1503
|
-
145
|
1504
|
-
146
|
1505
|
-
147
|
1506
|
-
148
|
1507
|
-
149
|
1508
|
-
150
|
1509
1555
|
151
|
1510
|
-
152
|
1556
|
+
152
|
1557
|
+
153
|
1558
|
+
154
|
1559
|
+
155
|
1560
|
+
156
|
1561
|
+
157
|
1562
|
+
158
|
1563
|
+
159
|
1564
|
+
160
|
1565
|
+
161
|
1566
|
+
162
|
1567
|
+
163
|
1568
|
+
164
|
1569
|
+
165
|
1570
|
+
166
|
1571
|
+
167
|
1572
|
+
168
|
1573
|
+
169
|
1574
|
+
170
|
1575
|
+
171
|
1576
|
+
172
|
1577
|
+
173</pre>
|
1511
1578
|
</td>
|
1512
1579
|
<td>
|
1513
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line
|
1580
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line 151</span>
|
1514
1581
|
|
1515
1582
|
<span class='kw'>def</span> <span class='id identifier rubyid_connect'>connect</span><span class='lparen'>(</span>
|
1516
1583
|
<span class='label'>browser_ws_endpoint:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
@@ -1594,12 +1661,12 @@
|
|
1594
1661
|
<pre class="lines">
|
1595
1662
|
|
1596
1663
|
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1664
|
+
221
|
1665
|
+
222
|
1666
|
+
223</pre>
|
1600
1667
|
</td>
|
1601
1668
|
<td>
|
1602
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line
|
1669
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line 221</span>
|
1603
1670
|
|
1604
1671
|
<span class='kw'>def</span> <span class='id identifier rubyid_createBrowserFetcher'>createBrowserFetcher</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>
|
1605
1672
|
<span class='const'><span class='object_link'><a href="Puppeteer/BrowserFetcher.html" title="Puppeteer::BrowserFetcher (class)">BrowserFetcher</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Puppeteer/BrowserFetcher.html#initialize-instance_method" title="Puppeteer::BrowserFetcher#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='ivar'>@project_root</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
@@ -1612,7 +1679,7 @@
|
|
1612
1679
|
<div class="method_details ">
|
1613
1680
|
<h3 class="signature " id="default_args-instance_method">
|
1614
1681
|
|
1615
|
-
#<strong>default_args</strong>(args: nil, user_data_dir: nil, devtools: nil, headless: nil) ⇒ <tt
|
1682
|
+
#<strong>default_args</strong>(args: nil, user_data_dir: nil, devtools: nil, headless: nil) ⇒ <tt>Array<String></tt>
|
1616
1683
|
|
1617
1684
|
|
1618
1685
|
|
@@ -1630,12 +1697,53 @@
|
|
1630
1697
|
|
1631
1698
|
<li>
|
1632
1699
|
|
1633
|
-
<span class='name'>
|
1700
|
+
<span class='name'>args</span>
|
1634
1701
|
|
1635
1702
|
|
1636
|
-
<span class='type'>(<tt
|
1703
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
1637
1704
|
|
1638
1705
|
|
1706
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1707
|
+
|
1708
|
+
|
1709
|
+
</li>
|
1710
|
+
|
1711
|
+
<li>
|
1712
|
+
|
1713
|
+
<span class='name'>user_data_dir</span>
|
1714
|
+
|
1715
|
+
|
1716
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1717
|
+
|
1718
|
+
|
1719
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1720
|
+
|
1721
|
+
|
1722
|
+
</li>
|
1723
|
+
|
1724
|
+
<li>
|
1725
|
+
|
1726
|
+
<span class='name'>devtools</span>
|
1727
|
+
|
1728
|
+
|
1729
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1730
|
+
|
1731
|
+
|
1732
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1733
|
+
|
1734
|
+
|
1735
|
+
</li>
|
1736
|
+
|
1737
|
+
<li>
|
1738
|
+
|
1739
|
+
<span class='name'>headless</span>
|
1740
|
+
|
1741
|
+
|
1742
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1743
|
+
|
1744
|
+
|
1745
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1746
|
+
|
1639
1747
|
|
1640
1748
|
</li>
|
1641
1749
|
|
@@ -1647,7 +1755,7 @@
|
|
1647
1755
|
<li>
|
1648
1756
|
|
1649
1757
|
|
1650
|
-
<span class='type'>(<tt
|
1758
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
1651
1759
|
|
1652
1760
|
|
1653
1761
|
|
@@ -1661,18 +1769,18 @@
|
|
1661
1769
|
<pre class="lines">
|
1662
1770
|
|
1663
1771
|
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
|
1669
|
-
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1772
|
+
209
|
1773
|
+
210
|
1774
|
+
211
|
1775
|
+
212
|
1776
|
+
213
|
1777
|
+
214
|
1778
|
+
215
|
1779
|
+
216
|
1780
|
+
217</pre>
|
1673
1781
|
</td>
|
1674
1782
|
<td>
|
1675
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line
|
1783
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line 209</span>
|
1676
1784
|
|
1677
1785
|
<span class='kw'>def</span> <span class='id identifier rubyid_default_args'>default_args</span><span class='lparen'>(</span><span class='label'>args:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>user_data_dir:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>devtools:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>headless:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1678
1786
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
@@ -1725,12 +1833,12 @@
|
|
1725
1833
|
<pre class="lines">
|
1726
1834
|
|
1727
1835
|
|
1728
|
-
|
1729
|
-
|
1730
|
-
|
1836
|
+
195
|
1837
|
+
196
|
1838
|
+
197</pre>
|
1731
1839
|
</td>
|
1732
1840
|
<td>
|
1733
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line
|
1841
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line 195</span>
|
1734
1842
|
|
1735
1843
|
<span class='kw'>def</span> <span class='id identifier rubyid_devices'>devices</span>
|
1736
1844
|
<span class='const'><span class='object_link'><a href="" title="Puppeteer (class)">Puppeteer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Puppeteer/Devices.html" title="Puppeteer::Devices (class)">Devices</a></span></span>
|
@@ -1743,7 +1851,7 @@
|
|
1743
1851
|
<div class="method_details ">
|
1744
1852
|
<h3 class="signature " id="executable_path-instance_method">
|
1745
1853
|
|
1746
|
-
#<strong>executable_path</strong> ⇒ <tt>
|
1854
|
+
#<strong>executable_path</strong> ⇒ <tt>String</tt>
|
1747
1855
|
|
1748
1856
|
|
1749
1857
|
|
@@ -1763,7 +1871,7 @@
|
|
1763
1871
|
<li>
|
1764
1872
|
|
1765
1873
|
|
1766
|
-
<span class='type'>(<tt>
|
1874
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1767
1875
|
|
1768
1876
|
|
1769
1877
|
|
@@ -1777,12 +1885,12 @@
|
|
1777
1885
|
<pre class="lines">
|
1778
1886
|
|
1779
1887
|
|
1780
|
-
|
1781
|
-
|
1782
|
-
|
1888
|
+
176
|
1889
|
+
177
|
1890
|
+
178</pre>
|
1783
1891
|
</td>
|
1784
1892
|
<td>
|
1785
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line
|
1893
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line 176</span>
|
1786
1894
|
|
1787
1895
|
<span class='kw'>def</span> <span class='id identifier rubyid_executable_path'>executable_path</span>
|
1788
1896
|
<span class='id identifier rubyid_launcher'>launcher</span><span class='period'>.</span><span class='id identifier rubyid_executable_path'>executable_path</span>
|
@@ -1795,7 +1903,7 @@
|
|
1795
1903
|
<div class="method_details ">
|
1796
1904
|
<h3 class="signature " id="launch-instance_method">
|
1797
1905
|
|
1798
|
-
#<strong>launch</strong>(product: nil, executable_path: nil, ignore_default_args: nil, handle_SIGINT: nil, handle_SIGTERM: nil, handle_SIGHUP: nil, timeout: nil, dumpio: nil, env: nil, pipe: nil, args: nil, user_data_dir: nil, devtools: nil, headless: nil, ignore_https_errors: nil, default_viewport: nil, slow_mo: nil) ⇒ <tt
|
1906
|
+
#<strong>launch</strong>(product: nil, executable_path: nil, ignore_default_args: nil, handle_SIGINT: nil, handle_SIGTERM: nil, handle_SIGHUP: nil, timeout: nil, dumpio: nil, env: nil, pipe: nil, args: nil, user_data_dir: nil, devtools: nil, headless: nil, ignore_https_errors: nil, default_viewport: nil, slow_mo: nil) ⇒ <tt><span class='object_link'><a href="Puppeteer/Browser.html" title="Puppeteer::Browser (class)">Puppeteer::Browser</a></span></tt>
|
1799
1907
|
|
1800
1908
|
|
1801
1909
|
|
@@ -1813,12 +1921,222 @@
|
|
1813
1921
|
|
1814
1922
|
<li>
|
1815
1923
|
|
1816
|
-
<span class='name'>
|
1924
|
+
<span class='name'>product</span>
|
1925
|
+
|
1926
|
+
|
1927
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1928
|
+
|
1929
|
+
|
1930
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1931
|
+
|
1932
|
+
|
1933
|
+
</li>
|
1934
|
+
|
1935
|
+
<li>
|
1936
|
+
|
1937
|
+
<span class='name'>executable_path</span>
|
1938
|
+
|
1939
|
+
|
1940
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1941
|
+
|
1942
|
+
|
1943
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1944
|
+
|
1945
|
+
|
1946
|
+
</li>
|
1947
|
+
|
1948
|
+
<li>
|
1949
|
+
|
1950
|
+
<span class='name'>ignore_default_args</span>
|
1951
|
+
|
1952
|
+
|
1953
|
+
<span class='type'>(<tt>Array<String>|nil</tt>)</span>
|
1954
|
+
|
1955
|
+
|
1956
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1957
|
+
|
1958
|
+
|
1959
|
+
</li>
|
1960
|
+
|
1961
|
+
<li>
|
1962
|
+
|
1963
|
+
<span class='name'>handle_SIGINT</span>
|
1964
|
+
|
1965
|
+
|
1966
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1967
|
+
|
1968
|
+
|
1969
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1970
|
+
|
1971
|
+
|
1972
|
+
</li>
|
1973
|
+
|
1974
|
+
<li>
|
1975
|
+
|
1976
|
+
<span class='name'>handle_SIGTERM</span>
|
1977
|
+
|
1978
|
+
|
1979
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1980
|
+
|
1981
|
+
|
1982
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1983
|
+
|
1984
|
+
|
1985
|
+
</li>
|
1986
|
+
|
1987
|
+
<li>
|
1988
|
+
|
1989
|
+
<span class='name'>handle_SIGHUP</span>
|
1990
|
+
|
1991
|
+
|
1992
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1993
|
+
|
1994
|
+
|
1995
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1817
1996
|
|
1818
1997
|
|
1819
|
-
|
1998
|
+
</li>
|
1999
|
+
|
2000
|
+
<li>
|
2001
|
+
|
2002
|
+
<span class='name'>timeout</span>
|
2003
|
+
|
2004
|
+
|
2005
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
2006
|
+
|
2007
|
+
|
2008
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2009
|
+
|
2010
|
+
|
2011
|
+
</li>
|
2012
|
+
|
2013
|
+
<li>
|
2014
|
+
|
2015
|
+
<span class='name'>dumpio</span>
|
1820
2016
|
|
1821
2017
|
|
2018
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
2019
|
+
|
2020
|
+
|
2021
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2022
|
+
|
2023
|
+
|
2024
|
+
</li>
|
2025
|
+
|
2026
|
+
<li>
|
2027
|
+
|
2028
|
+
<span class='name'>env</span>
|
2029
|
+
|
2030
|
+
|
2031
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
2032
|
+
|
2033
|
+
|
2034
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2035
|
+
|
2036
|
+
|
2037
|
+
</li>
|
2038
|
+
|
2039
|
+
<li>
|
2040
|
+
|
2041
|
+
<span class='name'>pipe</span>
|
2042
|
+
|
2043
|
+
|
2044
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
2045
|
+
|
2046
|
+
|
2047
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2048
|
+
|
2049
|
+
|
2050
|
+
</li>
|
2051
|
+
|
2052
|
+
<li>
|
2053
|
+
|
2054
|
+
<span class='name'>args</span>
|
2055
|
+
|
2056
|
+
|
2057
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
2058
|
+
|
2059
|
+
|
2060
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2061
|
+
|
2062
|
+
|
2063
|
+
</li>
|
2064
|
+
|
2065
|
+
<li>
|
2066
|
+
|
2067
|
+
<span class='name'>user_data_dir</span>
|
2068
|
+
|
2069
|
+
|
2070
|
+
<span class='type'>(<tt>String</tt>)</span>
|
2071
|
+
|
2072
|
+
|
2073
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2074
|
+
|
2075
|
+
|
2076
|
+
</li>
|
2077
|
+
|
2078
|
+
<li>
|
2079
|
+
|
2080
|
+
<span class='name'>devtools</span>
|
2081
|
+
|
2082
|
+
|
2083
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
2084
|
+
|
2085
|
+
|
2086
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2087
|
+
|
2088
|
+
|
2089
|
+
</li>
|
2090
|
+
|
2091
|
+
<li>
|
2092
|
+
|
2093
|
+
<span class='name'>headless</span>
|
2094
|
+
|
2095
|
+
|
2096
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
2097
|
+
|
2098
|
+
|
2099
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2100
|
+
|
2101
|
+
|
2102
|
+
</li>
|
2103
|
+
|
2104
|
+
<li>
|
2105
|
+
|
2106
|
+
<span class='name'>ignore_https_errors</span>
|
2107
|
+
|
2108
|
+
|
2109
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
2110
|
+
|
2111
|
+
|
2112
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2113
|
+
|
2114
|
+
|
2115
|
+
</li>
|
2116
|
+
|
2117
|
+
<li>
|
2118
|
+
|
2119
|
+
<span class='name'>default_viewport</span>
|
2120
|
+
|
2121
|
+
|
2122
|
+
<span class='type'>(<tt><span class='object_link'><a href="Puppeteer/Viewport.html" title="Puppeteer::Viewport (class)">Puppeteer::Viewport</a></span>|nil</tt>)</span>
|
2123
|
+
|
2124
|
+
|
2125
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2126
|
+
|
2127
|
+
|
2128
|
+
</li>
|
2129
|
+
|
2130
|
+
<li>
|
2131
|
+
|
2132
|
+
<span class='name'>slow_mo</span>
|
2133
|
+
|
2134
|
+
|
2135
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
2136
|
+
|
2137
|
+
|
2138
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
2139
|
+
|
1822
2140
|
|
1823
2141
|
</li>
|
1824
2142
|
|
@@ -1830,7 +2148,7 @@
|
|
1830
2148
|
<li>
|
1831
2149
|
|
1832
2150
|
|
1833
|
-
<span class='type'>(<tt
|
2151
|
+
<span class='type'>(<tt><span class='object_link'><a href="Puppeteer/Browser.html" title="Puppeteer::Browser (class)">Puppeteer::Browser</a></span></tt>)</span>
|
1834
2152
|
|
1835
2153
|
|
1836
2154
|
|
@@ -1844,22 +2162,6 @@
|
|
1844
2162
|
<pre class="lines">
|
1845
2163
|
|
1846
2164
|
|
1847
|
-
77
|
1848
|
-
78
|
1849
|
-
79
|
1850
|
-
80
|
1851
|
-
81
|
1852
|
-
82
|
1853
|
-
83
|
1854
|
-
84
|
1855
|
-
85
|
1856
|
-
86
|
1857
|
-
87
|
1858
|
-
88
|
1859
|
-
89
|
1860
|
-
90
|
1861
|
-
91
|
1862
|
-
92
|
1863
2165
|
93
|
1864
2166
|
94
|
1865
2167
|
95
|
@@ -1893,10 +2195,26 @@
|
|
1893
2195
|
123
|
1894
2196
|
124
|
1895
2197
|
125
|
1896
|
-
126
|
2198
|
+
126
|
2199
|
+
127
|
2200
|
+
128
|
2201
|
+
129
|
2202
|
+
130
|
2203
|
+
131
|
2204
|
+
132
|
2205
|
+
133
|
2206
|
+
134
|
2207
|
+
135
|
2208
|
+
136
|
2209
|
+
137
|
2210
|
+
138
|
2211
|
+
139
|
2212
|
+
140
|
2213
|
+
141
|
2214
|
+
142</pre>
|
1897
2215
|
</td>
|
1898
2216
|
<td>
|
1899
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line
|
2217
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line 93</span>
|
1900
2218
|
|
1901
2219
|
<span class='kw'>def</span> <span class='id identifier rubyid_launch'>launch</span><span class='lparen'>(</span>
|
1902
2220
|
<span class='label'>product:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
@@ -1956,7 +2274,7 @@
|
|
1956
2274
|
<div class="method_details ">
|
1957
2275
|
<h3 class="signature " id="product-instance_method">
|
1958
2276
|
|
1959
|
-
#<strong>product</strong> ⇒ <tt>
|
2277
|
+
#<strong>product</strong> ⇒ <tt>String</tt>
|
1960
2278
|
|
1961
2279
|
|
1962
2280
|
|
@@ -1976,7 +2294,7 @@
|
|
1976
2294
|
<li>
|
1977
2295
|
|
1978
2296
|
|
1979
|
-
<span class='type'>(<tt>
|
2297
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1980
2298
|
|
1981
2299
|
|
1982
2300
|
|
@@ -1990,12 +2308,12 @@
|
|
1990
2308
|
<pre class="lines">
|
1991
2309
|
|
1992
2310
|
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
2311
|
+
190
|
2312
|
+
191
|
2313
|
+
192</pre>
|
1996
2314
|
</td>
|
1997
2315
|
<td>
|
1998
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line
|
2316
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line 190</span>
|
1999
2317
|
|
2000
2318
|
<span class='kw'>def</span> <span class='id identifier rubyid_product'>product</span>
|
2001
2319
|
<span class='id identifier rubyid_launcher'>launcher</span><span class='period'>.</span><span class='id identifier rubyid_product'>product</span>
|
@@ -2010,7 +2328,7 @@
|
|
2010
2328
|
</div>
|
2011
2329
|
|
2012
2330
|
<div id="footer">
|
2013
|
-
Generated on
|
2331
|
+
Generated on Tue Jun 23 10:24:58 2020 by
|
2014
2332
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2015
2333
|
0.9.24 (ruby-2.6.3).
|
2016
2334
|
</div>
|