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.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +2 -14
  3. data/.github/workflows/docs.yml +45 -0
  4. data/.github/workflows/reviewdog.yml +15 -0
  5. data/README.md +52 -1
  6. data/lib/puppeteer.rb +10 -2
  7. data/lib/puppeteer/browser.rb +53 -34
  8. data/lib/puppeteer/browser_context.rb +35 -5
  9. data/lib/puppeteer/cdp_session.rb +3 -19
  10. data/lib/puppeteer/concurrent_ruby_utils.rb +6 -0
  11. data/lib/puppeteer/connection.rb +9 -16
  12. data/lib/puppeteer/debug_print.rb +1 -1
  13. data/lib/puppeteer/define_async_method.rb +23 -0
  14. data/lib/puppeteer/dom_world.rb +67 -78
  15. data/lib/puppeteer/element_handle.rb +19 -47
  16. data/lib/puppeteer/emulation_manager.rb +2 -6
  17. data/lib/puppeteer/env.rb +18 -0
  18. data/lib/puppeteer/execution_context.rb +1 -6
  19. data/lib/puppeteer/frame.rb +34 -39
  20. data/lib/puppeteer/frame_manager.rb +7 -25
  21. data/lib/puppeteer/js_handle.rb +3 -12
  22. data/lib/puppeteer/keyboard.rb +9 -29
  23. data/lib/puppeteer/launcher/chrome.rb +9 -7
  24. data/lib/puppeteer/mouse.rb +20 -24
  25. data/lib/puppeteer/network_manager.rb +163 -5
  26. data/lib/puppeteer/page.rb +213 -179
  27. data/lib/puppeteer/page/pdf_options.rb +166 -0
  28. data/lib/puppeteer/remote_object.rb +2 -5
  29. data/lib/puppeteer/request.rb +330 -0
  30. data/lib/puppeteer/response.rb +113 -0
  31. data/lib/puppeteer/touch_screen.rb +2 -7
  32. data/lib/puppeteer/version.rb +1 -1
  33. data/lib/puppeteer/wait_task.rb +2 -4
  34. data/lib/puppeteer/web_socket.rb +7 -0
  35. data/puppeteer-ruby.gemspec +2 -1
  36. metadata +25 -103
  37. data/docs/Puppeteer.html +0 -2338
  38. data/docs/Puppeteer/AsyncAwaitBehavior.html +0 -105
  39. data/docs/Puppeteer/Browser.html +0 -2258
  40. data/docs/Puppeteer/BrowserContext.html +0 -809
  41. data/docs/Puppeteer/BrowserFetcher.html +0 -214
  42. data/docs/Puppeteer/BrowserRunner.html +0 -914
  43. data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +0 -477
  44. data/docs/Puppeteer/CDPSession.html +0 -813
  45. data/docs/Puppeteer/CDPSession/Error.html +0 -124
  46. data/docs/Puppeteer/ConcurrentRubyUtils.html +0 -438
  47. data/docs/Puppeteer/Connection.html +0 -964
  48. data/docs/Puppeteer/Connection/MessageCallback.html +0 -434
  49. data/docs/Puppeteer/Connection/ProtocolError.html +0 -216
  50. data/docs/Puppeteer/Connection/RequestDebugPrinter.html +0 -217
  51. data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +0 -244
  52. data/docs/Puppeteer/ConsoleMessage.html +0 -565
  53. data/docs/Puppeteer/ConsoleMessage/Location.html +0 -433
  54. data/docs/Puppeteer/DOMWorld.html +0 -2219
  55. data/docs/Puppeteer/DOMWorld/DetachedError.html +0 -124
  56. data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +0 -124
  57. data/docs/Puppeteer/DebugPrint.html +0 -233
  58. data/docs/Puppeteer/Device.html +0 -470
  59. data/docs/Puppeteer/Devices.html +0 -139
  60. data/docs/Puppeteer/ElementHandle.html +0 -2542
  61. data/docs/Puppeteer/ElementHandle/BoundingBox.html +0 -507
  62. data/docs/Puppeteer/ElementHandle/BoxModel.html +0 -404
  63. data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +0 -206
  64. data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +0 -206
  65. data/docs/Puppeteer/ElementHandle/Point.html +0 -492
  66. data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +0 -124
  67. data/docs/Puppeteer/EmulationManager.html +0 -454
  68. data/docs/Puppeteer/EventCallbackable.html +0 -499
  69. data/docs/Puppeteer/EventCallbackable/EventListeners.html +0 -435
  70. data/docs/Puppeteer/ExecutionContext.html +0 -998
  71. data/docs/Puppeteer/ExecutionContext/EvaluationError.html +0 -124
  72. data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +0 -357
  73. data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +0 -389
  74. data/docs/Puppeteer/FileChooser.html +0 -455
  75. data/docs/Puppeteer/Frame.html +0 -3813
  76. data/docs/Puppeteer/FrameManager.html +0 -2410
  77. data/docs/Puppeteer/FrameManager/NavigationError.html +0 -124
  78. data/docs/Puppeteer/IfPresent.html +0 -222
  79. data/docs/Puppeteer/JSHandle.html +0 -1352
  80. data/docs/Puppeteer/Keyboard.html +0 -1557
  81. data/docs/Puppeteer/Keyboard/KeyDefinition.html +0 -831
  82. data/docs/Puppeteer/Keyboard/KeyDescription.html +0 -603
  83. data/docs/Puppeteer/Launcher.html +0 -237
  84. data/docs/Puppeteer/Launcher/Base.html +0 -385
  85. data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +0 -124
  86. data/docs/Puppeteer/Launcher/BrowserOptions.html +0 -441
  87. data/docs/Puppeteer/Launcher/Chrome.html +0 -669
  88. data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +0 -382
  89. data/docs/Puppeteer/Launcher/ChromeArgOptions.html +0 -531
  90. data/docs/Puppeteer/Launcher/LaunchOptions.html +0 -893
  91. data/docs/Puppeteer/LifecycleWatcher.html +0 -834
  92. data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +0 -363
  93. data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +0 -206
  94. data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +0 -124
  95. data/docs/Puppeteer/Mouse.html +0 -1095
  96. data/docs/Puppeteer/Mouse/Button.html +0 -136
  97. data/docs/Puppeteer/NetworkManager.html +0 -901
  98. data/docs/Puppeteer/NetworkManager/Credentials.html +0 -385
  99. data/docs/Puppeteer/Page.html +0 -6173
  100. data/docs/Puppeteer/Page/FileChooserTimeoutError.html +0 -206
  101. data/docs/Puppeteer/Page/ScreenshotOptions.html +0 -845
  102. data/docs/Puppeteer/Page/ScriptTag.html +0 -555
  103. data/docs/Puppeteer/Page/StyleTag.html +0 -448
  104. data/docs/Puppeteer/Page/TargetCrashedError.html +0 -124
  105. data/docs/Puppeteer/RemoteObject.html +0 -1087
  106. data/docs/Puppeteer/Target.html +0 -1336
  107. data/docs/Puppeteer/Target/InitializeFailure.html +0 -124
  108. data/docs/Puppeteer/Target/TargetInfo.html +0 -729
  109. data/docs/Puppeteer/TimeoutError.html +0 -135
  110. data/docs/Puppeteer/TimeoutSettings.html +0 -496
  111. data/docs/Puppeteer/TouchScreen.html +0 -464
  112. data/docs/Puppeteer/Viewport.html +0 -837
  113. data/docs/Puppeteer/WaitTask.html +0 -637
  114. data/docs/Puppeteer/WaitTask/TerminatedError.html +0 -124
  115. data/docs/Puppeteer/WaitTask/TimeoutError.html +0 -206
  116. data/docs/Puppeteer/WebSocket.html +0 -673
  117. data/docs/Puppeteer/WebSocket/DriverImpl.html +0 -412
  118. data/docs/Puppeteer/WebSocket/TransportError.html +0 -124
  119. data/docs/Puppeteer/WebSocketTransport.html +0 -600
  120. data/docs/Puppeteer/WebSocktTransportError.html +0 -124
  121. data/docs/_index.html +0 -816
  122. data/docs/class_list.html +0 -51
  123. data/docs/css/common.css +0 -1
  124. data/docs/css/full_list.css +0 -58
  125. data/docs/css/style.css +0 -496
  126. data/docs/file.README.html +0 -125
  127. data/docs/file_list.html +0 -56
  128. data/docs/frames.html +0 -17
  129. data/docs/index.html +0 -125
  130. data/docs/js/app.js +0 -314
  131. data/docs/js/full_list.js +0 -216
  132. data/docs/js/jquery.js +0 -4
  133. data/docs/method_list.html +0 -4115
  134. data/docs/top-level-namespace.html +0 -126
  135. data/lib/puppeteer/async_await_behavior.rb +0 -38
@@ -1,382 +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::Launcher::Chrome::DefaultArgs
8
-
9
- &mdash; 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::Launcher::Chrome::DefaultArgs";
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 (D)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../Launcher.html" title="Puppeteer::Launcher (module)">Launcher</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Chrome.html" title="Puppeteer::Launcher::Chrome (class)">Chrome</a></span></span>
41
- &raquo;
42
- <span class="title">DefaultArgs</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::Launcher::Chrome::DefaultArgs
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::Launcher::Chrome::DefaultArgs</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
-
89
-
90
- <dl>
91
- <dt>Includes:</dt>
92
- <dd>Enumerable</dd>
93
- </dl>
94
-
95
-
96
-
97
-
98
-
99
-
100
- <dl>
101
- <dt>Defined in:</dt>
102
- <dd>lib/puppeteer/launcher/chrome.rb</dd>
103
- </dl>
104
-
105
- </div>
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
- <h2>
116
- Instance Method Summary
117
- <small><a href="#" class="summary_toggle">collapse</a></small>
118
- </h2>
119
-
120
- <ul class="summary">
121
-
122
- <li class="public ">
123
- <span class="summary_signature">
124
-
125
- <a href="#each-instance_method" title="#each (instance method)">#<strong>each</strong>(&amp;block) &#x21d2; Object </a>
126
-
127
-
128
-
129
- </span>
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
- <span class="summary_desc"><div class='inline'></div></span>
140
-
141
- </li>
142
-
143
-
144
- <li class="public ">
145
- <span class="summary_signature">
146
-
147
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(chrome_arg_options) &#x21d2; DefaultArgs </a>
148
-
149
-
150
-
151
- </span>
152
-
153
-
154
- <span class="note title constructor">constructor</span>
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
- <span class="summary_desc"><div class='inline'>
164
- <p>A new instance of DefaultArgs.</p>
165
- </div></span>
166
-
167
- </li>
168
-
169
-
170
- </ul>
171
-
172
-
173
-
174
- <div id="constructor_details" class="method_details_list">
175
- <h2>Constructor Details</h2>
176
-
177
- <div class="method_details first">
178
- <h3 class="signature first" id="initialize-instance_method">
179
-
180
- #<strong>initialize</strong>(chrome_arg_options) &#x21d2; <tt><span class='object_link'><a href="" title="Puppeteer::Launcher::Chrome::DefaultArgs (class)">DefaultArgs</a></span></tt>
181
-
182
-
183
-
184
-
185
-
186
- </h3><div class="docstring">
187
- <div class="discussion">
188
-
189
- <p>Returns a new instance of DefaultArgs.</p>
190
-
191
-
192
- </div>
193
- </div>
194
- <div class="tags">
195
- <p class="tag_title">Parameters:</p>
196
- <ul class="param">
197
-
198
- <li>
199
-
200
- <span class='name'>options</span>
201
-
202
-
203
- <span class='type'>(<tt><span class='object_link'><a href="../ChromeArgOptions.html" title="Puppeteer::Launcher::ChromeArgOptions (class)">Launcher::ChromeArgOptions</a></span></tt>)</span>
204
-
205
-
206
-
207
- </li>
208
-
209
- </ul>
210
-
211
-
212
- </div><table class="source_code">
213
- <tr>
214
- <td>
215
- <pre class="lines">
216
-
217
-
218
- 83
219
- 84
220
- 85
221
- 86
222
- 87
223
- 88
224
- 89
225
- 90
226
- 91
227
- 92
228
- 93
229
- 94
230
- 95
231
- 96
232
- 97
233
- 98
234
- 99
235
- 100
236
- 101
237
- 102
238
- 103
239
- 104
240
- 105
241
- 106
242
- 107
243
- 108
244
- 109
245
- 110
246
- 111
247
- 112
248
- 113
249
- 114
250
- 115
251
- 116
252
- 117
253
- 118
254
- 119
255
- 120
256
- 121
257
- 122
258
- 123
259
- 124
260
- 125
261
- 126
262
- 127
263
- 128
264
- 129
265
- 130
266
- 131
267
- 132
268
- 133</pre>
269
- </td>
270
- <td>
271
- <pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome.rb', line 83</span>
272
-
273
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_chrome_arg_options'>chrome_arg_options</span><span class='rparen'>)</span>
274
- <span class='id identifier rubyid_chrome_arguments'>chrome_arguments</span> <span class='op'>=</span> <span class='lbracket'>[</span>
275
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-background-networking</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
276
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--enable-features=NetworkService,NetworkServiceInProcess</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
277
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-background-timer-throttling</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
278
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-backgrounding-occluded-windows</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
279
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-breakpad</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
280
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-client-side-phishing-detection</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
281
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-component-extensions-with-background-pages</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
282
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-default-apps</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
283
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-dev-shm-usage</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
284
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-extensions</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
285
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-features=TranslateUI</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
286
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-hang-monitor</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
287
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-ipc-flooding-protection</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
288
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-popup-blocking</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
289
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-prompt-on-repost</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
290
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-renderer-backgrounding</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
291
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--disable-sync</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
292
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--force-color-profile=srgb</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
293
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--metrics-recording-only</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
294
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--no-first-run</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
295
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--enable-automation</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
296
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--password-store=basic</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
297
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--use-mock-keychain</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
298
- <span class='rbracket'>]</span>
299
-
300
- <span class='kw'>if</span> <span class='id identifier rubyid_chrome_arg_options'>chrome_arg_options</span><span class='period'>.</span><span class='id identifier rubyid_user_data_dir'>user_data_dir</span>
301
- <span class='id identifier rubyid_chrome_arguments'>chrome_arguments</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>--user-data-dir=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_chrome_arg_options'>chrome_arg_options</span><span class='period'>.</span><span class='id identifier rubyid_user_data_dir'>user_data_dir</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
302
- <span class='kw'>end</span>
303
-
304
- <span class='kw'>if</span> <span class='id identifier rubyid_chrome_arg_options'>chrome_arg_options</span><span class='period'>.</span><span class='id identifier rubyid_devtools?'>devtools?</span>
305
- <span class='id identifier rubyid_chrome_arguments'>chrome_arguments</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--auto-open-devtools-for-tabs</span><span class='tstring_end'>&#39;</span></span>
306
- <span class='kw'>end</span>
307
-
308
- <span class='kw'>if</span> <span class='id identifier rubyid_chrome_arg_options'>chrome_arg_options</span><span class='period'>.</span><span class='id identifier rubyid_headless?'>headless?</span>
309
- <span class='id identifier rubyid_chrome_arguments'>chrome_arguments</span><span class='period'>.</span><span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='lbracket'>[</span>
310
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--headless</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
311
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--hide-scrollbars</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
312
- <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--mute-audio</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
313
- <span class='rbracket'>]</span><span class='rparen'>)</span>
314
- <span class='kw'>end</span>
315
-
316
- <span class='kw'>if</span> <span class='id identifier rubyid_chrome_arg_options'>chrome_arg_options</span><span class='period'>.</span><span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_arg'>arg</span><span class='op'>|</span> <span class='id identifier rubyid_arg'>arg</span><span class='period'>.</span><span class='id identifier rubyid_start_with?'>start_with?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>-</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
317
- <span class='id identifier rubyid_chrome_arguments'>chrome_arguments</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>about:blank</span><span class='tstring_end'>&#39;</span></span>
318
- <span class='kw'>end</span>
319
-
320
- <span class='id identifier rubyid_chrome_arguments'>chrome_arguments</span><span class='period'>.</span><span class='id identifier rubyid_concat'>concat</span><span class='lparen'>(</span><span class='id identifier rubyid_chrome_arg_options'>chrome_arg_options</span><span class='period'>.</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
321
-
322
- <span class='ivar'>@chrome_arguments</span> <span class='op'>=</span> <span class='id identifier rubyid_chrome_arguments'>chrome_arguments</span>
323
- <span class='kw'>end</span></pre>
324
- </td>
325
- </tr>
326
- </table>
327
- </div>
328
-
329
- </div>
330
-
331
-
332
- <div id="instance_method_details" class="method_details_list">
333
- <h2>Instance Method Details</h2>
334
-
335
-
336
- <div class="method_details first">
337
- <h3 class="signature first" id="each-instance_method">
338
-
339
- #<strong>each</strong>(&amp;block) &#x21d2; <tt>Object</tt>
340
-
341
-
342
-
343
-
344
-
345
- </h3><table class="source_code">
346
- <tr>
347
- <td>
348
- <pre class="lines">
349
-
350
-
351
- 135
352
- 136
353
- 137
354
- 138
355
- 139</pre>
356
- </td>
357
- <td>
358
- <pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome.rb', line 135</span>
359
-
360
- <span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
361
- <span class='ivar'>@chrome_arguments</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_opt'>opt</span><span class='op'>|</span>
362
- <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_opt'>opt</span><span class='rparen'>)</span>
363
- <span class='kw'>end</span>
364
- <span class='kw'>end</span></pre>
365
- </td>
366
- </tr>
367
- </table>
368
- </div>
369
-
370
- </div>
371
-
372
- </div>
373
-
374
- <div id="footer">
375
- Generated on Tue Jun 23 10:25:00 2020 by
376
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
377
- 0.9.24 (ruby-2.6.3).
378
- </div>
379
-
380
- </div>
381
- </body>
382
- </html>
@@ -1,531 +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::Launcher::ChromeArgOptions
8
-
9
- &mdash; 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::Launcher::ChromeArgOptions";
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 (C)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Launcher.html" title="Puppeteer::Launcher (module)">Launcher</a></span></span>
41
- &raquo;
42
- <span class="title">ChromeArgOptions</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::Launcher::ChromeArgOptions
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::Launcher::ChromeArgOptions</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/launcher/chrome_arg_options.rb</dd>
98
- </dl>
99
-
100
- </div>
101
-
102
-
103
-
104
-
105
-
106
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
107
- <ul class="summary">
108
-
109
- <li class="public ">
110
- <span class="summary_signature">
111
-
112
- <a href="#args-instance_method" title="#args (instance method)">#<strong>args</strong> &#x21d2; Object </a>
113
-
114
-
115
-
116
- </span>
117
-
118
-
119
-
120
-
121
- <span class="note title readonly">readonly</span>
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
- <span class="summary_desc"><div class='inline'>
132
- <p>Returns the value of attribute args.</p>
133
- </div></span>
134
-
135
- </li>
136
-
137
-
138
- <li class="public ">
139
- <span class="summary_signature">
140
-
141
- <a href="#user_data_dir-instance_method" title="#user_data_dir (instance method)">#<strong>user_data_dir</strong> &#x21d2; Object </a>
142
-
143
-
144
-
145
- </span>
146
-
147
-
148
-
149
-
150
- <span class="note title readonly">readonly</span>
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
- <span class="summary_desc"><div class='inline'>
161
- <p>Returns the value of attribute user_data_dir.</p>
162
- </div></span>
163
-
164
- </li>
165
-
166
-
167
- </ul>
168
-
169
-
170
-
171
-
172
-
173
- <h2>
174
- Instance Method Summary
175
- <small><a href="#" class="summary_toggle">collapse</a></small>
176
- </h2>
177
-
178
- <ul class="summary">
179
-
180
- <li class="public ">
181
- <span class="summary_signature">
182
-
183
- <a href="#devtools%3F-instance_method" title="#devtools? (instance method)">#<strong>devtools?</strong> &#x21d2; Boolean </a>
184
-
185
-
186
-
187
- </span>
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
- <span class="summary_desc"><div class='inline'></div></span>
198
-
199
- </li>
200
-
201
-
202
- <li class="public ">
203
- <span class="summary_signature">
204
-
205
- <a href="#headless%3F-instance_method" title="#headless? (instance method)">#<strong>headless?</strong> &#x21d2; Boolean </a>
206
-
207
-
208
-
209
- </span>
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
- <span class="summary_desc"><div class='inline'></div></span>
220
-
221
- </li>
222
-
223
-
224
- <li class="public ">
225
- <span class="summary_signature">
226
-
227
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(options) &#x21d2; ChromeArgOptions </a>
228
-
229
-
230
-
231
- </span>
232
-
233
-
234
- <span class="note title constructor">constructor</span>
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
- <span class="summary_desc"><div class='inline'><ul><li>
244
- <p>@property boolean= headless * @property Array&lt;string&gt;= args * @property string= userDataDir * @property boolean= devtools.</p>
245
- </li></ul>
246
- </div></span>
247
-
248
- </li>
249
-
250
-
251
- </ul>
252
-
253
-
254
- <div id="constructor_details" class="method_details_list">
255
- <h2>Constructor Details</h2>
256
-
257
- <div class="method_details first">
258
- <h3 class="signature first" id="initialize-instance_method">
259
-
260
- #<strong>initialize</strong>(options) &#x21d2; <tt><span class='object_link'><a href="" title="Puppeteer::Launcher::ChromeArgOptions (class)">ChromeArgOptions</a></span></tt>
261
-
262
-
263
-
264
-
265
-
266
- </h3><div class="docstring">
267
- <div class="discussion">
268
- <ul><li>
269
- <p>@property boolean= headless</p>
270
- </li><li>
271
- <p>@property Array&lt;string&gt;= args</p>
272
- </li><li>
273
- <p>@property string= userDataDir</p>
274
- </li><li>
275
- <p>@property boolean= devtools</p>
276
- </li></ul>
277
-
278
-
279
- </div>
280
- </div>
281
- <div class="tags">
282
-
283
-
284
- </div><table class="source_code">
285
- <tr>
286
- <td>
287
- <pre class="lines">
288
-
289
-
290
- 29
291
- 30
292
- 31
293
- 32
294
- 33
295
- 34
296
- 35
297
- 36
298
- 37</pre>
299
- </td>
300
- <td>
301
- <pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 29</span>
302
-
303
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
304
- <span class='ivar'>@args</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:args</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
305
- <span class='ivar'>@user_data_dir</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:user_data_dir</span><span class='rbracket'>]</span>
306
- <span class='ivar'>@devtools</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:devtools</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='kw'>false</span>
307
- <span class='ivar'>@headless</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:headless</span><span class='rbracket'>]</span>
308
- <span class='kw'>if</span> <span class='ivar'>@headless</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
309
- <span class='ivar'>@headless</span> <span class='op'>=</span> <span class='op'>!</span><span class='ivar'>@devtools</span>
310
- <span class='kw'>end</span>
311
- <span class='kw'>end</span></pre>
312
- </td>
313
- </tr>
314
- </table>
315
- </div>
316
-
317
- </div>
318
-
319
- <div id="instance_attr_details" class="attr_details">
320
- <h2>Instance Attribute Details</h2>
321
-
322
-
323
- <span id=""></span>
324
- <div class="method_details first">
325
- <h3 class="signature first" id="args-instance_method">
326
-
327
- #<strong>args</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
328
-
329
-
330
-
331
-
332
-
333
- </h3><div class="docstring">
334
- <div class="discussion">
335
-
336
- <p>Returns the value of attribute args.</p>
337
-
338
-
339
- </div>
340
- </div>
341
- <div class="tags">
342
-
343
-
344
- </div><table class="source_code">
345
- <tr>
346
- <td>
347
- <pre class="lines">
348
-
349
-
350
- 39
351
- 40
352
- 41</pre>
353
- </td>
354
- <td>
355
- <pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 39</span>
356
-
357
- <span class='kw'>def</span> <span class='id identifier rubyid_args'>args</span>
358
- <span class='ivar'>@args</span>
359
- <span class='kw'>end</span></pre>
360
- </td>
361
- </tr>
362
- </table>
363
- </div>
364
-
365
-
366
- <span id=""></span>
367
- <div class="method_details ">
368
- <h3 class="signature " id="user_data_dir-instance_method">
369
-
370
- #<strong>user_data_dir</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
371
-
372
-
373
-
374
-
375
-
376
- </h3><div class="docstring">
377
- <div class="discussion">
378
-
379
- <p>Returns the value of attribute user_data_dir.</p>
380
-
381
-
382
- </div>
383
- </div>
384
- <div class="tags">
385
-
386
-
387
- </div><table class="source_code">
388
- <tr>
389
- <td>
390
- <pre class="lines">
391
-
392
-
393
- 39
394
- 40
395
- 41</pre>
396
- </td>
397
- <td>
398
- <pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 39</span>
399
-
400
- <span class='kw'>def</span> <span class='id identifier rubyid_user_data_dir'>user_data_dir</span>
401
- <span class='ivar'>@user_data_dir</span>
402
- <span class='kw'>end</span></pre>
403
- </td>
404
- </tr>
405
- </table>
406
- </div>
407
-
408
- </div>
409
-
410
-
411
- <div id="instance_method_details" class="method_details_list">
412
- <h2>Instance Method Details</h2>
413
-
414
-
415
- <div class="method_details first">
416
- <h3 class="signature first" id="devtools?-instance_method">
417
-
418
- #<strong>devtools?</strong> &#x21d2; <tt>Boolean</tt>
419
-
420
-
421
-
422
-
423
-
424
- </h3><div class="docstring">
425
- <div class="discussion">
426
-
427
-
428
- </div>
429
- </div>
430
- <div class="tags">
431
-
432
- <p class="tag_title">Returns:</p>
433
- <ul class="return">
434
-
435
- <li>
436
-
437
-
438
- <span class='type'>(<tt>Boolean</tt>)</span>
439
-
440
-
441
-
442
- </li>
443
-
444
- </ul>
445
-
446
- </div><table class="source_code">
447
- <tr>
448
- <td>
449
- <pre class="lines">
450
-
451
-
452
- 45
453
- 46
454
- 47</pre>
455
- </td>
456
- <td>
457
- <pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 45</span>
458
-
459
- <span class='kw'>def</span> <span class='id identifier rubyid_devtools?'>devtools?</span>
460
- <span class='ivar'>@devtools</span>
461
- <span class='kw'>end</span></pre>
462
- </td>
463
- </tr>
464
- </table>
465
- </div>
466
-
467
- <div class="method_details ">
468
- <h3 class="signature " id="headless?-instance_method">
469
-
470
- #<strong>headless?</strong> &#x21d2; <tt>Boolean</tt>
471
-
472
-
473
-
474
-
475
-
476
- </h3><div class="docstring">
477
- <div class="discussion">
478
-
479
-
480
- </div>
481
- </div>
482
- <div class="tags">
483
-
484
- <p class="tag_title">Returns:</p>
485
- <ul class="return">
486
-
487
- <li>
488
-
489
-
490
- <span class='type'>(<tt>Boolean</tt>)</span>
491
-
492
-
493
-
494
- </li>
495
-
496
- </ul>
497
-
498
- </div><table class="source_code">
499
- <tr>
500
- <td>
501
- <pre class="lines">
502
-
503
-
504
- 41
505
- 42
506
- 43</pre>
507
- </td>
508
- <td>
509
- <pre class="code"><span class="info file"># File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 41</span>
510
-
511
- <span class='kw'>def</span> <span class='id identifier rubyid_headless?'>headless?</span>
512
- <span class='ivar'>@headless</span>
513
- <span class='kw'>end</span></pre>
514
- </td>
515
- </tr>
516
- </table>
517
- </div>
518
-
519
- </div>
520
-
521
- </div>
522
-
523
- <div id="footer">
524
- Generated on Tue Jun 23 10:25:01 2020 by
525
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
526
- 0.9.24 (ruby-2.6.3).
527
- </div>
528
-
529
- </div>
530
- </body>
531
- </html>