puppeteer-ruby 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/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
data/docs/Puppeteer/Mouse.html
CHANGED
|
@@ -1085,7 +1085,7 @@
|
|
|
1085
1085
|
</div>
|
|
1086
1086
|
|
|
1087
1087
|
<div id="footer">
|
|
1088
|
-
Generated on
|
|
1088
|
+
Generated on Tue Jun 23 10:24:59 2020 by
|
|
1089
1089
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1090
1090
|
0.9.24 (ruby-2.6.3).
|
|
1091
1091
|
</div>
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
</div>
|
|
127
127
|
|
|
128
128
|
<div id="footer">
|
|
129
|
-
Generated on
|
|
129
|
+
Generated on Tue Jun 23 10:24:58 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>
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
|
|
345
345
|
|
|
346
346
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="EventCallbackable.html" title="Puppeteer::EventCallbackable (module)">EventCallbackable</a></span></h3>
|
|
347
|
-
<p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
|
|
347
|
+
<p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#observe_first-instance_method" title="Puppeteer::EventCallbackable#observe_first (method)">#observe_first</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
|
|
348
348
|
<div id="constructor_details" class="method_details_list">
|
|
349
349
|
<h2>Constructor Details</h2>
|
|
350
350
|
|
|
@@ -891,7 +891,7 @@
|
|
|
891
891
|
</div>
|
|
892
892
|
|
|
893
893
|
<div id="footer">
|
|
894
|
-
Generated on
|
|
894
|
+
Generated on Tue Jun 23 10:25:00 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 Tue Jun 23 10:25:00 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
|
@@ -117,6 +117,41 @@
|
|
|
117
117
|
|
|
118
118
|
</p>
|
|
119
119
|
|
|
120
|
+
|
|
121
|
+
<h2>
|
|
122
|
+
Constant Summary
|
|
123
|
+
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
|
124
|
+
</h2>
|
|
125
|
+
|
|
126
|
+
<dl class="constants">
|
|
127
|
+
|
|
128
|
+
<dt id="EVENT_MAPPINGS-constant" class="">EVENT_MAPPINGS =
|
|
129
|
+
|
|
130
|
+
</dt>
|
|
131
|
+
<dd><pre class="code"><span class='lbrace'>{</span>
|
|
132
|
+
<span class='label'>close:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.Close</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
|
133
|
+
<span class='comment'># console: 'Events.Page.Console',
|
|
134
|
+
</span> <span class='comment'># dialog: 'Events.Page.Dialog',
|
|
135
|
+
</span> <span class='label'>domcontentloaded:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.DOMContentLoaded</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
|
136
|
+
<span class='comment'># error:
|
|
137
|
+
</span> <span class='label'>frameattached:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.FrameAttached</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
|
138
|
+
<span class='label'>framedetached:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.FrameDetached</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
|
139
|
+
<span class='label'>framenavigated:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.FrameNavigated</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
|
140
|
+
<span class='label'>load:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.Load</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
|
141
|
+
<span class='comment'># metrics: 'Events.Page.Metrics',
|
|
142
|
+
</span> <span class='comment'># pageerror: 'Events.Page.PageError',
|
|
143
|
+
</span> <span class='label'>popup:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.Popup</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
|
144
|
+
<span class='label'>request:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.Request</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
|
145
|
+
<span class='label'>requestfailed:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.RequestFailed</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
|
146
|
+
<span class='label'>requestfinished:</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>
|
|
147
|
+
<span class='label'>response:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Events.Page.Response</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
|
148
|
+
<span class='comment'># workercreated: 'Events.Page.WorkerCreated',
|
|
149
|
+
</span> <span class='comment'># workerdestroyed: 'Events.Page.WorkerDestroyed',
|
|
150
|
+
</span><span class='rbrace'>}</span></pre></dd>
|
|
151
|
+
|
|
152
|
+
</dl>
|
|
153
|
+
|
|
154
|
+
|
|
120
155
|
|
|
121
156
|
|
|
122
157
|
|
|
@@ -1146,6 +1181,50 @@
|
|
|
1146
1181
|
|
|
1147
1182
|
|
|
1148
1183
|
|
|
1184
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
1185
|
+
|
|
1186
|
+
</li>
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
<li class="public ">
|
|
1190
|
+
<span class="summary_signature">
|
|
1191
|
+
|
|
1192
|
+
<a href="#on-instance_method" title="#on (instance method)">#<strong>on</strong>(event_name, &block) ⇒ Object </a>
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
</span>
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
1207
|
+
|
|
1208
|
+
</li>
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
<li class="public ">
|
|
1212
|
+
<span class="summary_signature">
|
|
1213
|
+
|
|
1214
|
+
<a href="#once-instance_method" title="#once (instance method)">#<strong>once</strong>(event_name, &block) ⇒ Object </a>
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
</span>
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
|
|
1149
1228
|
<span class="summary_desc"><div class='inline'></div></span>
|
|
1150
1229
|
|
|
1151
1230
|
</li>
|
|
@@ -1649,7 +1728,7 @@
|
|
|
1649
1728
|
|
|
1650
1729
|
|
|
1651
1730
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="EventCallbackable.html" title="Puppeteer::EventCallbackable (module)">EventCallbackable</a></span></h3>
|
|
1652
|
-
<p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
|
|
1731
|
+
<p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#observe_first-instance_method" title="Puppeteer::EventCallbackable#observe_first (method)">#observe_first</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
|
|
1653
1732
|
<div id="constructor_details" class="method_details_list">
|
|
1654
1733
|
<h2>Constructor Details</h2>
|
|
1655
1734
|
|
|
@@ -1945,12 +2024,12 @@
|
|
|
1945
2024
|
<pre class="lines">
|
|
1946
2025
|
|
|
1947
2026
|
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
2027
|
+
272
|
|
2028
|
+
273
|
|
2029
|
+
274</pre>
|
|
1951
2030
|
</td>
|
|
1952
2031
|
<td>
|
|
1953
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2032
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 272</span>
|
|
1954
2033
|
|
|
1955
2034
|
<span class='kw'>def</span> <span class='id identifier rubyid_accessibility'>accessibility</span>
|
|
1956
2035
|
<span class='ivar'>@accessibility</span>
|
|
@@ -1988,12 +2067,12 @@
|
|
|
1988
2067
|
<pre class="lines">
|
|
1989
2068
|
|
|
1990
2069
|
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
2070
|
+
272
|
|
2071
|
+
273
|
|
2072
|
+
274</pre>
|
|
1994
2073
|
</td>
|
|
1995
2074
|
<td>
|
|
1996
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2075
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 272</span>
|
|
1997
2076
|
|
|
1998
2077
|
<span class='kw'>def</span> <span class='id identifier rubyid_coverage'>coverage</span>
|
|
1999
2078
|
<span class='ivar'>@coverage</span>
|
|
@@ -2048,12 +2127,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2048
2127
|
<pre class="lines">
|
|
2049
2128
|
|
|
2050
2129
|
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2130
|
+
229
|
|
2131
|
+
230
|
|
2132
|
+
231</pre>
|
|
2054
2133
|
</td>
|
|
2055
2134
|
<td>
|
|
2056
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2135
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 229</span>
|
|
2057
2136
|
|
|
2058
2137
|
<span class='kw'>def</span> <span class='id identifier rubyid_javascript_enabled'>javascript_enabled</span>
|
|
2059
2138
|
<span class='ivar'>@javascript_enabled</span>
|
|
@@ -2091,12 +2170,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2091
2170
|
<pre class="lines">
|
|
2092
2171
|
|
|
2093
2172
|
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2173
|
+
272
|
|
2174
|
+
273
|
|
2175
|
+
274</pre>
|
|
2097
2176
|
</td>
|
|
2098
2177
|
<td>
|
|
2099
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2178
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 272</span>
|
|
2100
2179
|
|
|
2101
2180
|
<span class='kw'>def</span> <span class='id identifier rubyid_keyboard'>keyboard</span>
|
|
2102
2181
|
<span class='ivar'>@keyboard</span>
|
|
@@ -2134,12 +2213,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2134
2213
|
<pre class="lines">
|
|
2135
2214
|
|
|
2136
2215
|
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2216
|
+
1002
|
|
2217
|
+
1003
|
|
2218
|
+
1004</pre>
|
|
2140
2219
|
</td>
|
|
2141
2220
|
<td>
|
|
2142
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2221
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1002</span>
|
|
2143
2222
|
|
|
2144
2223
|
<span class='kw'>def</span> <span class='id identifier rubyid_mouse'>mouse</span>
|
|
2145
2224
|
<span class='ivar'>@mouse</span>
|
|
@@ -2194,12 +2273,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2194
2273
|
<pre class="lines">
|
|
2195
2274
|
|
|
2196
2275
|
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2276
|
+
229
|
|
2277
|
+
230
|
|
2278
|
+
231</pre>
|
|
2200
2279
|
</td>
|
|
2201
2280
|
<td>
|
|
2202
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2281
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 229</span>
|
|
2203
2282
|
|
|
2204
2283
|
<span class='kw'>def</span> <span class='id identifier rubyid_target'>target</span>
|
|
2205
2284
|
<span class='ivar'>@target</span>
|
|
@@ -2237,12 +2316,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2237
2316
|
<pre class="lines">
|
|
2238
2317
|
|
|
2239
2318
|
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2319
|
+
272
|
|
2320
|
+
273
|
|
2321
|
+
274</pre>
|
|
2243
2322
|
</td>
|
|
2244
2323
|
<td>
|
|
2245
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2324
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 272</span>
|
|
2246
2325
|
|
|
2247
2326
|
<span class='kw'>def</span> <span class='id identifier rubyid_touch_screen'>touch_screen</span>
|
|
2248
2327
|
<span class='ivar'>@touch_screen</span>
|
|
@@ -2280,12 +2359,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2280
2359
|
<pre class="lines">
|
|
2281
2360
|
|
|
2282
2361
|
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2362
|
+
825
|
|
2363
|
+
826
|
|
2364
|
+
827</pre>
|
|
2286
2365
|
</td>
|
|
2287
2366
|
<td>
|
|
2288
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2367
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 825</span>
|
|
2289
2368
|
|
|
2290
2369
|
<span class='kw'>def</span> <span class='id identifier rubyid_viewport'>viewport</span>
|
|
2291
2370
|
<span class='ivar'>@viewport</span>
|
|
@@ -2481,12 +2560,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2481
2560
|
<pre class="lines">
|
|
2482
2561
|
|
|
2483
2562
|
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2563
|
+
424
|
|
2564
|
+
425
|
|
2565
|
+
426</pre>
|
|
2487
2566
|
</td>
|
|
2488
2567
|
<td>
|
|
2489
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2568
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 424</span>
|
|
2490
2569
|
|
|
2491
2570
|
<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>
|
|
2492
2571
|
<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>
|
|
@@ -2548,12 +2627,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2548
2627
|
<pre class="lines">
|
|
2549
2628
|
|
|
2550
2629
|
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2630
|
+
440
|
|
2631
|
+
441
|
|
2632
|
+
442</pre>
|
|
2554
2633
|
</td>
|
|
2555
2634
|
<td>
|
|
2556
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2635
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 440</span>
|
|
2557
2636
|
|
|
2558
2637
|
<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>
|
|
2559
2638
|
<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>
|
|
@@ -2653,12 +2732,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2653
2732
|
<pre class="lines">
|
|
2654
2733
|
|
|
2655
2734
|
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2735
|
+
1017
|
|
2736
|
+
1018
|
|
2737
|
+
1019</pre>
|
|
2659
2738
|
</td>
|
|
2660
2739
|
<td>
|
|
2661
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2740
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1017</span>
|
|
2662
2741
|
|
|
2663
2742
|
<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>
|
|
2664
2743
|
<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>
|
|
@@ -2733,12 +2812,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2733
2812
|
<pre class="lines">
|
|
2734
2813
|
|
|
2735
2814
|
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2815
|
+
342
|
|
2816
|
+
343
|
|
2817
|
+
344</pre>
|
|
2739
2818
|
</td>
|
|
2740
2819
|
<td>
|
|
2741
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2820
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 342</span>
|
|
2742
2821
|
|
|
2743
2822
|
<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
2823
|
<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>
|
|
@@ -2813,12 +2892,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2813
2892
|
<pre class="lines">
|
|
2814
2893
|
|
|
2815
2894
|
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2895
|
+
358
|
|
2896
|
+
359
|
|
2897
|
+
360</pre>
|
|
2819
2898
|
</td>
|
|
2820
2899
|
<td>
|
|
2821
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2900
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 358</span>
|
|
2822
2901
|
|
|
2823
2902
|
<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
2903
|
<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>
|
|
@@ -2880,12 +2959,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2880
2959
|
<pre class="lines">
|
|
2881
2960
|
|
|
2882
2961
|
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2962
|
+
210
|
|
2963
|
+
211
|
|
2964
|
+
212</pre>
|
|
2886
2965
|
</td>
|
|
2887
2966
|
<td>
|
|
2888
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
2967
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 210</span>
|
|
2889
2968
|
|
|
2890
2969
|
<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
2970
|
<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>
|
|
@@ -2963,12 +3042,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
2963
3042
|
<pre class="lines">
|
|
2964
3043
|
|
|
2965
3044
|
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
3045
|
+
699
|
|
3046
|
+
700
|
|
3047
|
+
701</pre>
|
|
2969
3048
|
</td>
|
|
2970
3049
|
<td>
|
|
2971
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3050
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 699</span>
|
|
2972
3051
|
|
|
2973
3052
|
<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
3053
|
<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>
|
|
@@ -3032,12 +3111,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3032
3111
|
<pre class="lines">
|
|
3033
3112
|
|
|
3034
3113
|
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3114
|
+
478
|
|
3115
|
+
479
|
|
3116
|
+
480</pre>
|
|
3038
3117
|
</td>
|
|
3039
3118
|
<td>
|
|
3040
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3119
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 478</span>
|
|
3041
3120
|
|
|
3042
3121
|
<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
3122
|
<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>
|
|
@@ -3062,12 +3141,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3062
3141
|
<pre class="lines">
|
|
3063
3142
|
|
|
3064
3143
|
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3144
|
+
231
|
|
3145
|
+
232
|
|
3146
|
+
233</pre>
|
|
3068
3147
|
</td>
|
|
3069
3148
|
<td>
|
|
3070
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3149
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 231</span>
|
|
3071
3150
|
|
|
3072
3151
|
<span class='kw'>def</span> <span class='id identifier rubyid_browser'>browser</span>
|
|
3073
3152
|
<span class='ivar'>@target</span><span class='period'>.</span><span class='id identifier rubyid_browser'>browser</span>
|
|
@@ -3092,12 +3171,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3092
3171
|
<pre class="lines">
|
|
3093
3172
|
|
|
3094
3173
|
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3174
|
+
235
|
|
3175
|
+
236
|
|
3176
|
+
237</pre>
|
|
3098
3177
|
</td>
|
|
3099
3178
|
<td>
|
|
3100
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3179
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 235</span>
|
|
3101
3180
|
|
|
3102
3181
|
<span class='kw'>def</span> <span class='id identifier rubyid_browser_context'>browser_context</span>
|
|
3103
3182
|
<span class='ivar'>@target</span><span class='period'>.</span><span class='id identifier rubyid_browser_context'>browser_context</span>
|
|
@@ -3146,12 +3225,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3146
3225
|
<pre class="lines">
|
|
3147
3226
|
|
|
3148
3227
|
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3228
|
+
844
|
|
3229
|
+
845
|
|
3230
|
+
846</pre>
|
|
3152
3231
|
</td>
|
|
3153
3232
|
<td>
|
|
3154
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3233
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 844</span>
|
|
3155
3234
|
|
|
3156
3235
|
<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
3236
|
<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>
|
|
@@ -3244,12 +3323,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3244
3323
|
<pre class="lines">
|
|
3245
3324
|
|
|
3246
3325
|
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3326
|
+
1008
|
|
3327
|
+
1009
|
|
3328
|
+
1010</pre>
|
|
3250
3329
|
</td>
|
|
3251
3330
|
<td>
|
|
3252
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3331
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1008</span>
|
|
3253
3332
|
|
|
3254
3333
|
<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>
|
|
3255
3334
|
<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>
|
|
@@ -3298,19 +3377,19 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3298
3377
|
<pre class="lines">
|
|
3299
3378
|
|
|
3300
3379
|
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3380
|
+
986
|
|
3381
|
+
987
|
|
3382
|
+
988
|
|
3383
|
+
989
|
|
3384
|
+
990
|
|
3385
|
+
991
|
|
3386
|
+
992
|
|
3387
|
+
993
|
|
3388
|
+
994
|
|
3389
|
+
995</pre>
|
|
3311
3390
|
</td>
|
|
3312
3391
|
<td>
|
|
3313
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3392
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 986</span>
|
|
3314
3393
|
|
|
3315
3394
|
<span class='kw'>def</span> <span class='id identifier rubyid_close'>close</span>
|
|
3316
3395
|
<span class='comment'># assert(!!this._client._connection, 'Protocol error: Connection closed. Most likely the page has been closed.');
|
|
@@ -3364,12 +3443,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3364
3443
|
<pre class="lines">
|
|
3365
3444
|
|
|
3366
3445
|
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3446
|
+
998
|
|
3447
|
+
999
|
|
3448
|
+
1000</pre>
|
|
3370
3449
|
</td>
|
|
3371
3450
|
<td>
|
|
3372
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3451
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 998</span>
|
|
3373
3452
|
|
|
3374
3453
|
<span class='kw'>def</span> <span class='id identifier rubyid_closed?'>closed?</span>
|
|
3375
3454
|
<span class='ivar'>@closed</span>
|
|
@@ -3416,12 +3495,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3416
3495
|
<pre class="lines">
|
|
3417
3496
|
|
|
3418
3497
|
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3498
|
+
657
|
|
3499
|
+
658
|
|
3500
|
+
659</pre>
|
|
3422
3501
|
</td>
|
|
3423
3502
|
<td>
|
|
3424
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3503
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 657</span>
|
|
3425
3504
|
|
|
3426
3505
|
<span class='kw'>def</span> <span class='id identifier rubyid_content'>content</span>
|
|
3427
3506
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span>
|
|
@@ -3470,12 +3549,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3470
3549
|
<pre class="lines">
|
|
3471
3550
|
|
|
3472
3551
|
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3552
|
+
668
|
|
3553
|
+
669
|
|
3554
|
+
670</pre>
|
|
3476
3555
|
</td>
|
|
3477
3556
|
<td>
|
|
3478
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3557
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 668</span>
|
|
3479
3558
|
|
|
3480
3559
|
<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>
|
|
3481
3560
|
<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>
|
|
@@ -3524,12 +3603,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3524
3603
|
<pre class="lines">
|
|
3525
3604
|
|
|
3526
3605
|
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3606
|
+
292
|
|
3607
|
+
293
|
|
3608
|
+
294</pre>
|
|
3530
3609
|
</td>
|
|
3531
3610
|
<td>
|
|
3532
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3611
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 292</span>
|
|
3533
3612
|
|
|
3534
3613
|
<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>
|
|
3535
3614
|
<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>
|
|
@@ -3578,12 +3657,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3578
3657
|
<pre class="lines">
|
|
3579
3658
|
|
|
3580
3659
|
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3660
|
+
297
|
|
3661
|
+
298
|
|
3662
|
+
299</pre>
|
|
3584
3663
|
</td>
|
|
3585
3664
|
<td>
|
|
3586
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3665
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 297</span>
|
|
3587
3666
|
|
|
3588
3667
|
<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>
|
|
3589
3668
|
<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>
|
|
@@ -3632,13 +3711,13 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3632
3711
|
<pre class="lines">
|
|
3633
3712
|
|
|
3634
3713
|
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3714
|
+
764
|
|
3715
|
+
765
|
|
3716
|
+
766
|
|
3717
|
+
767</pre>
|
|
3639
3718
|
</td>
|
|
3640
3719
|
<td>
|
|
3641
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3720
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 764</span>
|
|
3642
3721
|
|
|
3643
3722
|
<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>
|
|
3644
3723
|
<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>
|
|
@@ -3688,18 +3767,18 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3688
3767
|
<pre class="lines">
|
|
3689
3768
|
|
|
3690
3769
|
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3770
|
+
808
|
|
3771
|
+
809
|
|
3772
|
+
810
|
|
3773
|
+
811
|
|
3774
|
+
812
|
|
3775
|
+
813
|
|
3776
|
+
814
|
|
3777
|
+
815
|
|
3778
|
+
816</pre>
|
|
3700
3779
|
</td>
|
|
3701
3780
|
<td>
|
|
3702
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3781
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 808</span>
|
|
3703
3782
|
|
|
3704
3783
|
<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>
|
|
3705
3784
|
<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>
|
|
@@ -3778,12 +3857,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3778
3857
|
<pre class="lines">
|
|
3779
3858
|
|
|
3780
3859
|
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3860
|
+
830
|
|
3861
|
+
831
|
|
3862
|
+
832</pre>
|
|
3784
3863
|
</td>
|
|
3785
3864
|
<td>
|
|
3786
|
-
<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 830</span>
|
|
3787
3866
|
|
|
3788
3867
|
<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>
|
|
3789
3868
|
<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>
|
|
@@ -3856,13 +3935,13 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3856
3935
|
<pre class="lines">
|
|
3857
3936
|
|
|
3858
3937
|
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3938
|
+
318
|
|
3939
|
+
319
|
|
3940
|
+
320
|
|
3941
|
+
321</pre>
|
|
3863
3942
|
</td>
|
|
3864
3943
|
<td>
|
|
3865
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3944
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 318</span>
|
|
3866
3945
|
|
|
3867
3946
|
<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>
|
|
3868
3947
|
<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>
|
|
@@ -3912,12 +3991,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3912
3991
|
<pre class="lines">
|
|
3913
3992
|
|
|
3914
3993
|
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3994
|
+
483
|
|
3995
|
+
484
|
|
3996
|
+
485</pre>
|
|
3918
3997
|
</td>
|
|
3919
3998
|
<td>
|
|
3920
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
3999
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 483</span>
|
|
3921
4000
|
|
|
3922
4001
|
<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>
|
|
3923
4002
|
<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>
|
|
@@ -3966,12 +4045,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3966
4045
|
<pre class="lines">
|
|
3967
4046
|
|
|
3968
4047
|
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
4048
|
+
1022
|
|
4049
|
+
1023
|
|
4050
|
+
1024</pre>
|
|
3972
4051
|
</td>
|
|
3973
4052
|
<td>
|
|
3974
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4053
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1022</span>
|
|
3975
4054
|
|
|
3976
4055
|
<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>
|
|
3977
4056
|
<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>
|
|
@@ -3996,12 +4075,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
3996
4075
|
<pre class="lines">
|
|
3997
4076
|
|
|
3998
4077
|
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4078
|
+
274
|
|
4079
|
+
275
|
|
4080
|
+
276</pre>
|
|
4002
4081
|
</td>
|
|
4003
4082
|
<td>
|
|
4004
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4083
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 274</span>
|
|
4005
4084
|
|
|
4006
4085
|
<span class='kw'>def</span> <span class='id identifier rubyid_frames'>frames</span>
|
|
4007
4086
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_frames'>frames</span>
|
|
@@ -4070,12 +4149,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4070
4149
|
<pre class="lines">
|
|
4071
4150
|
|
|
4072
4151
|
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4152
|
+
741
|
|
4153
|
+
742
|
|
4154
|
+
743</pre>
|
|
4076
4155
|
</td>
|
|
4077
4156
|
<td>
|
|
4078
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4157
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 741</span>
|
|
4079
4158
|
|
|
4080
4159
|
<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>
|
|
4081
4160
|
<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>
|
|
@@ -4144,12 +4223,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4144
4223
|
<pre class="lines">
|
|
4145
4224
|
|
|
4146
4225
|
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4226
|
+
747
|
|
4227
|
+
748
|
|
4228
|
+
749</pre>
|
|
4150
4229
|
</td>
|
|
4151
4230
|
<td>
|
|
4152
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4231
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 747</span>
|
|
4153
4232
|
|
|
4154
4233
|
<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>
|
|
4155
4234
|
<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>
|
|
@@ -4240,12 +4319,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4240
4319
|
<pre class="lines">
|
|
4241
4320
|
|
|
4242
4321
|
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4322
|
+
676
|
|
4323
|
+
677
|
|
4324
|
+
678</pre>
|
|
4246
4325
|
</td>
|
|
4247
4326
|
<td>
|
|
4248
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4327
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 676</span>
|
|
4249
4328
|
|
|
4250
4329
|
<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
4330
|
<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>
|
|
@@ -4270,22 +4349,22 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4270
4349
|
<pre class="lines">
|
|
4271
4350
|
|
|
4272
4351
|
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4352
|
+
166
|
|
4353
|
+
167
|
|
4354
|
+
168
|
|
4355
|
+
169
|
|
4356
|
+
170
|
|
4357
|
+
171
|
|
4358
|
+
172
|
|
4359
|
+
173
|
|
4360
|
+
174
|
|
4361
|
+
175
|
|
4362
|
+
176
|
|
4363
|
+
177
|
|
4364
|
+
178</pre>
|
|
4286
4365
|
</td>
|
|
4287
4366
|
<td>
|
|
4288
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4367
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 166</span>
|
|
4289
4368
|
|
|
4290
4369
|
<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
4370
|
<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>
|
|
@@ -4344,12 +4423,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4344
4423
|
<pre class="lines">
|
|
4345
4424
|
|
|
4346
4425
|
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4426
|
+
1027
|
|
4427
|
+
1028
|
|
4428
|
+
1029</pre>
|
|
4350
4429
|
</td>
|
|
4351
4430
|
<td>
|
|
4352
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4431
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1027</span>
|
|
4353
4432
|
|
|
4354
4433
|
<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>
|
|
4355
4434
|
<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>
|
|
@@ -4414,12 +4493,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4414
4493
|
<pre class="lines">
|
|
4415
4494
|
|
|
4416
4495
|
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4496
|
+
268
|
|
4497
|
+
269
|
|
4498
|
+
270</pre>
|
|
4420
4499
|
</td>
|
|
4421
4500
|
<td>
|
|
4422
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4501
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 268</span>
|
|
4423
4502
|
|
|
4424
4503
|
<span class='kw'>def</span> <span class='id identifier rubyid_main_frame'>main_frame</span>
|
|
4425
4504
|
<span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_main_frame'>main_frame</span>
|
|
@@ -4444,12 +4523,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4444
4523
|
<pre class="lines">
|
|
4445
4524
|
|
|
4446
4525
|
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4526
|
+
287
|
|
4527
|
+
288
|
|
4528
|
+
289</pre>
|
|
4450
4529
|
</td>
|
|
4451
4530
|
<td>
|
|
4452
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4531
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 287</span>
|
|
4453
4532
|
|
|
4454
4533
|
<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>
|
|
4455
4534
|
<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>
|
|
@@ -4457,6 +4536,130 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4457
4536
|
</td>
|
|
4458
4537
|
</tr>
|
|
4459
4538
|
</table>
|
|
4539
|
+
</div>
|
|
4540
|
+
|
|
4541
|
+
<div class="method_details ">
|
|
4542
|
+
<h3 class="signature " id="on-instance_method">
|
|
4543
|
+
|
|
4544
|
+
#<strong>on</strong>(event_name, &block) ⇒ <tt>Object</tt>
|
|
4545
|
+
|
|
4546
|
+
|
|
4547
|
+
|
|
4548
|
+
|
|
4549
|
+
|
|
4550
|
+
</h3><div class="docstring">
|
|
4551
|
+
<div class="discussion">
|
|
4552
|
+
|
|
4553
|
+
|
|
4554
|
+
</div>
|
|
4555
|
+
</div>
|
|
4556
|
+
<div class="tags">
|
|
4557
|
+
<p class="tag_title">Parameters:</p>
|
|
4558
|
+
<ul class="param">
|
|
4559
|
+
|
|
4560
|
+
<li>
|
|
4561
|
+
|
|
4562
|
+
<span class='name'>event_name</span>
|
|
4563
|
+
|
|
4564
|
+
|
|
4565
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
|
4566
|
+
|
|
4567
|
+
|
|
4568
|
+
|
|
4569
|
+
</li>
|
|
4570
|
+
|
|
4571
|
+
</ul>
|
|
4572
|
+
|
|
4573
|
+
|
|
4574
|
+
</div><table class="source_code">
|
|
4575
|
+
<tr>
|
|
4576
|
+
<td>
|
|
4577
|
+
<pre class="lines">
|
|
4578
|
+
|
|
4579
|
+
|
|
4580
|
+
149
|
|
4581
|
+
150
|
|
4582
|
+
151
|
|
4583
|
+
152
|
|
4584
|
+
153
|
|
4585
|
+
154
|
|
4586
|
+
155</pre>
|
|
4587
|
+
</td>
|
|
4588
|
+
<td>
|
|
4589
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 149</span>
|
|
4590
|
+
|
|
4591
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='id identifier rubyid_event_name'>event_name</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
|
4592
|
+
<span class='kw'>unless</span> <span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Page::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='id identifier rubyid_event_name'>event_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rparen'>)</span>
|
|
4593
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unknown event name: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_event_name'>event_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>. Known events are </span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Page::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
4594
|
+
<span class='kw'>end</span>
|
|
4595
|
+
|
|
4596
|
+
<span class='id identifier rubyid_add_event_listener'>add_event_listener</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Page::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='lbracket'>[</span><span class='id identifier rubyid_event_name'>event_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
|
4597
|
+
<span class='kw'>end</span></pre>
|
|
4598
|
+
</td>
|
|
4599
|
+
</tr>
|
|
4600
|
+
</table>
|
|
4601
|
+
</div>
|
|
4602
|
+
|
|
4603
|
+
<div class="method_details ">
|
|
4604
|
+
<h3 class="signature " id="once-instance_method">
|
|
4605
|
+
|
|
4606
|
+
#<strong>once</strong>(event_name, &block) ⇒ <tt>Object</tt>
|
|
4607
|
+
|
|
4608
|
+
|
|
4609
|
+
|
|
4610
|
+
|
|
4611
|
+
|
|
4612
|
+
</h3><div class="docstring">
|
|
4613
|
+
<div class="discussion">
|
|
4614
|
+
|
|
4615
|
+
|
|
4616
|
+
</div>
|
|
4617
|
+
</div>
|
|
4618
|
+
<div class="tags">
|
|
4619
|
+
<p class="tag_title">Parameters:</p>
|
|
4620
|
+
<ul class="param">
|
|
4621
|
+
|
|
4622
|
+
<li>
|
|
4623
|
+
|
|
4624
|
+
<span class='name'>event_name</span>
|
|
4625
|
+
|
|
4626
|
+
|
|
4627
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
|
4628
|
+
|
|
4629
|
+
|
|
4630
|
+
|
|
4631
|
+
</li>
|
|
4632
|
+
|
|
4633
|
+
</ul>
|
|
4634
|
+
|
|
4635
|
+
|
|
4636
|
+
</div><table class="source_code">
|
|
4637
|
+
<tr>
|
|
4638
|
+
<td>
|
|
4639
|
+
<pre class="lines">
|
|
4640
|
+
|
|
4641
|
+
|
|
4642
|
+
158
|
|
4643
|
+
159
|
|
4644
|
+
160
|
|
4645
|
+
161
|
|
4646
|
+
162
|
|
4647
|
+
163
|
|
4648
|
+
164</pre>
|
|
4649
|
+
</td>
|
|
4650
|
+
<td>
|
|
4651
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 158</span>
|
|
4652
|
+
|
|
4653
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_once'>once</span><span class='lparen'>(</span><span class='id identifier rubyid_event_name'>event_name</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
|
4654
|
+
<span class='kw'>unless</span> <span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Page::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='id identifier rubyid_event_name'>event_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rparen'>)</span>
|
|
4655
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Unknown event name: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_event_name'>event_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>. Known events are </span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Page::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>, </span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
|
4656
|
+
<span class='kw'>end</span>
|
|
4657
|
+
|
|
4658
|
+
<span class='id identifier rubyid_observe_first'>observe_first</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Page::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='lbracket'>[</span><span class='id identifier rubyid_event_name'>event_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
|
4659
|
+
<span class='kw'>end</span></pre>
|
|
4660
|
+
</td>
|
|
4661
|
+
</tr>
|
|
4662
|
+
</table>
|
|
4460
4663
|
</div>
|
|
4461
4664
|
|
|
4462
4665
|
<div class="method_details ">
|
|
@@ -4511,13 +4714,13 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4511
4714
|
<pre class="lines">
|
|
4512
4715
|
|
|
4513
4716
|
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4717
|
+
325
|
|
4718
|
+
326
|
|
4719
|
+
327
|
|
4720
|
+
328</pre>
|
|
4518
4721
|
</td>
|
|
4519
4722
|
<td>
|
|
4520
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4723
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 325</span>
|
|
4521
4724
|
|
|
4522
4725
|
<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>
|
|
4523
4726
|
<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>
|
|
@@ -4600,15 +4803,15 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4600
4803
|
<pre class="lines">
|
|
4601
4804
|
|
|
4602
4805
|
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4806
|
+
683
|
|
4807
|
+
684
|
|
4808
|
+
685
|
|
4809
|
+
686
|
|
4810
|
+
687
|
|
4811
|
+
688</pre>
|
|
4609
4812
|
</td>
|
|
4610
4813
|
<td>
|
|
4611
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4814
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 683</span>
|
|
4612
4815
|
|
|
4613
4816
|
<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>
|
|
4614
4817
|
<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>
|
|
@@ -4660,12 +4863,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4660
4863
|
<pre class="lines">
|
|
4661
4864
|
|
|
4662
4865
|
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4866
|
+
283
|
|
4867
|
+
284
|
|
4868
|
+
285</pre>
|
|
4666
4869
|
</td>
|
|
4667
4870
|
<td>
|
|
4668
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4871
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 283</span>
|
|
4669
4872
|
|
|
4670
4873
|
<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>
|
|
4671
4874
|
<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>
|
|
@@ -4729,12 +4932,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4729
4932
|
<pre class="lines">
|
|
4730
4933
|
|
|
4731
4934
|
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4935
|
+
304
|
|
4936
|
+
305
|
|
4937
|
+
306</pre>
|
|
4735
4938
|
</td>
|
|
4736
4939
|
<td>
|
|
4737
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4940
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 304</span>
|
|
4738
4941
|
|
|
4739
4942
|
<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>
|
|
4740
4943
|
<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>
|
|
@@ -4775,15 +4978,15 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4775
4978
|
<pre class="lines">
|
|
4776
4979
|
|
|
4777
4980
|
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4981
|
+
857
|
|
4982
|
+
858
|
|
4983
|
+
859
|
|
4984
|
+
860
|
|
4985
|
+
861
|
|
4986
|
+
862</pre>
|
|
4784
4987
|
</td>
|
|
4785
4988
|
<td>
|
|
4786
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
4989
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 857</span>
|
|
4787
4990
|
|
|
4788
4991
|
<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>
|
|
4789
4992
|
<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>
|
|
@@ -4859,12 +5062,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4859
5062
|
<pre class="lines">
|
|
4860
5063
|
|
|
4861
5064
|
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
5065
|
+
1034
|
|
5066
|
+
1035
|
|
5067
|
+
1036</pre>
|
|
4865
5068
|
</td>
|
|
4866
5069
|
<td>
|
|
4867
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5070
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1034</span>
|
|
4868
5071
|
|
|
4869
5072
|
<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>
|
|
4870
5073
|
<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>
|
|
@@ -4924,12 +5127,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
4924
5127
|
<pre class="lines">
|
|
4925
5128
|
|
|
4926
5129
|
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
5130
|
+
663
|
|
5131
|
+
664
|
|
5132
|
+
665</pre>
|
|
4930
5133
|
</td>
|
|
4931
5134
|
<td>
|
|
4932
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5135
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 663</span>
|
|
4933
5136
|
|
|
4934
5137
|
<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>
|
|
4935
5138
|
<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>
|
|
@@ -5004,12 +5207,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5004
5207
|
<pre class="lines">
|
|
5005
5208
|
|
|
5006
5209
|
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5210
|
+
334
|
|
5211
|
+
335
|
|
5212
|
+
336</pre>
|
|
5010
5213
|
</td>
|
|
5011
5214
|
<td>
|
|
5012
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5215
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 334</span>
|
|
5013
5216
|
|
|
5014
5217
|
<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>
|
|
5015
5218
|
<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>
|
|
@@ -5073,12 +5276,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5073
5276
|
<pre class="lines">
|
|
5074
5277
|
|
|
5075
5278
|
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5279
|
+
311
|
|
5280
|
+
312
|
|
5281
|
+
313</pre>
|
|
5079
5282
|
</td>
|
|
5080
5283
|
<td>
|
|
5081
|
-
<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 311</span>
|
|
5082
5285
|
|
|
5083
5286
|
<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>
|
|
5084
5287
|
<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>
|
|
@@ -5153,12 +5356,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5153
5356
|
<pre class="lines">
|
|
5154
5357
|
|
|
5155
5358
|
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5359
|
+
350
|
|
5360
|
+
351
|
|
5361
|
+
352</pre>
|
|
5159
5362
|
</td>
|
|
5160
5363
|
<td>
|
|
5161
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5364
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 350</span>
|
|
5162
5365
|
|
|
5163
5366
|
<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>
|
|
5164
5367
|
<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>
|
|
@@ -5222,12 +5425,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5222
5425
|
<pre class="lines">
|
|
5223
5426
|
|
|
5224
5427
|
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5428
|
+
365
|
|
5429
|
+
366
|
|
5430
|
+
367</pre>
|
|
5228
5431
|
</td>
|
|
5229
5432
|
<td>
|
|
5230
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5433
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 365</span>
|
|
5231
5434
|
|
|
5232
5435
|
<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>
|
|
5233
5436
|
<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>
|
|
@@ -5276,12 +5479,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5276
5479
|
<pre class="lines">
|
|
5277
5480
|
|
|
5278
5481
|
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5482
|
+
1039
|
|
5483
|
+
1040
|
|
5484
|
+
1041</pre>
|
|
5282
5485
|
</td>
|
|
5283
5486
|
<td>
|
|
5284
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5487
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1039</span>
|
|
5285
5488
|
|
|
5286
5489
|
<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>
|
|
5287
5490
|
<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>
|
|
@@ -5328,12 +5531,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5328
5531
|
<pre class="lines">
|
|
5329
5532
|
|
|
5330
5533
|
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5534
|
+
849
|
|
5535
|
+
850
|
|
5536
|
+
851</pre>
|
|
5334
5537
|
</td>
|
|
5335
5538
|
<td>
|
|
5336
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5539
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 849</span>
|
|
5337
5540
|
|
|
5338
5541
|
<span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span>
|
|
5339
5542
|
<span class='ivar'>@title</span>
|
|
@@ -5406,12 +5609,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5406
5609
|
<pre class="lines">
|
|
5407
5610
|
|
|
5408
5611
|
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5612
|
+
1051
|
|
5613
|
+
1052
|
|
5614
|
+
1053</pre>
|
|
5412
5615
|
</td>
|
|
5413
5616
|
<td>
|
|
5414
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5617
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1051</span>
|
|
5415
5618
|
|
|
5416
5619
|
<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
5620
|
<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>
|
|
@@ -5458,12 +5661,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5458
5661
|
<pre class="lines">
|
|
5459
5662
|
|
|
5460
5663
|
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5664
|
+
652
|
|
5665
|
+
653
|
|
5666
|
+
654</pre>
|
|
5464
5667
|
</td>
|
|
5465
5668
|
<td>
|
|
5466
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5669
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 652</span>
|
|
5467
5670
|
|
|
5468
5671
|
<span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
|
|
5469
5672
|
<span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span>
|
|
@@ -5512,12 +5715,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5512
5715
|
<pre class="lines">
|
|
5513
5716
|
|
|
5514
5717
|
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5718
|
+
488
|
|
5719
|
+
489
|
|
5720
|
+
490</pre>
|
|
5518
5721
|
</td>
|
|
5519
5722
|
<td>
|
|
5520
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5723
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 488</span>
|
|
5521
5724
|
|
|
5522
5725
|
<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>
|
|
5523
5726
|
<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>
|
|
@@ -5581,28 +5784,28 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5581
5784
|
<pre class="lines">
|
|
5582
5785
|
|
|
5583
5786
|
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5787
|
+
188
|
|
5788
|
+
189
|
|
5789
|
+
190
|
|
5790
|
+
191
|
|
5791
|
+
192
|
|
5792
|
+
193
|
|
5793
|
+
194
|
|
5794
|
+
195
|
|
5795
|
+
196
|
|
5796
|
+
197
|
|
5797
|
+
198
|
|
5798
|
+
199
|
|
5799
|
+
200
|
|
5800
|
+
201
|
|
5801
|
+
202
|
|
5802
|
+
203
|
|
5803
|
+
204
|
|
5804
|
+
205
|
|
5805
|
+
206</pre>
|
|
5603
5806
|
</td>
|
|
5604
5807
|
<td>
|
|
5605
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5808
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 188</span>
|
|
5606
5809
|
|
|
5607
5810
|
<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
5811
|
<span class='kw'>if</span> <span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
|
@@ -5704,12 +5907,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5704
5907
|
<pre class="lines">
|
|
5705
5908
|
|
|
5706
5909
|
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5910
|
+
1101
|
|
5911
|
+
1102
|
|
5912
|
+
1103</pre>
|
|
5710
5913
|
</td>
|
|
5711
5914
|
<td>
|
|
5712
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
5915
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1101</span>
|
|
5713
5916
|
|
|
5714
5917
|
<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>
|
|
5715
5918
|
<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>
|
|
@@ -5807,12 +6010,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5807
6010
|
<pre class="lines">
|
|
5808
6011
|
|
|
5809
6012
|
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
6013
|
+
1069
|
|
6014
|
+
1070
|
|
6015
|
+
1071</pre>
|
|
5813
6016
|
</td>
|
|
5814
6017
|
<td>
|
|
5815
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
6018
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1069</span>
|
|
5816
6019
|
|
|
5817
6020
|
<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>
|
|
5818
6021
|
<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>
|
|
@@ -5910,12 +6113,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5910
6113
|
<pre class="lines">
|
|
5911
6114
|
|
|
5912
6115
|
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
6116
|
+
1085
|
|
6117
|
+
1086
|
|
6118
|
+
1087</pre>
|
|
5916
6119
|
</td>
|
|
5917
6120
|
<td>
|
|
5918
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
6121
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1085</span>
|
|
5919
6122
|
|
|
5920
6123
|
<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>
|
|
5921
6124
|
<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>
|
|
@@ -5940,12 +6143,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5940
6143
|
<pre class="lines">
|
|
5941
6144
|
|
|
5942
6145
|
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
6146
|
+
278
|
|
6147
|
+
279
|
|
6148
|
+
280</pre>
|
|
5946
6149
|
</td>
|
|
5947
6150
|
<td>
|
|
5948
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line
|
|
6151
|
+
<pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 278</span>
|
|
5949
6152
|
|
|
5950
6153
|
<span class='kw'>def</span> <span class='id identifier rubyid_workers'>workers</span>
|
|
5951
6154
|
<span class='ivar'>@workers</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span>
|
|
@@ -5960,7 +6163,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
|
|
|
5960
6163
|
</div>
|
|
5961
6164
|
|
|
5962
6165
|
<div id="footer">
|
|
5963
|
-
Generated on
|
|
6166
|
+
Generated on Tue Jun 23 10:24:58 2020 by
|
|
5964
6167
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
5965
6168
|
0.9.24 (ruby-2.6.3).
|
|
5966
6169
|
</div>
|