puppeteer-ruby 0.0.6 → 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 +5 -2
- data/docs/Puppeteer.html +432 -104
- data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
- data/docs/Puppeteer/Browser.html +261 -153
- data/docs/Puppeteer/BrowserContext.html +2 -2
- data/docs/Puppeteer/BrowserFetcher.html +1 -1
- data/docs/Puppeteer/BrowserRunner.html +1 -1
- data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +1 -1
- data/docs/Puppeteer/CDPSession.html +2 -2
- data/docs/Puppeteer/CDPSession/Error.html +1 -1
- data/docs/Puppeteer/ConcurrentRubyUtils.html +14 -6
- data/docs/Puppeteer/Connection.html +66 -62
- data/docs/Puppeteer/Connection/MessageCallback.html +1 -1
- data/docs/Puppeteer/Connection/ProtocolError.html +1 -1
- data/docs/Puppeteer/Connection/RequestDebugPrinter.html +5 -5
- data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +12 -12
- data/docs/Puppeteer/ConsoleMessage.html +1 -1
- data/docs/Puppeteer/ConsoleMessage/Location.html +1 -1
- data/docs/Puppeteer/DOMWorld.html +130 -33
- data/docs/Puppeteer/DOMWorld/DetachedError.html +1 -1
- data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +1 -1
- data/docs/Puppeteer/DebugPrint.html +1 -1
- data/docs/Puppeteer/Device.html +1 -1
- data/docs/Puppeteer/Devices.html +1 -1
- data/docs/Puppeteer/ElementHandle.html +960 -218
- data/docs/Puppeteer/ElementHandle/BoundingBox.html +507 -0
- data/docs/Puppeteer/ElementHandle/BoxModel.html +404 -0
- data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +5 -5
- data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +5 -5
- data/docs/Puppeteer/ElementHandle/Point.html +40 -29
- data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +1 -1
- data/docs/Puppeteer/EmulationManager.html +1 -1
- data/docs/Puppeteer/EventCallbackable.html +83 -17
- data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
- data/docs/Puppeteer/ExecutionContext.html +114 -11
- 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 +455 -0
- data/docs/Puppeteer/Frame.html +425 -289
- data/docs/Puppeteer/FrameManager.html +23 -27
- data/docs/Puppeteer/FrameManager/NavigationError.html +1 -1
- data/docs/Puppeteer/IfPresent.html +1 -1
- data/docs/Puppeteer/JSHandle.html +1 -1
- data/docs/Puppeteer/Keyboard.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDefinition.html +1 -1
- data/docs/Puppeteer/Keyboard/KeyDescription.html +1 -1
- data/docs/Puppeteer/Launcher.html +1 -1
- data/docs/Puppeteer/Launcher/Base.html +1 -1
- data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +1 -1
- data/docs/Puppeteer/Launcher/BrowserOptions.html +1 -1
- data/docs/Puppeteer/Launcher/Chrome.html +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 +2 -2
- data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
- data/docs/Puppeteer/Page.html +1049 -354
- 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 +150 -198
- data/docs/Puppeteer/Target/InitializeFailure.html +1 -1
- data/docs/Puppeteer/Target/TargetInfo.html +1 -1
- data/docs/Puppeteer/TimeoutError.html +2 -2
- data/docs/Puppeteer/TimeoutSettings.html +1 -1
- data/docs/Puppeteer/TouchScreen.html +1 -1
- data/docs/Puppeteer/Viewport.html +81 -1
- data/docs/Puppeteer/WaitTask.html +1 -1
- data/docs/Puppeteer/WaitTask/TerminatedError.html +1 -1
- data/docs/Puppeteer/WaitTask/TimeoutError.html +1 -1
- data/docs/Puppeteer/WebSocket.html +26 -26
- data/docs/Puppeteer/WebSocket/DriverImpl.html +1 -1
- data/docs/Puppeteer/WebSocket/TransportError.html +124 -0
- data/docs/Puppeteer/WebSocketTransport.html +9 -9
- data/docs/Puppeteer/WebSocktTransportError.html +1 -1
- data/docs/_index.html +40 -19
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +7 -3
- data/docs/index.html +7 -3
- data/docs/method_list.html +785 -513
- data/docs/top-level-namespace.html +1 -1
- data/lib/puppeteer.rb +43 -13
- data/lib/puppeteer/browser.rb +26 -6
- data/lib/puppeteer/browser_runner.rb +1 -1
- data/lib/puppeteer/concurrent_ruby_utils.rb +6 -2
- data/lib/puppeteer/connection.rb +13 -1
- data/lib/puppeteer/dom_world.rb +16 -18
- data/lib/puppeteer/element_handle.rb +147 -168
- data/lib/puppeteer/element_handle/bounding_box.rb +12 -0
- data/lib/puppeteer/element_handle/box_model.rb +19 -0
- data/lib/puppeteer/element_handle/point.rb +26 -0
- data/lib/puppeteer/errors.rb +1 -3
- data/lib/puppeteer/event_callbackable.rb +11 -0
- data/lib/puppeteer/execution_context.rb +13 -0
- data/lib/puppeteer/file_chooser.rb +29 -0
- data/lib/puppeteer/frame.rb +19 -1
- data/lib/puppeteer/frame_manager.rb +0 -2
- data/lib/puppeteer/launcher.rb +6 -6
- data/lib/puppeteer/launcher/chrome.rb +49 -3
- data/lib/puppeteer/mouse.rb +3 -8
- data/lib/puppeteer/page.rb +126 -54
- data/lib/puppeteer/remote_object.rb +15 -1
- data/lib/puppeteer/target.rb +25 -25
- data/lib/puppeteer/version.rb +1 -1
- data/lib/puppeteer/viewport.rb +18 -0
- data/lib/puppeteer/web_socket.rb +3 -1
- data/lib/puppeteer/web_socket_transport.rb +8 -8
- data/puppeteer-ruby.png +0 -0
- metadata +12 -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
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
A Ruby port of [puppeteer](https://pptr.dev/).
|
4
4
|
|
5
|
+
![logo](puppeteer-ruby.png)
|
6
|
+
|
5
7
|
REMARK: This Gem is NOT production-ready!!
|
6
8
|
|
7
9
|
## Getting Started
|
@@ -43,10 +45,11 @@ Puppeteer.launch(headless: false, slow_mo: 50, args: ['--guest', '--window-size=
|
|
43
45
|
end
|
44
46
|
```
|
45
47
|
|
46
|
-
|
48
|
+
More usage examples can be found [here](https://github.com/YusukeIwaki/puppeteer-ruby-example)
|
47
49
|
|
50
|
+
## API
|
48
51
|
|
49
|
-
|
52
|
+
https://yusukeiwaki.github.io/puppeteer-ruby/
|
50
53
|
|
51
54
|
## Contributing
|
52
55
|
|
data/docs/Puppeteer.html
CHANGED
@@ -120,7 +120,7 @@
|
|
120
120
|
|
121
121
|
|
122
122
|
|
123
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Puppeteer/Browser.html" title="Puppeteer::Browser (class)">Browser</a></span>, <span class='object_link'><a href="Puppeteer/BrowserContext.html" title="Puppeteer::BrowserContext (class)">BrowserContext</a></span>, <span class='object_link'><a href="Puppeteer/BrowserFetcher.html" title="Puppeteer::BrowserFetcher (class)">BrowserFetcher</a></span>, <span class='object_link'><a href="Puppeteer/BrowserRunner.html" title="Puppeteer::BrowserRunner (class)">BrowserRunner</a></span>, <span class='object_link'><a href="Puppeteer/CDPSession.html" title="Puppeteer::CDPSession (class)">CDPSession</a></span>, <span class='object_link'><a href="Puppeteer/Connection.html" title="Puppeteer::Connection (class)">Connection</a></span>, <span class='object_link'><a href="Puppeteer/ConsoleMessage.html" title="Puppeteer::ConsoleMessage (class)">ConsoleMessage</a></span>, <span class='object_link'><a href="Puppeteer/DOMWorld.html" title="Puppeteer::DOMWorld (class)">DOMWorld</a></span>, <span class='object_link'><a href="Puppeteer/Device.html" title="Puppeteer::Device (class)">Device</a></span>, <span class='object_link'><a href="Puppeteer/Devices.html" title="Puppeteer::Devices (class)">Devices</a></span>, <span class='object_link'><a href="Puppeteer/ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>, <span class='object_link'><a href="Puppeteer/EmulationManager.html" title="Puppeteer::EmulationManager (class)">EmulationManager</a></span>, <span class='object_link'><a href="Puppeteer/ExecutionContext.html" title="Puppeteer::ExecutionContext (class)">ExecutionContext</a></span>, <span class='object_link'><a href="Puppeteer/Frame.html" title="Puppeteer::Frame (class)">Frame</a></span>, <span class='object_link'><a href="Puppeteer/FrameManager.html" title="Puppeteer::FrameManager (class)">FrameManager</a></span>, <span class='object_link'><a href="Puppeteer/JSHandle.html" title="Puppeteer::JSHandle (class)">JSHandle</a></span>, <span class='object_link'><a href="Puppeteer/Keyboard.html" title="Puppeteer::Keyboard (class)">Keyboard</a></span>, <span class='object_link'><a href="Puppeteer/LifecycleWatcher.html" title="Puppeteer::LifecycleWatcher (class)">LifecycleWatcher</a></span>, <span class='object_link'><a href="Puppeteer/Mouse.html" title="Puppeteer::Mouse (class)">Mouse</a></span>, <span class='object_link'><a href="Puppeteer/NetworkManager.html" title="Puppeteer::NetworkManager (class)">NetworkManager</a></span>, <span class='object_link'><a href="Puppeteer/Page.html" title="Puppeteer::Page (class)">Page</a></span>, <span class='object_link'><a href="Puppeteer/RemoteObject.html" title="Puppeteer::RemoteObject (class)">RemoteObject</a></span>, <span class='object_link'><a href="Puppeteer/Target.html" title="Puppeteer::Target (class)">Target</a></span>, <span class='object_link'><a href="Puppeteer/TimeoutError.html" title="Puppeteer::TimeoutError (class)">TimeoutError</a></span>, <span class='object_link'><a href="Puppeteer/TimeoutSettings.html" title="Puppeteer::TimeoutSettings (class)">TimeoutSettings</a></span>, <span class='object_link'><a href="Puppeteer/TouchScreen.html" title="Puppeteer::TouchScreen (class)">TouchScreen</a></span>, <span class='object_link'><a href="Puppeteer/Viewport.html" title="Puppeteer::Viewport (class)">Viewport</a></span>, <span class='object_link'><a href="Puppeteer/WaitTask.html" title="Puppeteer::WaitTask (class)">WaitTask</a></span>, <span class='object_link'><a href="Puppeteer/WebSocket.html" title="Puppeteer::WebSocket (class)">WebSocket</a></span>, <span class='object_link'><a href="Puppeteer/WebSocketTransport.html" title="Puppeteer::WebSocketTransport (class)">WebSocketTransport</a></span
|
123
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Puppeteer/Browser.html" title="Puppeteer::Browser (class)">Browser</a></span>, <span class='object_link'><a href="Puppeteer/BrowserContext.html" title="Puppeteer::BrowserContext (class)">BrowserContext</a></span>, <span class='object_link'><a href="Puppeteer/BrowserFetcher.html" title="Puppeteer::BrowserFetcher (class)">BrowserFetcher</a></span>, <span class='object_link'><a href="Puppeteer/BrowserRunner.html" title="Puppeteer::BrowserRunner (class)">BrowserRunner</a></span>, <span class='object_link'><a href="Puppeteer/CDPSession.html" title="Puppeteer::CDPSession (class)">CDPSession</a></span>, <span class='object_link'><a href="Puppeteer/Connection.html" title="Puppeteer::Connection (class)">Connection</a></span>, <span class='object_link'><a href="Puppeteer/ConsoleMessage.html" title="Puppeteer::ConsoleMessage (class)">ConsoleMessage</a></span>, <span class='object_link'><a href="Puppeteer/DOMWorld.html" title="Puppeteer::DOMWorld (class)">DOMWorld</a></span>, <span class='object_link'><a href="Puppeteer/Device.html" title="Puppeteer::Device (class)">Device</a></span>, <span class='object_link'><a href="Puppeteer/Devices.html" title="Puppeteer::Devices (class)">Devices</a></span>, <span class='object_link'><a href="Puppeteer/ElementHandle.html" title="Puppeteer::ElementHandle (class)">ElementHandle</a></span>, <span class='object_link'><a href="Puppeteer/EmulationManager.html" title="Puppeteer::EmulationManager (class)">EmulationManager</a></span>, <span class='object_link'><a href="Puppeteer/ExecutionContext.html" title="Puppeteer::ExecutionContext (class)">ExecutionContext</a></span>, <span class='object_link'><a href="Puppeteer/FileChooser.html" title="Puppeteer::FileChooser (class)">FileChooser</a></span>, <span class='object_link'><a href="Puppeteer/Frame.html" title="Puppeteer::Frame (class)">Frame</a></span>, <span class='object_link'><a href="Puppeteer/FrameManager.html" title="Puppeteer::FrameManager (class)">FrameManager</a></span>, <span class='object_link'><a href="Puppeteer/JSHandle.html" title="Puppeteer::JSHandle (class)">JSHandle</a></span>, <span class='object_link'><a href="Puppeteer/Keyboard.html" title="Puppeteer::Keyboard (class)">Keyboard</a></span>, <span class='object_link'><a href="Puppeteer/LifecycleWatcher.html" title="Puppeteer::LifecycleWatcher (class)">LifecycleWatcher</a></span>, <span class='object_link'><a href="Puppeteer/Mouse.html" title="Puppeteer::Mouse (class)">Mouse</a></span>, <span class='object_link'><a href="Puppeteer/NetworkManager.html" title="Puppeteer::NetworkManager (class)">NetworkManager</a></span>, <span class='object_link'><a href="Puppeteer/Page.html" title="Puppeteer::Page (class)">Page</a></span>, <span class='object_link'><a href="Puppeteer/RemoteObject.html" title="Puppeteer::RemoteObject (class)">RemoteObject</a></span>, <span class='object_link'><a href="Puppeteer/Target.html" title="Puppeteer::Target (class)">Target</a></span>, <span class='object_link'><a href="Puppeteer/TimeoutError.html" title="Puppeteer::TimeoutError (class)">TimeoutError</a></span>, <span class='object_link'><a href="Puppeteer/TimeoutSettings.html" title="Puppeteer::TimeoutSettings (class)">TimeoutSettings</a></span>, <span class='object_link'><a href="Puppeteer/TouchScreen.html" title="Puppeteer::TouchScreen (class)">TouchScreen</a></span>, <span class='object_link'><a href="Puppeteer/Viewport.html" title="Puppeteer::Viewport (class)">Viewport</a></span>, <span class='object_link'><a href="Puppeteer/WaitTask.html" title="Puppeteer::WaitTask (class)">WaitTask</a></span>, <span class='object_link'><a href="Puppeteer/WebSocket.html" title="Puppeteer::WebSocket (class)">WebSocket</a></span>, <span class='object_link'><a href="Puppeteer/WebSocketTransport.html" title="Puppeteer::WebSocketTransport (class)">WebSocketTransport</a></span>
|
124
124
|
|
125
125
|
|
126
126
|
</p>
|
@@ -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
|
|
@@ -1333,14 +1333,14 @@
|
|
1333
1333
|
<pre class="lines">
|
1334
1334
|
|
1335
1335
|
|
1336
|
-
68
|
1337
1336
|
69
|
1338
1337
|
70
|
1339
1338
|
71
|
1340
|
-
72
|
1339
|
+
72
|
1340
|
+
73</pre>
|
1341
1341
|
</td>
|
1342
1342
|
<td>
|
1343
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line
|
1343
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line 69</span>
|
1344
1344
|
|
1345
1345
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>project_root:</span><span class='comma'>,</span> <span class='label'>preferred_revision:</span><span class='comma'>,</span> <span class='label'>is_puppeteer_core:</span><span class='rparen'>)</span>
|
1346
1346
|
<span class='ivar'>@project_root</span> <span class='op'>=</span> <span class='id identifier rubyid_project_root'>project_root</span>
|
@@ -1374,16 +1374,16 @@
|
|
1374
1374
|
<pre class="lines">
|
1375
1375
|
|
1376
1376
|
|
1377
|
-
56
|
1378
1377
|
57
|
1379
1378
|
58
|
1380
1379
|
59
|
1381
1380
|
60
|
1382
1381
|
61
|
1383
|
-
62
|
1382
|
+
62
|
1383
|
+
63</pre>
|
1384
1384
|
</td>
|
1385
1385
|
<td>
|
1386
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line
|
1386
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line 57</span>
|
1387
1387
|
|
1388
1388
|
<span class='kw'>def</span> <span class='id identifier rubyid_instance'>instance</span>
|
1389
1389
|
<span class='ivar'>@instance</span> <span class='op'>||=</span> <span class='const'><span class='object_link'><a href="" title="Puppeteer (class)">Puppeteer</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Puppeteer#initialize (method)">new</a></span></span><span class='lparen'>(</span>
|
@@ -1412,12 +1412,12 @@
|
|
1412
1412
|
<pre class="lines">
|
1413
1413
|
|
1414
1414
|
|
1415
|
-
52
|
1416
1415
|
53
|
1417
|
-
54
|
1416
|
+
54
|
1417
|
+
55</pre>
|
1418
1418
|
</td>
|
1419
1419
|
<td>
|
1420
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line
|
1420
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer.rb', line 53</span>
|
1421
1421
|
|
1422
1422
|
<span class='kw'>def</span> <span class='id identifier rubyid_method_missing'>method_missing</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1423
1423
|
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
@@ -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
|
+
|
1498
|
+
|
1499
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1500
|
+
|
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>
|
1458
1516
|
|
1459
1517
|
|
1460
|
-
|
1518
|
+
</li>
|
1519
|
+
|
1520
|
+
<li>
|
1521
|
+
|
1522
|
+
<span class='name'>slow_mo</span>
|
1523
|
+
|
1461
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,27 +1552,32 @@
|
|
1485
1552
|
<pre class="lines">
|
1486
1553
|
|
1487
1554
|
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1555
|
+
151
|
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>
|
1506
1578
|
</td>
|
1507
1579
|
<td>
|
1508
|
-
<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>
|
1509
1581
|
|
1510
1582
|
<span class='kw'>def</span> <span class='id identifier rubyid_connect'>connect</span><span class='lparen'>(</span>
|
1511
1583
|
<span class='label'>browser_ws_endpoint:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
@@ -1523,7 +1595,12 @@
|
|
1523
1595
|
<span class='label'>default_viewport:</span> <span class='id identifier rubyid_default_viewport'>default_viewport</span><span class='comma'>,</span>
|
1524
1596
|
<span class='label'>slow_mo:</span> <span class='id identifier rubyid_slow_mo'>slow_mo</span><span class='comma'>,</span>
|
1525
1597
|
<span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span>
|
1526
|
-
<span class='id identifier rubyid_launcher'>launcher</span><span class='period'>.</span><span class='id identifier rubyid_connect'>connect</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
1598
|
+
<span class='id identifier rubyid_browser'>browser</span> <span class='op'>=</span> <span class='id identifier rubyid_launcher'>launcher</span><span class='period'>.</span><span class='id identifier rubyid_connect'>connect</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
1599
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
|
1600
|
+
<span class='kw'>yield</span><span class='lparen'>(</span><span class='id identifier rubyid_browser'>browser</span><span class='rparen'>)</span>
|
1601
|
+
<span class='kw'>else</span>
|
1602
|
+
<span class='id identifier rubyid_browser'>browser</span>
|
1603
|
+
<span class='kw'>end</span>
|
1527
1604
|
<span class='kw'>end</span></pre>
|
1528
1605
|
</td>
|
1529
1606
|
</tr>
|
@@ -1584,12 +1661,12 @@
|
|
1584
1661
|
<pre class="lines">
|
1585
1662
|
|
1586
1663
|
|
1587
|
-
|
1588
|
-
|
1589
|
-
|
1664
|
+
221
|
1665
|
+
222
|
1666
|
+
223</pre>
|
1590
1667
|
</td>
|
1591
1668
|
<td>
|
1592
|
-
<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>
|
1593
1670
|
|
1594
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>
|
1595
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>
|
@@ -1602,7 +1679,7 @@
|
|
1602
1679
|
<div class="method_details ">
|
1603
1680
|
<h3 class="signature " id="default_args-instance_method">
|
1604
1681
|
|
1605
|
-
#<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>
|
1606
1683
|
|
1607
1684
|
|
1608
1685
|
|
@@ -1620,11 +1697,52 @@
|
|
1620
1697
|
|
1621
1698
|
<li>
|
1622
1699
|
|
1623
|
-
<span class='name'>
|
1700
|
+
<span class='name'>args</span>
|
1701
|
+
|
1702
|
+
|
1703
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
1704
|
+
|
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>
|
1624
1733
|
|
1625
1734
|
|
1626
|
-
|
1735
|
+
</li>
|
1736
|
+
|
1737
|
+
<li>
|
1738
|
+
|
1739
|
+
<span class='name'>headless</span>
|
1740
|
+
|
1627
1741
|
|
1742
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1743
|
+
|
1744
|
+
|
1745
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
1628
1746
|
|
1629
1747
|
|
1630
1748
|
</li>
|
@@ -1637,7 +1755,7 @@
|
|
1637
1755
|
<li>
|
1638
1756
|
|
1639
1757
|
|
1640
|
-
<span class='type'>(<tt
|
1758
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
1641
1759
|
|
1642
1760
|
|
1643
1761
|
|
@@ -1651,18 +1769,18 @@
|
|
1651
1769
|
<pre class="lines">
|
1652
1770
|
|
1653
1771
|
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
|
1659
|
-
|
1660
|
-
|
1661
|
-
|
1662
|
-
|
1772
|
+
209
|
1773
|
+
210
|
1774
|
+
211
|
1775
|
+
212
|
1776
|
+
213
|
1777
|
+
214
|
1778
|
+
215
|
1779
|
+
216
|
1780
|
+
217</pre>
|
1663
1781
|
</td>
|
1664
1782
|
<td>
|
1665
|
-
<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>
|
1666
1784
|
|
1667
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>
|
1668
1786
|
<span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
@@ -1715,12 +1833,12 @@
|
|
1715
1833
|
<pre class="lines">
|
1716
1834
|
|
1717
1835
|
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1836
|
+
195
|
1837
|
+
196
|
1838
|
+
197</pre>
|
1721
1839
|
</td>
|
1722
1840
|
<td>
|
1723
|
-
<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>
|
1724
1842
|
|
1725
1843
|
<span class='kw'>def</span> <span class='id identifier rubyid_devices'>devices</span>
|
1726
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>
|
@@ -1733,7 +1851,7 @@
|
|
1733
1851
|
<div class="method_details ">
|
1734
1852
|
<h3 class="signature " id="executable_path-instance_method">
|
1735
1853
|
|
1736
|
-
#<strong>executable_path</strong> ⇒ <tt>
|
1854
|
+
#<strong>executable_path</strong> ⇒ <tt>String</tt>
|
1737
1855
|
|
1738
1856
|
|
1739
1857
|
|
@@ -1753,7 +1871,7 @@
|
|
1753
1871
|
<li>
|
1754
1872
|
|
1755
1873
|
|
1756
|
-
<span class='type'>(<tt>
|
1874
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1757
1875
|
|
1758
1876
|
|
1759
1877
|
|
@@ -1767,12 +1885,12 @@
|
|
1767
1885
|
<pre class="lines">
|
1768
1886
|
|
1769
1887
|
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
1888
|
+
176
|
1889
|
+
177
|
1890
|
+
178</pre>
|
1773
1891
|
</td>
|
1774
1892
|
<td>
|
1775
|
-
<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>
|
1776
1894
|
|
1777
1895
|
<span class='kw'>def</span> <span class='id identifier rubyid_executable_path'>executable_path</span>
|
1778
1896
|
<span class='id identifier rubyid_launcher'>launcher</span><span class='period'>.</span><span class='id identifier rubyid_executable_path'>executable_path</span>
|
@@ -1785,7 +1903,7 @@
|
|
1785
1903
|
<div class="method_details ">
|
1786
1904
|
<h3 class="signature " id="launch-instance_method">
|
1787
1905
|
|
1788
|
-
#<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>
|
1789
1907
|
|
1790
1908
|
|
1791
1909
|
|
@@ -1803,12 +1921,222 @@
|
|
1803
1921
|
|
1804
1922
|
<li>
|
1805
1923
|
|
1806
|
-
<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>
|
1807
1970
|
|
1808
1971
|
|
1809
|
-
|
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>
|
1996
|
+
|
1997
|
+
|
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>
|
2016
|
+
|
2017
|
+
|
2018
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1810
2019
|
|
1811
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
|
+
|
1812
2140
|
|
1813
2141
|
</li>
|
1814
2142
|
|
@@ -1820,7 +2148,7 @@
|
|
1820
2148
|
<li>
|
1821
2149
|
|
1822
2150
|
|
1823
|
-
<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>
|
1824
2152
|
|
1825
2153
|
|
1826
2154
|
|
@@ -1834,23 +2162,6 @@
|
|
1834
2162
|
<pre class="lines">
|
1835
2163
|
|
1836
2164
|
|
1837
|
-
76
|
1838
|
-
77
|
1839
|
-
78
|
1840
|
-
79
|
1841
|
-
80
|
1842
|
-
81
|
1843
|
-
82
|
1844
|
-
83
|
1845
|
-
84
|
1846
|
-
85
|
1847
|
-
86
|
1848
|
-
87
|
1849
|
-
88
|
1850
|
-
89
|
1851
|
-
90
|
1852
|
-
91
|
1853
|
-
92
|
1854
2165
|
93
|
1855
2166
|
94
|
1856
2167
|
95
|
@@ -1883,10 +2194,27 @@
|
|
1883
2194
|
122
|
1884
2195
|
123
|
1885
2196
|
124
|
1886
|
-
125
|
2197
|
+
125
|
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>
|
1887
2215
|
</td>
|
1888
2216
|
<td>
|
1889
|
-
<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>
|
1890
2218
|
|
1891
2219
|
<span class='kw'>def</span> <span class='id identifier rubyid_launch'>launch</span><span class='lparen'>(</span>
|
1892
2220
|
<span class='label'>product:</span> <span class='kw'>nil</span><span class='comma'>,</span>
|
@@ -1946,7 +2274,7 @@
|
|
1946
2274
|
<div class="method_details ">
|
1947
2275
|
<h3 class="signature " id="product-instance_method">
|
1948
2276
|
|
1949
|
-
#<strong>product</strong> ⇒ <tt>
|
2277
|
+
#<strong>product</strong> ⇒ <tt>String</tt>
|
1950
2278
|
|
1951
2279
|
|
1952
2280
|
|
@@ -1966,7 +2294,7 @@
|
|
1966
2294
|
<li>
|
1967
2295
|
|
1968
2296
|
|
1969
|
-
<span class='type'>(<tt>
|
2297
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1970
2298
|
|
1971
2299
|
|
1972
2300
|
|
@@ -1980,12 +2308,12 @@
|
|
1980
2308
|
<pre class="lines">
|
1981
2309
|
|
1982
2310
|
|
1983
|
-
|
1984
|
-
|
1985
|
-
|
2311
|
+
190
|
2312
|
+
191
|
2313
|
+
192</pre>
|
1986
2314
|
</td>
|
1987
2315
|
<td>
|
1988
|
-
<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>
|
1989
2317
|
|
1990
2318
|
<span class='kw'>def</span> <span class='id identifier rubyid_product'>product</span>
|
1991
2319
|
<span class='id identifier rubyid_launcher'>launcher</span><span class='period'>.</span><span class='id identifier rubyid_product'>product</span>
|
@@ -2000,7 +2328,7 @@
|
|
2000
2328
|
</div>
|
2001
2329
|
|
2002
2330
|
<div id="footer">
|
2003
|
-
Generated on
|
2331
|
+
Generated on Tue Jun 23 10:24:58 2020 by
|
2004
2332
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2005
2333
|
0.9.24 (ruby-2.6.3).
|
2006
2334
|
</div>
|