puppeteer-ruby 0.0.6 → 0.0.8

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.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -2
  3. data/docs/Puppeteer.html +53 -43
  4. data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
  5. data/docs/Puppeteer/Browser.html +1 -1
  6. data/docs/Puppeteer/BrowserContext.html +1 -1
  7. data/docs/Puppeteer/BrowserFetcher.html +1 -1
  8. data/docs/Puppeteer/BrowserRunner.html +1 -1
  9. data/docs/Puppeteer/BrowserRunner/BrowserProcess.html +1 -1
  10. data/docs/Puppeteer/CDPSession.html +1 -1
  11. data/docs/Puppeteer/CDPSession/Error.html +1 -1
  12. data/docs/Puppeteer/ConcurrentRubyUtils.html +1 -1
  13. data/docs/Puppeteer/Connection.html +1 -1
  14. data/docs/Puppeteer/Connection/MessageCallback.html +1 -1
  15. data/docs/Puppeteer/Connection/ProtocolError.html +1 -1
  16. data/docs/Puppeteer/Connection/RequestDebugPrinter.html +1 -1
  17. data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +1 -1
  18. data/docs/Puppeteer/ConsoleMessage.html +1 -1
  19. data/docs/Puppeteer/ConsoleMessage/Location.html +1 -1
  20. data/docs/Puppeteer/DOMWorld.html +116 -19
  21. data/docs/Puppeteer/DOMWorld/DetachedError.html +1 -1
  22. data/docs/Puppeteer/DOMWorld/DocumentEvaluationError.html +1 -1
  23. data/docs/Puppeteer/DebugPrint.html +1 -1
  24. data/docs/Puppeteer/Device.html +1 -1
  25. data/docs/Puppeteer/Devices.html +1 -1
  26. data/docs/Puppeteer/ElementHandle.html +565 -141
  27. data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +5 -5
  28. data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +5 -5
  29. data/docs/Puppeteer/ElementHandle/Point.html +21 -21
  30. data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +1 -1
  31. data/docs/Puppeteer/EmulationManager.html +1 -1
  32. data/docs/Puppeteer/EventCallbackable.html +1 -1
  33. data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
  34. data/docs/Puppeteer/ExecutionContext.html +114 -11
  35. data/docs/Puppeteer/ExecutionContext/EvaluationError.html +1 -1
  36. data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +1 -1
  37. data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +1 -1
  38. data/docs/Puppeteer/FileChooser.html +455 -0
  39. data/docs/Puppeteer/Frame.html +1 -1
  40. data/docs/Puppeteer/FrameManager.html +1 -1
  41. data/docs/Puppeteer/FrameManager/NavigationError.html +1 -1
  42. data/docs/Puppeteer/IfPresent.html +1 -1
  43. data/docs/Puppeteer/JSHandle.html +1 -1
  44. data/docs/Puppeteer/Keyboard.html +1 -1
  45. data/docs/Puppeteer/Keyboard/KeyDefinition.html +1 -1
  46. data/docs/Puppeteer/Keyboard/KeyDescription.html +1 -1
  47. data/docs/Puppeteer/Launcher.html +1 -1
  48. data/docs/Puppeteer/Launcher/Base.html +1 -1
  49. data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +1 -1
  50. data/docs/Puppeteer/Launcher/BrowserOptions.html +1 -1
  51. data/docs/Puppeteer/Launcher/Chrome.html +64 -23
  52. data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +1 -1
  53. data/docs/Puppeteer/Launcher/ChromeArgOptions.html +1 -1
  54. data/docs/Puppeteer/Launcher/LaunchOptions.html +1 -1
  55. data/docs/Puppeteer/LifecycleWatcher.html +1 -1
  56. data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +1 -1
  57. data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +1 -1
  58. data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +1 -1
  59. data/docs/Puppeteer/Mouse.html +1 -1
  60. data/docs/Puppeteer/Mouse/Button.html +1 -1
  61. data/docs/Puppeteer/NetworkManager.html +1 -1
  62. data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
  63. data/docs/Puppeteer/Page.html +841 -349
  64. data/docs/Puppeteer/Page/FileChooserTimeoutError.html +206 -0
  65. data/docs/Puppeteer/Page/ScreenshotOptions.html +1 -1
  66. data/docs/Puppeteer/Page/ScriptTag.html +24 -24
  67. data/docs/Puppeteer/Page/StyleTag.html +19 -19
  68. data/docs/Puppeteer/Page/TargetCrashedError.html +1 -1
  69. data/docs/Puppeteer/RemoteObject.html +68 -3
  70. data/docs/Puppeteer/Target.html +1 -1
  71. data/docs/Puppeteer/Target/InitializeFailure.html +1 -1
  72. data/docs/Puppeteer/Target/TargetInfo.html +1 -1
  73. data/docs/Puppeteer/TimeoutError.html +1 -1
  74. data/docs/Puppeteer/TimeoutSettings.html +1 -1
  75. data/docs/Puppeteer/TouchScreen.html +1 -1
  76. data/docs/Puppeteer/Viewport.html +1 -1
  77. data/docs/Puppeteer/WaitTask.html +1 -1
  78. data/docs/Puppeteer/WaitTask/TerminatedError.html +1 -1
  79. data/docs/Puppeteer/WaitTask/TimeoutError.html +1 -1
  80. data/docs/Puppeteer/WebSocket.html +1 -1
  81. data/docs/Puppeteer/WebSocket/DriverImpl.html +1 -1
  82. data/docs/Puppeteer/WebSocketTransport.html +1 -1
  83. data/docs/Puppeteer/WebSocktTransportError.html +1 -1
  84. data/docs/_index.html +19 -5
  85. data/docs/class_list.html +1 -1
  86. data/docs/file.README.html +5 -3
  87. data/docs/index.html +5 -3
  88. data/docs/method_list.html +644 -508
  89. data/docs/top-level-namespace.html +1 -1
  90. data/lib/puppeteer.rb +7 -1
  91. data/lib/puppeteer/browser_runner.rb +1 -1
  92. data/lib/puppeteer/dom_world.rb +9 -12
  93. data/lib/puppeteer/element_handle.rb +82 -61
  94. data/lib/puppeteer/execution_context.rb +13 -0
  95. data/lib/puppeteer/file_chooser.rb +29 -0
  96. data/lib/puppeteer/frame_manager.rb +0 -2
  97. data/lib/puppeteer/launcher/chrome.rb +48 -2
  98. data/lib/puppeteer/page.rb +85 -52
  99. data/lib/puppeteer/remote_object.rb +6 -1
  100. data/lib/puppeteer/version.rb +1 -1
  101. metadata +5 -2
@@ -175,12 +175,12 @@
175
175
  <pre class="lines">
176
176
 
177
177
 
178
- 376
179
- 377
180
- 378</pre>
178
+ 381
179
+ 382
180
+ 383</pre>
181
181
  </td>
182
182
  <td>
183
- <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 376</span>
183
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 381</span>
184
184
 
185
185
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
186
186
  <span class='kw'>super</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>failed to find element matching selector \&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_selector'>selector</span><span class='embexpr_end'>}</span><span class='tstring_content'>\&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
@@ -196,7 +196,7 @@
196
196
  </div>
197
197
 
198
198
  <div id="footer">
199
- Generated on Mon May 25 23:22:50 2020 by
199
+ Generated on Thu Jun 4 23:54:43 2020 by
200
200
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
201
201
  0.9.24 (ruby-2.6.3).
202
202
  </div>
@@ -175,12 +175,12 @@
175
175
  <pre class="lines">
176
176
 
177
177
 
178
- 78
179
- 79
180
- 80</pre>
178
+ 80
179
+ 81
180
+ 82</pre>
181
181
  </td>
182
182
  <td>
183
- <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 78</span>
183
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 80</span>
184
184
 
185
185
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
186
186
  <span class='kw'>super</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Node is either not visible or not an HTMLElement</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
@@ -196,7 +196,7 @@
196
196
  </div>
197
197
 
198
198
  <div id="footer">
199
- Generated on Mon May 25 23:22:50 2020 by
199
+ Generated on Thu Jun 4 23:54:43 2020 by
200
200
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
201
201
  0.9.24 (ruby-2.6.3).
202
202
  </div>
@@ -279,13 +279,13 @@
279
279
  <pre class="lines">
280
280
 
281
281
 
282
- 55
283
- 56
284
282
  57
285
- 58</pre>
283
+ 58
284
+ 59
285
+ 60</pre>
286
286
  </td>
287
287
  <td>
288
- <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 55</span>
288
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 57</span>
289
289
 
290
290
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>x:</span><span class='comma'>,</span> <span class='label'>y:</span><span class='rparen'>)</span>
291
291
  <span class='ivar'>@x</span> <span class='op'>=</span> <span class='id identifier rubyid_x'>x</span>
@@ -329,12 +329,12 @@
329
329
  <pre class="lines">
330
330
 
331
331
 
332
- 74
333
- 75
334
- 76</pre>
332
+ 76
333
+ 77
334
+ 78</pre>
335
335
  </td>
336
336
  <td>
337
- <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 74</span>
337
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 76</span>
338
338
 
339
339
  <span class='kw'>def</span> <span class='id identifier rubyid_x'>x</span>
340
340
  <span class='ivar'>@x</span>
@@ -372,12 +372,12 @@
372
372
  <pre class="lines">
373
373
 
374
374
 
375
- 74
376
- 75
377
- 76</pre>
375
+ 76
376
+ 77
377
+ 78</pre>
378
378
  </td>
379
379
  <td>
380
- <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 74</span>
380
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 76</span>
381
381
 
382
382
  <span class='kw'>def</span> <span class='id identifier rubyid_y'>y</span>
383
383
  <span class='ivar'>@y</span>
@@ -409,15 +409,15 @@
409
409
  <pre class="lines">
410
410
 
411
411
 
412
- 60
413
- 61
414
412
  62
415
413
  63
416
414
  64
417
- 65</pre>
415
+ 65
416
+ 66
417
+ 67</pre>
418
418
  </td>
419
419
  <td>
420
- <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 60</span>
420
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 62</span>
421
421
 
422
422
  <span class='kw'>def</span> <span class='op'>+</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
423
423
  <span class='const'><span class='object_link'><a href="" title="Puppeteer::ElementHandle::Point (class)">Point</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Puppeteer::ElementHandle::Point#initialize (method)">new</a></span></span><span class='lparen'>(</span>
@@ -445,15 +445,15 @@
445
445
  <pre class="lines">
446
446
 
447
447
 
448
- 67
449
- 68
450
448
  69
451
449
  70
452
450
  71
453
- 72</pre>
451
+ 72
452
+ 73
453
+ 74</pre>
454
454
  </td>
455
455
  <td>
456
- <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 67</span>
456
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/element_handle.rb', line 69</span>
457
457
 
458
458
  <span class='kw'>def</span> <span class='op'>/</span><span class='lparen'>(</span><span class='id identifier rubyid_num'>num</span><span class='rparen'>)</span>
459
459
  <span class='const'><span class='object_link'><a href="" title="Puppeteer::ElementHandle::Point (class)">Point</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="#initialize-instance_method" title="Puppeteer::ElementHandle::Point#initialize (method)">new</a></span></span><span class='lparen'>(</span>
@@ -471,7 +471,7 @@
471
471
  </div>
472
472
 
473
473
  <div id="footer">
474
- Generated on Mon May 25 23:22:50 2020 by
474
+ Generated on Thu Jun 4 23:54:43 2020 by
475
475
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
476
476
  0.9.24 (ruby-2.6.3).
477
477
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Mon May 25 23:22:50 2020 by
117
+ Generated on Thu Jun 4 23:54:43 2020 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
119
  0.9.24 (ruby-2.6.3).
120
120
  </div>
@@ -444,7 +444,7 @@
444
444
  </div>
445
445
 
446
446
  <div id="footer">
447
- Generated on Mon May 25 23:22:50 2020 by
447
+ Generated on Thu Jun 4 23:54:43 2020 by
448
448
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
449
449
  0.9.24 (ruby-2.6.3).
450
450
  </div>
@@ -423,7 +423,7 @@
423
423
  </div>
424
424
 
425
425
  <div id="footer">
426
- Generated on Mon May 25 23:22:48 2020 by
426
+ Generated on Thu Jun 4 23:54:41 2020 by
427
427
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
428
428
  0.9.24 (ruby-2.6.3).
429
429
  </div>
@@ -425,7 +425,7 @@
425
425
  </div>
426
426
 
427
427
  <div id="footer">
428
- Generated on Mon May 25 23:22:51 2020 by
428
+ Generated on Thu Jun 4 23:54:43 2020 by
429
429
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
430
430
  0.9.24 (ruby-2.6.3).
431
431
  </div>
@@ -234,6 +234,28 @@
234
234
  <p>only used in DomWorld#delete_context.</p>
235
235
  </div></span>
236
236
 
237
+ </li>
238
+
239
+
240
+ <li class="public ">
241
+ <span class="summary_signature">
242
+
243
+ <a href="#adopt_backend_node_id-instance_method" title="#adopt_backend_node_id (instance method)">#<strong>adopt_backend_node_id</strong>(backend_node_id) &#x21d2; Puppeteer::ElementHandle </a>
244
+
245
+
246
+
247
+ </span>
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+ <span class="summary_desc"><div class='inline'></div></span>
258
+
237
259
  </li>
238
260
 
239
261
 
@@ -590,9 +612,9 @@
590
612
  </div>
591
613
 
592
614
  <div class="method_details ">
593
- <h3 class="signature " id="adopt_element_handle-instance_method">
615
+ <h3 class="signature " id="adopt_backend_node_id-instance_method">
594
616
 
595
- #<strong>adopt_element_handle</strong>(element_handle) &#x21d2; <tt><span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">Puppeteer::ElementHandle</a></span></tt>
617
+ #<strong>adopt_backend_node_id</strong>(backend_node_id) &#x21d2; <tt><span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">Puppeteer::ElementHandle</a></span></tt>
596
618
 
597
619
 
598
620
 
@@ -610,10 +632,10 @@
610
632
 
611
633
  <li>
612
634
 
613
- <span class='name'>element_handle</span>
635
+ <span class='name'>backend_node_id</span>
614
636
 
615
637
 
616
- <span class='type'>(<tt><span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">Puppeteer::ElementHandle</a></span></tt>)</span>
638
+ <span class='type'>(<tt>Integer</tt>)</span>
617
639
 
618
640
 
619
641
 
@@ -650,20 +672,101 @@
650
672
  227
651
673
  228
652
674
  229
653
- 230
654
- 231
655
- 232
656
- 233
675
+ 230</pre>
676
+ </td>
677
+ <td>
678
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/execution_context.rb', line 221</span>
679
+
680
+ <span class='kw'>def</span> <span class='id identifier rubyid_adopt_backend_node_id'>adopt_backend_node_id</span><span class='lparen'>(</span><span class='id identifier rubyid_backend_node_id'>backend_node_id</span><span class='rparen'>)</span>
681
+ <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <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'>&#39;</span><span class='tstring_content'>DOM.resolveNode</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
682
+ <span class='label'>backendNodeId:</span> <span class='id identifier rubyid_backend_node_id'>backend_node_id</span><span class='comma'>,</span>
683
+ <span class='label'>executionContextId:</span> <span class='ivar'>@context_id</span><span class='comma'>,</span>
684
+ <span class='rparen'>)</span>
685
+ <span class='const'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="JSHandle.html" title="Puppeteer::JSHandle (class)">JSHandle</a></span></span><span class='period'>.</span><span class='id identifier rubyid_create'><span class='object_link'><a href="JSHandle.html#create-class_method" title="Puppeteer::JSHandle.create (method)">create</a></span></span><span class='lparen'>(</span>
686
+ <span class='label'>context:</span> <span class='kw'>self</span><span class='comma'>,</span>
687
+ <span class='label'>remote_object:</span> <span class='const'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="RemoteObject.html" title="Puppeteer::RemoteObject (class)">RemoteObject</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="RemoteObject.html#initialize-instance_method" title="Puppeteer::RemoteObject#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_response'>response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>object</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='comma'>,</span>
688
+ <span class='rparen'>)</span>
689
+ <span class='kw'>end</span></pre>
690
+ </td>
691
+ </tr>
692
+ </table>
693
+ </div>
694
+
695
+ <div class="method_details ">
696
+ <h3 class="signature " id="adopt_element_handle-instance_method">
697
+
698
+ #<strong>adopt_element_handle</strong>(element_handle) &#x21d2; <tt><span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">Puppeteer::ElementHandle</a></span></tt>
699
+
700
+
701
+
702
+
703
+
704
+ </h3><div class="docstring">
705
+ <div class="discussion">
706
+
707
+
708
+ </div>
709
+ </div>
710
+ <div class="tags">
711
+ <p class="tag_title">Parameters:</p>
712
+ <ul class="param">
713
+
714
+ <li>
715
+
716
+ <span class='name'>element_handle</span>
717
+
718
+
719
+ <span class='type'>(<tt><span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">Puppeteer::ElementHandle</a></span></tt>)</span>
720
+
721
+
722
+
723
+ </li>
724
+
725
+ </ul>
726
+
727
+ <p class="tag_title">Returns:</p>
728
+ <ul class="return">
729
+
730
+ <li>
731
+
732
+
733
+ <span class='type'>(<tt><span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">Puppeteer::ElementHandle</a></span></tt>)</span>
734
+
735
+
736
+
737
+ </li>
738
+
739
+ </ul>
740
+
741
+ </div><table class="source_code">
742
+ <tr>
743
+ <td>
744
+ <pre class="lines">
745
+
746
+
657
747
  234
658
748
  235
659
749
  236
660
750
  237
661
751
  238
662
752
  239
663
- 240</pre>
753
+ 240
754
+ 241
755
+ 242
756
+ 243
757
+ 244
758
+ 245
759
+ 246
760
+ 247
761
+ 248
762
+ 249
763
+ 250
764
+ 251
765
+ 252
766
+ 253</pre>
664
767
  </td>
665
768
  <td>
666
- <pre class="code"><span class="info file"># File 'lib/puppeteer/execution_context.rb', line 221</span>
769
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/execution_context.rb', line 234</span>
667
770
 
668
771
  <span class='kw'>def</span> <span class='id identifier rubyid_adopt_element_handle'>adopt_element_handle</span><span class='lparen'>(</span><span class='id identifier rubyid_element_handle'>element_handle</span><span class='rparen'>)</span>
669
772
  <span class='kw'>if</span> <span class='id identifier rubyid_element_handle'>element_handle</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span> <span class='op'>==</span> <span class='kw'>self</span>
@@ -885,7 +988,7 @@
885
988
  </div>
886
989
 
887
990
  <div id="footer">
888
- Generated on Mon May 25 23:22:50 2020 by
991
+ Generated on Thu Jun 4 23:54:43 2020 by
889
992
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
890
993
  0.9.24 (ruby-2.6.3).
891
994
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Mon May 25 23:22:50 2020 by
117
+ Generated on Thu Jun 4 23:54:43 2020 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
119
  0.9.24 (ruby-2.6.3).
120
120
  </div>
@@ -347,7 +347,7 @@
347
347
  </div>
348
348
 
349
349
  <div id="footer">
350
- Generated on Mon May 25 23:22:50 2020 by
350
+ Generated on Thu Jun 4 23:54:43 2020 by
351
351
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
352
352
  0.9.24 (ruby-2.6.3).
353
353
  </div>
@@ -379,7 +379,7 @@
379
379
  </div>
380
380
 
381
381
  <div id="footer">
382
- Generated on Mon May 25 23:22:50 2020 by
382
+ Generated on Thu Jun 4 23:54:43 2020 by
383
383
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
384
384
  0.9.24 (ruby-2.6.3).
385
385
  </div>
@@ -0,0 +1,455 @@
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::FileChooser
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::FileChooser";
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> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span></span>
41
+ &raquo;
42
+ <span class="title">FileChooser</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::FileChooser
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::FileChooser</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/file_chooser.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ <h2>
111
+ Instance Method Summary
112
+ <small><a href="#" class="summary_toggle">collapse</a></small>
113
+ </h2>
114
+
115
+ <ul class="summary">
116
+
117
+ <li class="public ">
118
+ <span class="summary_signature">
119
+
120
+ <a href="#accept-instance_method" title="#accept (instance method)">#<strong>accept</strong>(file_paths) &#x21d2; Object </a>
121
+
122
+
123
+
124
+ </span>
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+ <span class="summary_desc"><div class='inline'></div></span>
135
+
136
+ </li>
137
+
138
+
139
+ <li class="public ">
140
+ <span class="summary_signature">
141
+
142
+ <a href="#cancel-instance_method" title="#cancel (instance method)">#<strong>cancel</strong> &#x21d2; Object </a>
143
+
144
+
145
+
146
+ </span>
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+ <span class="summary_desc"><div class='inline'></div></span>
157
+
158
+ </li>
159
+
160
+
161
+ <li class="public ">
162
+ <span class="summary_signature">
163
+
164
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(element, event) &#x21d2; FileChooser </a>
165
+
166
+
167
+
168
+ </span>
169
+
170
+
171
+ <span class="note title constructor">constructor</span>
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+ <span class="summary_desc"><div class='inline'>
181
+ <p>A new instance of FileChooser.</p>
182
+ </div></span>
183
+
184
+ </li>
185
+
186
+
187
+ <li class="public ">
188
+ <span class="summary_signature">
189
+
190
+ <a href="#multiple%3F-instance_method" title="#multiple? (instance method)">#<strong>multiple?</strong> &#x21d2; Boolean </a>
191
+
192
+
193
+
194
+ </span>
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+ <span class="summary_desc"><div class='inline'></div></span>
205
+
206
+ </li>
207
+
208
+
209
+ </ul>
210
+
211
+
212
+ <div id="constructor_details" class="method_details_list">
213
+ <h2>Constructor Details</h2>
214
+
215
+ <div class="method_details first">
216
+ <h3 class="signature first" id="initialize-instance_method">
217
+
218
+ #<strong>initialize</strong>(element, event) &#x21d2; <tt><span class='object_link'><a href="" title="Puppeteer::FileChooser (class)">FileChooser</a></span></tt>
219
+
220
+
221
+
222
+
223
+
224
+ </h3><div class="docstring">
225
+ <div class="discussion">
226
+
227
+ <p>Returns a new instance of FileChooser.</p>
228
+
229
+
230
+ </div>
231
+ </div>
232
+ <div class="tags">
233
+ <p class="tag_title">Parameters:</p>
234
+ <ul class="param">
235
+
236
+ <li>
237
+
238
+ <span class='name'>element</span>
239
+
240
+
241
+ <span class='type'>(<tt><span class='object_link'><a href="ElementHandle.html" title="Puppeteer::ElementHandle (class)">Puppeteer::ElementHandle</a></span></tt>)</span>
242
+
243
+
244
+
245
+ </li>
246
+
247
+ <li>
248
+
249
+ <span class='name'>event</span>
250
+
251
+
252
+ <span class='type'>(<tt>Hash</tt>)</span>
253
+
254
+
255
+
256
+ </li>
257
+
258
+ </ul>
259
+
260
+
261
+ </div><table class="source_code">
262
+ <tr>
263
+ <td>
264
+ <pre class="lines">
265
+
266
+
267
+ 4
268
+ 5
269
+ 6
270
+ 7
271
+ 8</pre>
272
+ </td>
273
+ <td>
274
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/file_chooser.rb', line 4</span>
275
+
276
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_element'>element</span><span class='comma'>,</span> <span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span>
277
+ <span class='ivar'>@element</span> <span class='op'>=</span> <span class='id identifier rubyid_element'>element</span>
278
+ <span class='ivar'>@multiple</span> <span class='op'>=</span> <span class='id identifier rubyid_event'>event</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>mode</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>selectSingle</span><span class='tstring_end'>&#39;</span></span>
279
+ <span class='ivar'>@handled</span> <span class='op'>=</span> <span class='kw'>false</span>
280
+ <span class='kw'>end</span></pre>
281
+ </td>
282
+ </tr>
283
+ </table>
284
+ </div>
285
+
286
+ </div>
287
+
288
+
289
+ <div id="instance_method_details" class="method_details_list">
290
+ <h2>Instance Method Details</h2>
291
+
292
+
293
+ <div class="method_details first">
294
+ <h3 class="signature first" id="accept-instance_method">
295
+
296
+ #<strong>accept</strong>(file_paths) &#x21d2; <tt>Object</tt>
297
+
298
+
299
+
300
+
301
+
302
+ </h3><div class="docstring">
303
+ <div class="discussion">
304
+
305
+
306
+ </div>
307
+ </div>
308
+ <div class="tags">
309
+ <p class="tag_title">Parameters:</p>
310
+ <ul class="param">
311
+
312
+ <li>
313
+
314
+ <span class='name'>file_paths</span>
315
+
316
+
317
+ <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
318
+
319
+
320
+
321
+ </li>
322
+
323
+ </ul>
324
+
325
+
326
+ </div><table class="source_code">
327
+ <tr>
328
+ <td>
329
+ <pre class="lines">
330
+
331
+
332
+ 15
333
+ 16
334
+ 17
335
+ 18
336
+ 19
337
+ 20
338
+ 21</pre>
339
+ </td>
340
+ <td>
341
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/file_chooser.rb', line 15</span>
342
+
343
+ <span class='kw'>def</span> <span class='id identifier rubyid_accept'>accept</span><span class='lparen'>(</span><span class='id identifier rubyid_file_paths'>file_paths</span><span class='rparen'>)</span>
344
+ <span class='kw'>if</span> <span class='ivar'>@handled</span>
345
+ <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Cannot accept FileChooser which is already handled!</span><span class='tstring_end'>&#39;</span></span>
346
+ <span class='kw'>end</span>
347
+ <span class='ivar'>@handled</span> <span class='op'>=</span> <span class='kw'>true</span>
348
+ <span class='ivar'>@element</span><span class='period'>.</span><span class='id identifier rubyid_upload_file'>upload_file</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_file_paths'>file_paths</span><span class='rparen'>)</span>
349
+ <span class='kw'>end</span></pre>
350
+ </td>
351
+ </tr>
352
+ </table>
353
+ </div>
354
+
355
+ <div class="method_details ">
356
+ <h3 class="signature " id="cancel-instance_method">
357
+
358
+ #<strong>cancel</strong> &#x21d2; <tt>Object</tt>
359
+
360
+
361
+
362
+
363
+
364
+ </h3><table class="source_code">
365
+ <tr>
366
+ <td>
367
+ <pre class="lines">
368
+
369
+
370
+ 23
371
+ 24
372
+ 25
373
+ 26
374
+ 27
375
+ 28</pre>
376
+ </td>
377
+ <td>
378
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/file_chooser.rb', line 23</span>
379
+
380
+ <span class='kw'>def</span> <span class='id identifier rubyid_cancel'>cancel</span>
381
+ <span class='kw'>if</span> <span class='ivar'>@handled</span>
382
+ <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Cannot cancel FileChooser which is already handled!</span><span class='tstring_end'>&#39;</span></span>
383
+ <span class='kw'>end</span>
384
+ <span class='ivar'>@handled</span> <span class='op'>=</span> <span class='kw'>true</span>
385
+ <span class='kw'>end</span></pre>
386
+ </td>
387
+ </tr>
388
+ </table>
389
+ </div>
390
+
391
+ <div class="method_details ">
392
+ <h3 class="signature " id="multiple?-instance_method">
393
+
394
+ #<strong>multiple?</strong> &#x21d2; <tt>Boolean</tt>
395
+
396
+
397
+
398
+
399
+
400
+ </h3><div class="docstring">
401
+ <div class="discussion">
402
+
403
+
404
+ </div>
405
+ </div>
406
+ <div class="tags">
407
+
408
+ <p class="tag_title">Returns:</p>
409
+ <ul class="return">
410
+
411
+ <li>
412
+
413
+
414
+ <span class='type'>(<tt>Boolean</tt>)</span>
415
+
416
+
417
+
418
+ </li>
419
+
420
+ </ul>
421
+
422
+ </div><table class="source_code">
423
+ <tr>
424
+ <td>
425
+ <pre class="lines">
426
+
427
+
428
+ 10
429
+ 11
430
+ 12</pre>
431
+ </td>
432
+ <td>
433
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/file_chooser.rb', line 10</span>
434
+
435
+ <span class='kw'>def</span> <span class='id identifier rubyid_multiple?'>multiple?</span>
436
+ <span class='ivar'>@multiple</span>
437
+ <span class='kw'>end</span></pre>
438
+ </td>
439
+ </tr>
440
+ </table>
441
+ </div>
442
+
443
+ </div>
444
+
445
+ </div>
446
+
447
+ <div id="footer">
448
+ Generated on Thu Jun 4 23:54:42 2020 by
449
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
450
+ 0.9.24 (ruby-2.6.3).
451
+ </div>
452
+
453
+ </div>
454
+ </body>
455
+ </html>