puppeteer-ruby 0.0.12 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -14
- data/.github/workflows/docs.yml +45 -0
- data/.github/workflows/reviewdog.yml +15 -0
- data/README.md +52 -1
- data/lib/puppeteer.rb +10 -2
- data/lib/puppeteer/browser.rb +53 -34
- data/lib/puppeteer/browser_context.rb +35 -5
- data/lib/puppeteer/cdp_session.rb +3 -19
- data/lib/puppeteer/concurrent_ruby_utils.rb +6 -0
- data/lib/puppeteer/connection.rb +9 -16
- data/lib/puppeteer/debug_print.rb +1 -1
- data/lib/puppeteer/define_async_method.rb +23 -0
- data/lib/puppeteer/dom_world.rb +67 -78
- data/lib/puppeteer/element_handle.rb +19 -47
- data/lib/puppeteer/emulation_manager.rb +2 -6
- data/lib/puppeteer/env.rb +18 -0
- data/lib/puppeteer/execution_context.rb +1 -6
- data/lib/puppeteer/frame.rb +34 -39
- data/lib/puppeteer/frame_manager.rb +7 -25
- data/lib/puppeteer/js_handle.rb +3 -12
- data/lib/puppeteer/keyboard.rb +9 -29
- data/lib/puppeteer/launcher/chrome.rb +9 -7
- data/lib/puppeteer/mouse.rb +20 -24
- data/lib/puppeteer/network_manager.rb +163 -5
- data/lib/puppeteer/page.rb +213 -179
- data/lib/puppeteer/page/pdf_options.rb +166 -0
- data/lib/puppeteer/remote_object.rb +2 -5
- data/lib/puppeteer/request.rb +330 -0
- data/lib/puppeteer/response.rb +113 -0
- data/lib/puppeteer/touch_screen.rb +2 -7
- data/lib/puppeteer/version.rb +1 -1
- data/lib/puppeteer/wait_task.rb +2 -4
- data/lib/puppeteer/web_socket.rb +7 -0
- data/puppeteer-ruby.gemspec +2 -1
- metadata +25 -103
- data/docs/Puppeteer.html +0 -2338
- data/docs/Puppeteer/AsyncAwaitBehavior.html +0 -105
- data/docs/Puppeteer/Browser.html +0 -2258
- data/docs/Puppeteer/BrowserContext.html +0 -809
- data/docs/Puppeteer/BrowserFetcher.html +0 -214
- data/docs/Puppeteer/BrowserRunner.html +0 -914
- data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +0 -477
- data/docs/Puppeteer/CDPSession.html +0 -813
- data/docs/Puppeteer/CDPSession/Error.html +0 -124
- data/docs/Puppeteer/ConcurrentRubyUtils.html +0 -438
- data/docs/Puppeteer/Connection.html +0 -964
- data/docs/Puppeteer/Connection/MessageCallback.html +0 -434
- data/docs/Puppeteer/Connection/ProtocolError.html +0 -216
- data/docs/Puppeteer/Connection/RequestDebugPrinter.html +0 -217
- data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +0 -244
- data/docs/Puppeteer/ConsoleMessage.html +0 -565
- data/docs/Puppeteer/ConsoleMessage/Location.html +0 -433
- data/docs/Puppeteer/DOMWorld.html +0 -2219
- data/docs/Puppeteer/DOMWorld/DetachedError.html +0 -124
- data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +0 -124
- data/docs/Puppeteer/DebugPrint.html +0 -233
- data/docs/Puppeteer/Device.html +0 -470
- data/docs/Puppeteer/Devices.html +0 -139
- data/docs/Puppeteer/ElementHandle.html +0 -2542
- data/docs/Puppeteer/ElementHandle/BoundingBox.html +0 -507
- data/docs/Puppeteer/ElementHandle/BoxModel.html +0 -404
- data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +0 -206
- data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +0 -206
- data/docs/Puppeteer/ElementHandle/Point.html +0 -492
- data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +0 -124
- data/docs/Puppeteer/EmulationManager.html +0 -454
- data/docs/Puppeteer/EventCallbackable.html +0 -499
- data/docs/Puppeteer/EventCallbackable/EventListeners.html +0 -435
- data/docs/Puppeteer/ExecutionContext.html +0 -998
- data/docs/Puppeteer/ExecutionContext/EvaluationError.html +0 -124
- data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +0 -357
- data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +0 -389
- data/docs/Puppeteer/FileChooser.html +0 -455
- data/docs/Puppeteer/Frame.html +0 -3813
- data/docs/Puppeteer/FrameManager.html +0 -2410
- data/docs/Puppeteer/FrameManager/NavigationError.html +0 -124
- data/docs/Puppeteer/IfPresent.html +0 -222
- data/docs/Puppeteer/JSHandle.html +0 -1352
- data/docs/Puppeteer/Keyboard.html +0 -1557
- data/docs/Puppeteer/Keyboard/KeyDefinition.html +0 -831
- data/docs/Puppeteer/Keyboard/KeyDescription.html +0 -603
- data/docs/Puppeteer/Launcher.html +0 -237
- data/docs/Puppeteer/Launcher/Base.html +0 -385
- data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +0 -124
- data/docs/Puppeteer/Launcher/BrowserOptions.html +0 -441
- data/docs/Puppeteer/Launcher/Chrome.html +0 -669
- data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +0 -382
- data/docs/Puppeteer/Launcher/ChromeArgOptions.html +0 -531
- data/docs/Puppeteer/Launcher/LaunchOptions.html +0 -893
- data/docs/Puppeteer/LifecycleWatcher.html +0 -834
- data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +0 -363
- data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +0 -206
- data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +0 -124
- data/docs/Puppeteer/Mouse.html +0 -1095
- data/docs/Puppeteer/Mouse/Button.html +0 -136
- data/docs/Puppeteer/NetworkManager.html +0 -901
- data/docs/Puppeteer/NetworkManager/Credentials.html +0 -385
- data/docs/Puppeteer/Page.html +0 -6173
- data/docs/Puppeteer/Page/FileChooserTimeoutError.html +0 -206
- data/docs/Puppeteer/Page/ScreenshotOptions.html +0 -845
- data/docs/Puppeteer/Page/ScriptTag.html +0 -555
- data/docs/Puppeteer/Page/StyleTag.html +0 -448
- data/docs/Puppeteer/Page/TargetCrashedError.html +0 -124
- data/docs/Puppeteer/RemoteObject.html +0 -1087
- data/docs/Puppeteer/Target.html +0 -1336
- data/docs/Puppeteer/Target/InitializeFailure.html +0 -124
- data/docs/Puppeteer/Target/TargetInfo.html +0 -729
- data/docs/Puppeteer/TimeoutError.html +0 -135
- data/docs/Puppeteer/TimeoutSettings.html +0 -496
- data/docs/Puppeteer/TouchScreen.html +0 -464
- data/docs/Puppeteer/Viewport.html +0 -837
- data/docs/Puppeteer/WaitTask.html +0 -637
- data/docs/Puppeteer/WaitTask/TerminatedError.html +0 -124
- data/docs/Puppeteer/WaitTask/TimeoutError.html +0 -206
- data/docs/Puppeteer/WebSocket.html +0 -673
- data/docs/Puppeteer/WebSocket/DriverImpl.html +0 -412
- data/docs/Puppeteer/WebSocket/TransportError.html +0 -124
- data/docs/Puppeteer/WebSocketTransport.html +0 -600
- data/docs/Puppeteer/WebSocktTransportError.html +0 -124
- data/docs/_index.html +0 -816
- data/docs/class_list.html +0 -51
- data/docs/css/common.css +0 -1
- data/docs/css/full_list.css +0 -58
- data/docs/css/style.css +0 -496
- data/docs/file.README.html +0 -125
- data/docs/file_list.html +0 -56
- data/docs/frames.html +0 -17
- data/docs/index.html +0 -125
- data/docs/js/app.js +0 -314
- data/docs/js/full_list.js +0 -216
- data/docs/js/jquery.js +0 -4
- data/docs/method_list.html +0 -4115
- data/docs/top-level-namespace.html +0 -126
- data/lib/puppeteer/async_await_behavior.rb +0 -38
@@ -1,363 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Class: Puppeteer::LifecycleWatcher::ExpectedLifecycle
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.24
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
|
-
|
17
|
-
<script type="text/javascript">
|
18
|
-
pathId = "Puppeteer::LifecycleWatcher::ExpectedLifecycle";
|
19
|
-
relpath = '../../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="../../_index.html">Index (E)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span> » <span class='title'><span class='object_link'><a href="../LifecycleWatcher.html" title="Puppeteer::LifecycleWatcher (class)">LifecycleWatcher</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">ExpectedLifecycle</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../../class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Class: Puppeteer::LifecycleWatcher::ExpectedLifecycle
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
<dl>
|
70
|
-
<dt>Inherits:</dt>
|
71
|
-
<dd>
|
72
|
-
<span class="inheritName">Object</span>
|
73
|
-
|
74
|
-
<ul class="fullTree">
|
75
|
-
<li>Object</li>
|
76
|
-
|
77
|
-
<li class="next">Puppeteer::LifecycleWatcher::ExpectedLifecycle</li>
|
78
|
-
|
79
|
-
</ul>
|
80
|
-
<a href="#" class="inheritanceTree">show all</a>
|
81
|
-
|
82
|
-
</dd>
|
83
|
-
</dl>
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
<dl>
|
96
|
-
<dt>Defined in:</dt>
|
97
|
-
<dd>lib/puppeteer/lifecycle_watcher.rb</dd>
|
98
|
-
</dl>
|
99
|
-
|
100
|
-
</div>
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
<h2>
|
105
|
-
Constant Summary
|
106
|
-
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
107
|
-
</h2>
|
108
|
-
|
109
|
-
<dl class="constants">
|
110
|
-
|
111
|
-
<dt id="PUPPETEER_TO_PROTOCOL_LIFECYCLE-constant" class="">PUPPETEER_TO_PROTOCOL_LIFECYCLE =
|
112
|
-
|
113
|
-
</dt>
|
114
|
-
<dd><pre class="code"><span class='lbrace'>{</span>
|
115
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>load</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>load</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
116
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>domcontentloaded</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>DOMContentLoaded</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
117
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>networkidle0</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>networkIdle</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
118
|
-
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>networkidle2</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>networkAlmostIdle</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
119
|
-
<span class='rbrace'>}</span></pre></dd>
|
120
|
-
|
121
|
-
</dl>
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
<h2>
|
132
|
-
Instance Method Summary
|
133
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
134
|
-
</h2>
|
135
|
-
|
136
|
-
<ul class="summary">
|
137
|
-
|
138
|
-
<li class="public ">
|
139
|
-
<span class="summary_signature">
|
140
|
-
|
141
|
-
<a href="#completed%3F-instance_method" title="#completed? (instance method)">#<strong>completed?</strong>(frame) ⇒ Boolean </a>
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
</span>
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
<span class="summary_desc"><div class='inline'>
|
156
|
-
<p>Check if navigation lifecycle has experienced the expected_lifecycle events.</p>
|
157
|
-
</div></span>
|
158
|
-
|
159
|
-
</li>
|
160
|
-
|
161
|
-
|
162
|
-
<li class="public ">
|
163
|
-
<span class="summary_signature">
|
164
|
-
|
165
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(wait_until) ⇒ ExpectedLifecycle </a>
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
</span>
|
170
|
-
|
171
|
-
|
172
|
-
<span class="note title constructor">constructor</span>
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
<span class="summary_desc"><div class='inline'>
|
182
|
-
<p>A new instance of ExpectedLifecycle.</p>
|
183
|
-
</div></span>
|
184
|
-
|
185
|
-
</li>
|
186
|
-
|
187
|
-
|
188
|
-
</ul>
|
189
|
-
|
190
|
-
|
191
|
-
<div id="constructor_details" class="method_details_list">
|
192
|
-
<h2>Constructor Details</h2>
|
193
|
-
|
194
|
-
<div class="method_details first">
|
195
|
-
<h3 class="signature first" id="initialize-instance_method">
|
196
|
-
|
197
|
-
#<strong>initialize</strong>(wait_until) ⇒ <tt><span class='object_link'><a href="" title="Puppeteer::LifecycleWatcher::ExpectedLifecycle (class)">ExpectedLifecycle</a></span></tt>
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
</h3><div class="docstring">
|
204
|
-
<div class="discussion">
|
205
|
-
|
206
|
-
<p>Returns a new instance of ExpectedLifecycle.</p>
|
207
|
-
|
208
|
-
|
209
|
-
</div>
|
210
|
-
</div>
|
211
|
-
<div class="tags">
|
212
|
-
|
213
|
-
|
214
|
-
</div><table class="source_code">
|
215
|
-
<tr>
|
216
|
-
<td>
|
217
|
-
<pre class="lines">
|
218
|
-
|
219
|
-
|
220
|
-
15
|
221
|
-
16
|
222
|
-
17
|
223
|
-
18
|
224
|
-
19
|
225
|
-
20
|
226
|
-
21
|
227
|
-
22
|
228
|
-
23
|
229
|
-
24
|
230
|
-
25
|
231
|
-
26
|
232
|
-
27
|
233
|
-
28
|
234
|
-
29
|
235
|
-
30
|
236
|
-
31</pre>
|
237
|
-
</td>
|
238
|
-
<td>
|
239
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/lifecycle_watcher.rb', line 15</span>
|
240
|
-
|
241
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
|
242
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Enumerable</span><span class='rparen'>)</span>
|
243
|
-
<span class='ivar'>@wait_until</span> <span class='op'>=</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_value'>value</span><span class='op'>|</span>
|
244
|
-
<span class='kw'>unless</span> <span class='const'><span class='object_link'><a href="#PUPPETEER_TO_PROTOCOL_LIFECYCLE-constant" title="Puppeteer::LifecycleWatcher::ExpectedLifecycle::PUPPETEER_TO_PROTOCOL_LIFECYCLE (constant)">PUPPETEER_TO_PROTOCOL_LIFECYCLE</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_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rparen'>)</span>
|
245
|
-
<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 value for options.waitUntil: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_value'>value</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
246
|
-
<span class='kw'>end</span>
|
247
|
-
<span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
248
|
-
<span class='kw'>end</span>
|
249
|
-
<span class='kw'>elsif</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>String</span><span class='rparen'>)</span>
|
250
|
-
<span class='kw'>unless</span> <span class='const'><span class='object_link'><a href="#PUPPETEER_TO_PROTOCOL_LIFECYCLE-constant" title="Puppeteer::LifecycleWatcher::ExpectedLifecycle::PUPPETEER_TO_PROTOCOL_LIFECYCLE (constant)">PUPPETEER_TO_PROTOCOL_LIFECYCLE</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_wait_until'>wait_until</span><span class='rparen'>)</span>
|
251
|
-
<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 value for options.waitUntil: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_wait_until'>wait_until</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
252
|
-
<span class='kw'>end</span>
|
253
|
-
<span class='ivar'>@wait_until</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_wait_until'>wait_until</span><span class='rbracket'>]</span>
|
254
|
-
<span class='kw'>else</span>
|
255
|
-
<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'>wait_until should be a Array<String> or String</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
256
|
-
<span class='kw'>end</span>
|
257
|
-
<span class='kw'>end</span></pre>
|
258
|
-
</td>
|
259
|
-
</tr>
|
260
|
-
</table>
|
261
|
-
</div>
|
262
|
-
|
263
|
-
</div>
|
264
|
-
|
265
|
-
|
266
|
-
<div id="instance_method_details" class="method_details_list">
|
267
|
-
<h2>Instance Method Details</h2>
|
268
|
-
|
269
|
-
|
270
|
-
<div class="method_details first">
|
271
|
-
<h3 class="signature first" id="completed?-instance_method">
|
272
|
-
|
273
|
-
#<strong>completed?</strong>(frame) ⇒ <tt>Boolean</tt>
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
</h3><div class="docstring">
|
280
|
-
<div class="discussion">
|
281
|
-
|
282
|
-
<p>Check if navigation lifecycle has experienced the expected_lifecycle events.</p>
|
283
|
-
|
284
|
-
|
285
|
-
</div>
|
286
|
-
</div>
|
287
|
-
<div class="tags">
|
288
|
-
<p class="tag_title">Parameters:</p>
|
289
|
-
<ul class="param">
|
290
|
-
|
291
|
-
<li>
|
292
|
-
|
293
|
-
<span class='name'>frame</span>
|
294
|
-
|
295
|
-
|
296
|
-
<span class='type'>(<tt><span class='object_link'><a href="../Frame.html" title="Puppeteer::Frame (class)">Puppeteer::Frame</a></span></tt>)</span>
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
</li>
|
301
|
-
|
302
|
-
</ul>
|
303
|
-
|
304
|
-
<p class="tag_title">Returns:</p>
|
305
|
-
<ul class="return">
|
306
|
-
|
307
|
-
<li>
|
308
|
-
|
309
|
-
|
310
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
</li>
|
315
|
-
|
316
|
-
</ul>
|
317
|
-
|
318
|
-
</div><table class="source_code">
|
319
|
-
<tr>
|
320
|
-
<td>
|
321
|
-
<pre class="lines">
|
322
|
-
|
323
|
-
|
324
|
-
42
|
325
|
-
43
|
326
|
-
44
|
327
|
-
45
|
328
|
-
46
|
329
|
-
47
|
330
|
-
48
|
331
|
-
49
|
332
|
-
50</pre>
|
333
|
-
</td>
|
334
|
-
<td>
|
335
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/lifecycle_watcher.rb', line 42</span>
|
336
|
-
|
337
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_completed?'>completed?</span><span class='lparen'>(</span><span class='id identifier rubyid_frame'>frame</span><span class='rparen'>)</span>
|
338
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_expected_lifecycle'>expected_lifecycle</span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_event'>event</span><span class='op'>|</span> <span class='op'>!</span><span class='id identifier rubyid_frame'>frame</span><span class='period'>.</span><span class='id identifier rubyid_lifecycle_events'>lifecycle_events</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
339
|
-
<span class='kw'>return</span> <span class='kw'>false</span>
|
340
|
-
<span class='kw'>end</span>
|
341
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_frame'>frame</span><span class='period'>.</span><span class='id identifier rubyid_child_frames'>child_frames</span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_child'>child</span><span class='op'>|</span> <span class='op'>!</span><span class='id identifier rubyid_completed?'>completed?</span><span class='lparen'>(</span><span class='id identifier rubyid_child'>child</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
342
|
-
<span class='kw'>return</span> <span class='kw'>false</span>
|
343
|
-
<span class='kw'>end</span>
|
344
|
-
<span class='kw'>true</span>
|
345
|
-
<span class='kw'>end</span></pre>
|
346
|
-
</td>
|
347
|
-
</tr>
|
348
|
-
</table>
|
349
|
-
</div>
|
350
|
-
|
351
|
-
</div>
|
352
|
-
|
353
|
-
</div>
|
354
|
-
|
355
|
-
<div id="footer">
|
356
|
-
Generated on Tue Jun 23 10:25:01 2020 by
|
357
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
358
|
-
0.9.24 (ruby-2.6.3).
|
359
|
-
</div>
|
360
|
-
|
361
|
-
</div>
|
362
|
-
</body>
|
363
|
-
</html>
|
@@ -1,206 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Exception: Puppeteer::LifecycleWatcher::FrameDetachedError
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.24
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
|
-
|
17
|
-
<script type="text/javascript">
|
18
|
-
pathId = "Puppeteer::LifecycleWatcher::FrameDetachedError";
|
19
|
-
relpath = '../../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="../../_index.html">Index (F)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span> » <span class='title'><span class='object_link'><a href="../LifecycleWatcher.html" title="Puppeteer::LifecycleWatcher (class)">LifecycleWatcher</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">FrameDetachedError</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../../class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Exception: Puppeteer::LifecycleWatcher::FrameDetachedError
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
<dl>
|
70
|
-
<dt>Inherits:</dt>
|
71
|
-
<dd>
|
72
|
-
<span class="inheritName">StandardError</span>
|
73
|
-
|
74
|
-
<ul class="fullTree">
|
75
|
-
<li>Object</li>
|
76
|
-
|
77
|
-
<li class="next">StandardError</li>
|
78
|
-
|
79
|
-
<li class="next">Puppeteer::LifecycleWatcher::FrameDetachedError</li>
|
80
|
-
|
81
|
-
</ul>
|
82
|
-
<a href="#" class="inheritanceTree">show all</a>
|
83
|
-
|
84
|
-
</dd>
|
85
|
-
</dl>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
<dl>
|
98
|
-
<dt>Defined in:</dt>
|
99
|
-
<dd>lib/puppeteer/lifecycle_watcher.rb</dd>
|
100
|
-
</dl>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<h2>
|
113
|
-
Instance Method Summary
|
114
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
115
|
-
</h2>
|
116
|
-
|
117
|
-
<ul class="summary">
|
118
|
-
|
119
|
-
<li class="public ">
|
120
|
-
<span class="summary_signature">
|
121
|
-
|
122
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> ⇒ FrameDetachedError </a>
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
</span>
|
127
|
-
|
128
|
-
|
129
|
-
<span class="note title constructor">constructor</span>
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
<span class="summary_desc"><div class='inline'>
|
139
|
-
<p>A new instance of FrameDetachedError.</p>
|
140
|
-
</div></span>
|
141
|
-
|
142
|
-
</li>
|
143
|
-
|
144
|
-
|
145
|
-
</ul>
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
<div id="constructor_details" class="method_details_list">
|
150
|
-
<h2>Constructor Details</h2>
|
151
|
-
|
152
|
-
<div class="method_details first">
|
153
|
-
<h3 class="signature first" id="initialize-instance_method">
|
154
|
-
|
155
|
-
#<strong>initialize</strong> ⇒ <tt><span class='object_link'><a href="" title="Puppeteer::LifecycleWatcher::FrameDetachedError (class)">FrameDetachedError</a></span></tt>
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
</h3><div class="docstring">
|
162
|
-
<div class="discussion">
|
163
|
-
|
164
|
-
<p>Returns a new instance of FrameDetachedError.</p>
|
165
|
-
|
166
|
-
|
167
|
-
</div>
|
168
|
-
</div>
|
169
|
-
<div class="tags">
|
170
|
-
|
171
|
-
|
172
|
-
</div><table class="source_code">
|
173
|
-
<tr>
|
174
|
-
<td>
|
175
|
-
<pre class="lines">
|
176
|
-
|
177
|
-
|
178
|
-
54
|
179
|
-
55
|
180
|
-
56</pre>
|
181
|
-
</td>
|
182
|
-
<td>
|
183
|
-
<pre class="code"><span class="info file"># File 'lib/puppeteer/lifecycle_watcher.rb', line 54</span>
|
184
|
-
|
185
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
186
|
-
<span class='kw'>super</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Navigating frame was detached</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
187
|
-
<span class='kw'>end</span></pre>
|
188
|
-
</td>
|
189
|
-
</tr>
|
190
|
-
</table>
|
191
|
-
</div>
|
192
|
-
|
193
|
-
</div>
|
194
|
-
|
195
|
-
|
196
|
-
</div>
|
197
|
-
|
198
|
-
<div id="footer">
|
199
|
-
Generated on Tue Jun 23 10:25:01 2020 by
|
200
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
201
|
-
0.9.24 (ruby-2.6.3).
|
202
|
-
</div>
|
203
|
-
|
204
|
-
</div>
|
205
|
-
</body>
|
206
|
-
</html>
|