puppeteer-ruby 0.0.6 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -2
  3. data/docs/Puppeteer.html +432 -104
  4. data/docs/Puppeteer/AsyncAwaitBehavior.html +1 -1
  5. data/docs/Puppeteer/Browser.html +261 -153
  6. data/docs/Puppeteer/BrowserContext.html +2 -2
  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 +2 -2
  11. data/docs/Puppeteer/CDPSession/Error.html +1 -1
  12. data/docs/Puppeteer/ConcurrentRubyUtils.html +14 -6
  13. data/docs/Puppeteer/Connection.html +66 -62
  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 +5 -5
  17. data/docs/Puppeteer/Connection/ResponseDebugPrinter.html +12 -12
  18. data/docs/Puppeteer/ConsoleMessage.html +1 -1
  19. data/docs/Puppeteer/ConsoleMessage/Location.html +1 -1
  20. data/docs/Puppeteer/DOMWorld.html +130 -33
  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 +960 -218
  27. data/docs/Puppeteer/ElementHandle/BoundingBox.html +507 -0
  28. data/docs/Puppeteer/ElementHandle/BoxModel.html +404 -0
  29. data/docs/Puppeteer/ElementHandle/ElementNotFoundError.html +5 -5
  30. data/docs/Puppeteer/ElementHandle/ElementNotVisibleError.html +5 -5
  31. data/docs/Puppeteer/ElementHandle/Point.html +40 -29
  32. data/docs/Puppeteer/ElementHandle/ScrollIntoViewError.html +1 -1
  33. data/docs/Puppeteer/EmulationManager.html +1 -1
  34. data/docs/Puppeteer/EventCallbackable.html +83 -17
  35. data/docs/Puppeteer/EventCallbackable/EventListeners.html +1 -1
  36. data/docs/Puppeteer/ExecutionContext.html +114 -11
  37. data/docs/Puppeteer/ExecutionContext/EvaluationError.html +1 -1
  38. data/docs/Puppeteer/ExecutionContext/JavaScriptExpression.html +1 -1
  39. data/docs/Puppeteer/ExecutionContext/JavaScriptFunction.html +1 -1
  40. data/docs/Puppeteer/FileChooser.html +455 -0
  41. data/docs/Puppeteer/Frame.html +425 -289
  42. data/docs/Puppeteer/FrameManager.html +23 -27
  43. data/docs/Puppeteer/FrameManager/NavigationError.html +1 -1
  44. data/docs/Puppeteer/IfPresent.html +1 -1
  45. data/docs/Puppeteer/JSHandle.html +1 -1
  46. data/docs/Puppeteer/Keyboard.html +1 -1
  47. data/docs/Puppeteer/Keyboard/KeyDefinition.html +1 -1
  48. data/docs/Puppeteer/Keyboard/KeyDescription.html +1 -1
  49. data/docs/Puppeteer/Launcher.html +1 -1
  50. data/docs/Puppeteer/Launcher/Base.html +1 -1
  51. data/docs/Puppeteer/Launcher/Base/ExecutablePathNotFound.html +1 -1
  52. data/docs/Puppeteer/Launcher/BrowserOptions.html +1 -1
  53. data/docs/Puppeteer/Launcher/Chrome.html +64 -23
  54. data/docs/Puppeteer/Launcher/Chrome/DefaultArgs.html +1 -1
  55. data/docs/Puppeteer/Launcher/ChromeArgOptions.html +1 -1
  56. data/docs/Puppeteer/Launcher/LaunchOptions.html +1 -1
  57. data/docs/Puppeteer/LifecycleWatcher.html +1 -1
  58. data/docs/Puppeteer/LifecycleWatcher/ExpectedLifecycle.html +1 -1
  59. data/docs/Puppeteer/LifecycleWatcher/FrameDetachedError.html +1 -1
  60. data/docs/Puppeteer/LifecycleWatcher/TerminatedError.html +1 -1
  61. data/docs/Puppeteer/Mouse.html +31 -41
  62. data/docs/Puppeteer/Mouse/Button.html +1 -1
  63. data/docs/Puppeteer/NetworkManager.html +2 -2
  64. data/docs/Puppeteer/NetworkManager/Credentials.html +1 -1
  65. data/docs/Puppeteer/Page.html +1049 -354
  66. data/docs/Puppeteer/Page/FileChooserTimeoutError.html +206 -0
  67. data/docs/Puppeteer/Page/ScreenshotOptions.html +1 -1
  68. data/docs/Puppeteer/Page/ScriptTag.html +24 -24
  69. data/docs/Puppeteer/Page/StyleTag.html +19 -19
  70. data/docs/Puppeteer/Page/TargetCrashedError.html +1 -1
  71. data/docs/Puppeteer/RemoteObject.html +173 -37
  72. data/docs/Puppeteer/Target.html +150 -198
  73. data/docs/Puppeteer/Target/InitializeFailure.html +1 -1
  74. data/docs/Puppeteer/Target/TargetInfo.html +1 -1
  75. data/docs/Puppeteer/TimeoutError.html +2 -2
  76. data/docs/Puppeteer/TimeoutSettings.html +1 -1
  77. data/docs/Puppeteer/TouchScreen.html +1 -1
  78. data/docs/Puppeteer/Viewport.html +81 -1
  79. data/docs/Puppeteer/WaitTask.html +1 -1
  80. data/docs/Puppeteer/WaitTask/TerminatedError.html +1 -1
  81. data/docs/Puppeteer/WaitTask/TimeoutError.html +1 -1
  82. data/docs/Puppeteer/WebSocket.html +26 -26
  83. data/docs/Puppeteer/WebSocket/DriverImpl.html +1 -1
  84. data/docs/Puppeteer/WebSocket/TransportError.html +124 -0
  85. data/docs/Puppeteer/WebSocketTransport.html +9 -9
  86. data/docs/Puppeteer/WebSocktTransportError.html +1 -1
  87. data/docs/_index.html +40 -19
  88. data/docs/class_list.html +1 -1
  89. data/docs/file.README.html +7 -3
  90. data/docs/index.html +7 -3
  91. data/docs/method_list.html +785 -513
  92. data/docs/top-level-namespace.html +1 -1
  93. data/lib/puppeteer.rb +43 -13
  94. data/lib/puppeteer/browser.rb +26 -6
  95. data/lib/puppeteer/browser_runner.rb +1 -1
  96. data/lib/puppeteer/concurrent_ruby_utils.rb +6 -2
  97. data/lib/puppeteer/connection.rb +13 -1
  98. data/lib/puppeteer/dom_world.rb +16 -18
  99. data/lib/puppeteer/element_handle.rb +147 -168
  100. data/lib/puppeteer/element_handle/bounding_box.rb +12 -0
  101. data/lib/puppeteer/element_handle/box_model.rb +19 -0
  102. data/lib/puppeteer/element_handle/point.rb +26 -0
  103. data/lib/puppeteer/errors.rb +1 -3
  104. data/lib/puppeteer/event_callbackable.rb +11 -0
  105. data/lib/puppeteer/execution_context.rb +13 -0
  106. data/lib/puppeteer/file_chooser.rb +29 -0
  107. data/lib/puppeteer/frame.rb +19 -1
  108. data/lib/puppeteer/frame_manager.rb +0 -2
  109. data/lib/puppeteer/launcher.rb +6 -6
  110. data/lib/puppeteer/launcher/chrome.rb +49 -3
  111. data/lib/puppeteer/mouse.rb +3 -8
  112. data/lib/puppeteer/page.rb +126 -54
  113. data/lib/puppeteer/remote_object.rb +15 -1
  114. data/lib/puppeteer/target.rb +25 -25
  115. data/lib/puppeteer/version.rb +1 -1
  116. data/lib/puppeteer/viewport.rb +18 -0
  117. data/lib/puppeteer/web_socket.rb +3 -1
  118. data/lib/puppeteer/web_socket_transport.rb +8 -8
  119. data/puppeteer-ruby.png +0 -0
  120. metadata +12 -4
  121. data/Dockerfile +0 -6
  122. data/docker-compose.yml +0 -15
@@ -490,12 +490,12 @@
490
490
  <pre class="lines">
491
491
 
492
492
 
493
- 82
494
- 83
495
- 84</pre>
493
+ 77
494
+ 78
495
+ 79</pre>
496
496
  </td>
497
497
  <td>
498
- <pre class="code"><span class="info file"># File 'lib/puppeteer/mouse.rb', line 82</span>
498
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/mouse.rb', line 77</span>
499
499
 
500
500
  <span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_click'>async_click</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>button:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
501
501
  <span class='id identifier rubyid_click'>click</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='id identifier rubyid_delay'>delay</span><span class='comma'>,</span> <span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span>
@@ -557,12 +557,12 @@
557
557
  <pre class="lines">
558
558
 
559
559
 
560
- 101
561
- 102
562
- 103</pre>
560
+ 96
561
+ 97
562
+ 98</pre>
563
563
  </td>
564
564
  <td>
565
- <pre class="code"><span class="info file"># File 'lib/puppeteer/mouse.rb', line 101</span>
565
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/mouse.rb', line 96</span>
566
566
 
567
567
  <span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_down'>async_down</span><span class='lparen'>(</span><span class='label'>button:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
568
568
  <span class='id identifier rubyid_down'>down</span><span class='lparen'>(</span><span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span>
@@ -713,12 +713,12 @@
713
713
  <pre class="lines">
714
714
 
715
715
 
716
- 120
717
- 121
718
- 122</pre>
716
+ 115
717
+ 116
718
+ 117</pre>
719
719
  </td>
720
720
  <td>
721
- <pre class="code"><span class="info file"># File 'lib/puppeteer/mouse.rb', line 120</span>
721
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/mouse.rb', line 115</span>
722
722
 
723
723
  <span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_up'>async_up</span><span class='lparen'>(</span><span class='label'>button:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
724
724
  <span class='id identifier rubyid_up'>up</span><span class='lparen'>(</span><span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span>
@@ -802,12 +802,7 @@
802
802
  68
803
803
  69
804
804
  70
805
- 71
806
- 72
807
- 73
808
- 74
809
- 75
810
- 76</pre>
805
+ 71</pre>
811
806
  </td>
812
807
  <td>
813
808
  <pre class="code"><span class="info file"># File 'lib/puppeteer/mouse.rb', line 58</span>
@@ -818,18 +813,13 @@
818
813
  </span> <span class='comment'># D, [2020-04-15T17:09:47.898422 #88683] DEBUG -- : SEND &gt;&gt; {&quot;sessionId&quot;:&quot;0B09EA5E18DEE403E525B3E7FCD7E225&quot;,&quot;method&quot;:&quot;Input.dispatchMouseEvent&quot;,&quot;params&quot;:{&quot;type&quot;:&quot;mouseReleased&quot;,&quot;button&quot;:&quot;left&quot;,&quot;x&quot;:0,&quot;y&quot;:0,&quot;modifiers&quot;:0,&quot;clickCount&quot;:1},&quot;id&quot;:24}
819
814
  </span> <span class='comment'># D, [2020-04-15T17:09:47.899711 #88683] DEBUG -- : SEND &gt;&gt; {&quot;sessionId&quot;:&quot;0B09EA5E18DEE403E525B3E7FCD7E225&quot;,&quot;method&quot;:&quot;Input.dispatchMouseEvent&quot;,&quot;params&quot;:{&quot;type&quot;:&quot;mousePressed&quot;,&quot;button&quot;:&quot;left&quot;,&quot;x&quot;:0,&quot;y&quot;:0,&quot;modifiers&quot;:0,&quot;clickCount&quot;:1},&quot;id&quot;:25}
820
815
  </span> <span class='comment'># D, [2020-04-15T17:09:47.900237 #88683] DEBUG -- : SEND &gt;&gt; {&quot;sessionId&quot;:&quot;0B09EA5E18DEE403E525B3E7FCD7E225&quot;,&quot;method&quot;:&quot;Input.dispatchMouseEvent&quot;,&quot;params&quot;:{&quot;type&quot;:&quot;mouseMoved&quot;,&quot;button&quot;:&quot;left&quot;,&quot;x&quot;:187,&quot;y&quot;:283,&quot;modifiers&quot;:0},&quot;id&quot;:26}
821
- </span> <span class='comment'># So we execute move in advance.
816
+ </span> <span class='comment'># So we execute them sequential
822
817
  </span> <span class='id identifier rubyid_move'>move</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='rparen'>)</span>
818
+ <span class='id identifier rubyid_down'>down</span><span class='lparen'>(</span><span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span>
823
819
  <span class='kw'>if</span> <span class='id identifier rubyid_delay'>delay</span>
824
- <span class='id identifier rubyid_down'>down</span><span class='lparen'>(</span><span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span>
825
820
  <span class='id identifier rubyid_sleep'>sleep</span><span class='lparen'>(</span><span class='id identifier rubyid_delay'>delay</span> <span class='op'>/</span> <span class='float'>1000.0</span><span class='rparen'>)</span>
826
- <span class='id identifier rubyid_up'>up</span><span class='lparen'>(</span><span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span>
827
- <span class='kw'>else</span>
828
- <span class='id identifier rubyid_await_all'><span class='object_link'><a href="ConcurrentRubyUtils.html#await_all-instance_method" title="Puppeteer::ConcurrentRubyUtils#await_all (method)">await_all</a></span></span><span class='lparen'>(</span>
829
- <span class='id identifier rubyid_async_down'>async_down</span><span class='lparen'>(</span><span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span><span class='comma'>,</span>
830
- <span class='id identifier rubyid_async_up'>async_up</span><span class='lparen'>(</span><span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span><span class='comma'>,</span>
831
- <span class='rparen'>)</span>
832
821
  <span class='kw'>end</span>
822
+ <span class='id identifier rubyid_up'>up</span><span class='lparen'>(</span><span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span>
833
823
  <span class='kw'>end</span></pre>
834
824
  </td>
835
825
  </tr>
@@ -875,20 +865,20 @@
875
865
  <pre class="lines">
876
866
 
877
867
 
868
+ 82
869
+ 83
870
+ 84
871
+ 85
872
+ 86
878
873
  87
879
874
  88
880
875
  89
881
876
  90
882
877
  91
883
- 92
884
- 93
885
- 94
886
- 95
887
- 96
888
- 97</pre>
878
+ 92</pre>
889
879
  </td>
890
880
  <td>
891
- <pre class="code"><span class="info file"># File 'lib/puppeteer/mouse.rb', line 87</span>
881
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/mouse.rb', line 82</span>
892
882
 
893
883
  <span class='kw'>def</span> <span class='id identifier rubyid_down'>down</span><span class='lparen'>(</span><span class='label'>button:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
894
884
  <span class='ivar'>@button</span> <span class='op'>=</span> <span class='id identifier rubyid_button'>button</span> <span class='op'>||</span> <span class='const'><span class='object_link'><a href="Mouse/Button.html" title="Puppeteer::Mouse::Button (module)">Button</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mouse/Button.html#LEFT-constant" title="Puppeteer::Mouse::Button::LEFT (constant)">LEFT</a></span></span>
@@ -1059,20 +1049,20 @@
1059
1049
  <pre class="lines">
1060
1050
 
1061
1051
 
1052
+ 101
1053
+ 102
1054
+ 103
1055
+ 104
1056
+ 105
1062
1057
  106
1063
1058
  107
1064
1059
  108
1065
1060
  109
1066
1061
  110
1067
- 111
1068
- 112
1069
- 113
1070
- 114
1071
- 115
1072
- 116</pre>
1062
+ 111</pre>
1073
1063
  </td>
1074
1064
  <td>
1075
- <pre class="code"><span class="info file"># File 'lib/puppeteer/mouse.rb', line 106</span>
1065
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/mouse.rb', line 101</span>
1076
1066
 
1077
1067
  <span class='kw'>def</span> <span class='id identifier rubyid_up'>up</span><span class='lparen'>(</span><span class='label'>button:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1078
1068
  <span class='ivar'>@button</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Mouse/Button.html" title="Puppeteer::Mouse::Button (module)">Button</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Mouse/Button.html#NONE-constant" title="Puppeteer::Mouse::Button::NONE (constant)">NONE</a></span></span>
@@ -1095,7 +1085,7 @@
1095
1085
  </div>
1096
1086
 
1097
1087
  <div id="footer">
1098
- Generated on Mon May 25 23:22:49 2020 by
1088
+ Generated on Tue Jun 23 10:24:59 2020 by
1099
1089
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1100
1090
  0.9.24 (ruby-2.6.3).
1101
1091
  </div>
@@ -126,7 +126,7 @@
126
126
  </div>
127
127
 
128
128
  <div id="footer">
129
- Generated on Mon May 25 23:22:48 2020 by
129
+ Generated on Tue Jun 23 10:24:58 2020 by
130
130
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
131
131
  0.9.24 (ruby-2.6.3).
132
132
  </div>
@@ -344,7 +344,7 @@
344
344
 
345
345
 
346
346
  <h3 class="inherited">Methods included from <span class='object_link'><a href="EventCallbackable.html" title="Puppeteer::EventCallbackable (module)">EventCallbackable</a></span></h3>
347
- <p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
347
+ <p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#observe_first-instance_method" title="Puppeteer::EventCallbackable#observe_first (method)">#observe_first</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
348
348
  <div id="constructor_details" class="method_details_list">
349
349
  <h2>Constructor Details</h2>
350
350
 
@@ -891,7 +891,7 @@
891
891
  </div>
892
892
 
893
893
  <div id="footer">
894
- Generated on Mon May 25 23:22:50 2020 by
894
+ Generated on Tue Jun 23 10:25:00 2020 by
895
895
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
896
896
  0.9.24 (ruby-2.6.3).
897
897
  </div>
@@ -375,7 +375,7 @@
375
375
  </div>
376
376
 
377
377
  <div id="footer">
378
- Generated on Mon May 25 23:22:50 2020 by
378
+ Generated on Tue Jun 23 10:25:00 2020 by
379
379
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
380
380
  0.9.24 (ruby-2.6.3).
381
381
  </div>
@@ -112,11 +112,46 @@
112
112
 
113
113
 
114
114
 
115
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Page/ScreenshotOptions.html" title="Puppeteer::Page::ScreenshotOptions (class)">ScreenshotOptions</a></span>, <span class='object_link'><a href="Page/ScriptTag.html" title="Puppeteer::Page::ScriptTag (class)">ScriptTag</a></span>, <span class='object_link'><a href="Page/StyleTag.html" title="Puppeteer::Page::StyleTag (class)">StyleTag</a></span>, <span class='object_link'><a href="Page/TargetCrashedError.html" title="Puppeteer::Page::TargetCrashedError (class)">TargetCrashedError</a></span>
115
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Page/FileChooserTimeoutError.html" title="Puppeteer::Page::FileChooserTimeoutError (class)">FileChooserTimeoutError</a></span>, <span class='object_link'><a href="Page/ScreenshotOptions.html" title="Puppeteer::Page::ScreenshotOptions (class)">ScreenshotOptions</a></span>, <span class='object_link'><a href="Page/ScriptTag.html" title="Puppeteer::Page::ScriptTag (class)">ScriptTag</a></span>, <span class='object_link'><a href="Page/StyleTag.html" title="Puppeteer::Page::StyleTag (class)">StyleTag</a></span>, <span class='object_link'><a href="Page/TargetCrashedError.html" title="Puppeteer::Page::TargetCrashedError (class)">TargetCrashedError</a></span>
116
116
 
117
117
 
118
118
  </p>
119
119
 
120
+
121
+ <h2>
122
+ Constant Summary
123
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
124
+ </h2>
125
+
126
+ <dl class="constants">
127
+
128
+ <dt id="EVENT_MAPPINGS-constant" class="">EVENT_MAPPINGS =
129
+
130
+ </dt>
131
+ <dd><pre class="code"><span class='lbrace'>{</span>
132
+ <span class='label'>close:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.Close</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
133
+ <span class='comment'># console: &#39;Events.Page.Console&#39;,
134
+ </span> <span class='comment'># dialog: &#39;Events.Page.Dialog&#39;,
135
+ </span> <span class='label'>domcontentloaded:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.DOMContentLoaded</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
136
+ <span class='comment'># error:
137
+ </span> <span class='label'>frameattached:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.FrameAttached</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
138
+ <span class='label'>framedetached:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.FrameDetached</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
139
+ <span class='label'>framenavigated:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.FrameNavigated</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
140
+ <span class='label'>load:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.Load</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
141
+ <span class='comment'># metrics: &#39;Events.Page.Metrics&#39;,
142
+ </span> <span class='comment'># pageerror: &#39;Events.Page.PageError&#39;,
143
+ </span> <span class='label'>popup:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.Popup</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
144
+ <span class='label'>request:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.Request</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
145
+ <span class='label'>requestfailed:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.RequestFailed</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
146
+ <span class='label'>requestfinished:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.RequestFinished</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
147
+ <span class='label'>response:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.Response</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
148
+ <span class='comment'># workercreated: &#39;Events.Page.WorkerCreated&#39;,
149
+ </span> <span class='comment'># workerdestroyed: &#39;Events.Page.WorkerDestroyed&#39;,
150
+ </span><span class='rbrace'>}</span></pre></dd>
151
+
152
+ </dl>
153
+
154
+
120
155
 
121
156
 
122
157
 
@@ -456,6 +491,76 @@
456
491
 
457
492
 
458
493
 
494
+ <span class="summary_desc"><div class='inline'></div></span>
495
+
496
+ </li>
497
+
498
+
499
+ <li class="public ">
500
+ <span class="summary_signature">
501
+
502
+ <a href="#async_Seval-instance_method" title="#async_Seval (instance method)">#<strong>async_Seval</strong> &#x21d2; Future </a>
503
+
504
+
505
+
506
+ </span>
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+
515
+
516
+ <span class="summary_desc"><div class='inline'>
517
+ <p>`$eval()` in JavaScript.</p>
518
+ </div></span>
519
+
520
+ </li>
521
+
522
+
523
+ <li class="public ">
524
+ <span class="summary_signature">
525
+
526
+ <a href="#async_SSeval-instance_method" title="#async_SSeval (instance method)">#<strong>async_SSeval</strong> &#x21d2; Future </a>
527
+
528
+
529
+
530
+ </span>
531
+
532
+
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+ <span class="summary_desc"><div class='inline'>
541
+ <p>`$$eval()` in JavaScript.</p>
542
+ </div></span>
543
+
544
+ </li>
545
+
546
+
547
+ <li class="public ">
548
+ <span class="summary_signature">
549
+
550
+ <a href="#async_wait_for_file_chooser-instance_method" title="#async_wait_for_file_chooser (instance method)">#<strong>async_wait_for_file_chooser</strong> &#x21d2; Future&lt;Puppeteer::FileChooser&gt; </a>
551
+
552
+
553
+
554
+ </span>
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+
459
564
  <span class="summary_desc"><div class='inline'></div></span>
460
565
 
461
566
  </li>
@@ -940,6 +1045,28 @@
940
1045
 
941
1046
 
942
1047
 
1048
+ <span class="summary_desc"><div class='inline'></div></span>
1049
+
1050
+ </li>
1051
+
1052
+
1053
+ <li class="public ">
1054
+ <span class="summary_signature">
1055
+
1056
+ <a href="#handle_file_chooser-instance_method" title="#handle_file_chooser (instance method)">#<strong>handle_file_chooser</strong>(event) &#x21d2; Object </a>
1057
+
1058
+
1059
+
1060
+ </span>
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+
1067
+
1068
+
1069
+
943
1070
  <span class="summary_desc"><div class='inline'></div></span>
944
1071
 
945
1072
  </li>
@@ -1054,6 +1181,50 @@
1054
1181
 
1055
1182
 
1056
1183
 
1184
+ <span class="summary_desc"><div class='inline'></div></span>
1185
+
1186
+ </li>
1187
+
1188
+
1189
+ <li class="public ">
1190
+ <span class="summary_signature">
1191
+
1192
+ <a href="#on-instance_method" title="#on (instance method)">#<strong>on</strong>(event_name, &amp;block) &#x21d2; Object </a>
1193
+
1194
+
1195
+
1196
+ </span>
1197
+
1198
+
1199
+
1200
+
1201
+
1202
+
1203
+
1204
+
1205
+
1206
+ <span class="summary_desc"><div class='inline'></div></span>
1207
+
1208
+ </li>
1209
+
1210
+
1211
+ <li class="public ">
1212
+ <span class="summary_signature">
1213
+
1214
+ <a href="#once-instance_method" title="#once (instance method)">#<strong>once</strong>(event_name, &amp;block) &#x21d2; Object </a>
1215
+
1216
+
1217
+
1218
+ </span>
1219
+
1220
+
1221
+
1222
+
1223
+
1224
+
1225
+
1226
+
1227
+
1057
1228
  <span class="summary_desc"><div class='inline'></div></span>
1058
1229
 
1059
1230
  </li>
@@ -1084,7 +1255,7 @@
1084
1255
  <li class="public ">
1085
1256
  <span class="summary_signature">
1086
1257
 
1087
- <a href="#reload-instance_method" title="#reload (instance method)">#<strong>reload</strong>(timeout: nil, wait_until: nil) &#x21d2; !Promise&lt;?Puppeteer.Response&gt; </a>
1258
+ <a href="#reload-instance_method" title="#reload (instance method)">#<strong>reload</strong>(timeout: nil, wait_until: nil) &#x21d2; Puppeteer::Response </a>
1088
1259
 
1089
1260
 
1090
1261
 
@@ -1220,7 +1391,7 @@
1220
1391
  <li class="public ">
1221
1392
  <span class="summary_signature">
1222
1393
 
1223
- <a href="#Seval-instance_method" title="#Seval (instance method)">#<strong>Seval</strong>(selector, page_function, *args) &#x21d2; !Promise&lt;(!Object|undefined)&gt; </a>
1394
+ <a href="#Seval-instance_method" title="#Seval (instance method)">#<strong>Seval</strong>(selector, page_function, *args) &#x21d2; Object </a>
1224
1395
 
1225
1396
 
1226
1397
 
@@ -1268,7 +1439,7 @@
1268
1439
  <li class="public ">
1269
1440
  <span class="summary_signature">
1270
1441
 
1271
- <a href="#SSeval-instance_method" title="#SSeval (instance method)">#<strong>SSeval</strong>(selector, page_function, *args) &#x21d2; !Promise&lt;(!Object|undefined)&gt; </a>
1442
+ <a href="#SSeval-instance_method" title="#SSeval (instance method)">#<strong>SSeval</strong>(selector, page_function, *args) &#x21d2; Object </a>
1272
1443
 
1273
1444
 
1274
1445
 
@@ -1418,6 +1589,28 @@
1418
1589
 
1419
1590
 
1420
1591
 
1592
+ <span class="summary_desc"><div class='inline'></div></span>
1593
+
1594
+ </li>
1595
+
1596
+
1597
+ <li class="public ">
1598
+ <span class="summary_signature">
1599
+
1600
+ <a href="#wait_for_file_chooser-instance_method" title="#wait_for_file_chooser (instance method)">#<strong>wait_for_file_chooser</strong>(timeout: nil) &#x21d2; Puppeteer::FileChooser </a>
1601
+
1602
+
1603
+
1604
+ </span>
1605
+
1606
+
1607
+
1608
+
1609
+
1610
+
1611
+
1612
+
1613
+
1421
1614
  <span class="summary_desc"><div class='inline'></div></span>
1422
1615
 
1423
1616
  </li>
@@ -1535,7 +1728,7 @@
1535
1728
 
1536
1729
 
1537
1730
  <h3 class="inherited">Methods included from <span class='object_link'><a href="EventCallbackable.html" title="Puppeteer::EventCallbackable (module)">EventCallbackable</a></span></h3>
1538
- <p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
1731
+ <p class="inherited"><span class='object_link'><a href="EventCallbackable.html#add_event_listener-instance_method" title="Puppeteer::EventCallbackable#add_event_listener (method)">#add_event_listener</a></span>, <span class='object_link'><a href="EventCallbackable.html#emit_event-instance_method" title="Puppeteer::EventCallbackable#emit_event (method)">#emit_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#observe_first-instance_method" title="Puppeteer::EventCallbackable#observe_first (method)">#observe_first</a></span>, <span class='object_link'><a href="EventCallbackable.html#on_event-instance_method" title="Puppeteer::EventCallbackable#on_event (method)">#on_event</a></span>, <span class='object_link'><a href="EventCallbackable.html#remove_event_listener-instance_method" title="Puppeteer::EventCallbackable#remove_event_listener (method)">#remove_event_listener</a></span></p>
1539
1732
  <div id="constructor_details" class="method_details_list">
1540
1733
  <h2>Constructor Details</h2>
1541
1734
 
@@ -1698,7 +1891,9 @@
1698
1891
  111
1699
1892
  112
1700
1893
  113
1701
- 114</pre>
1894
+ 114
1895
+ 115
1896
+ 116</pre>
1702
1897
  </td>
1703
1898
  <td>
1704
1899
  <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 29</span>
@@ -1765,9 +1960,9 @@
1765
1960
  <span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.NetworkManager.RequestFinished</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_event'>event</span><span class='op'>|</span>
1766
1961
  <span class='id identifier rubyid_emit_event'>emit_event</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.RequestFinished</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_event'>event</span>
1767
1962
  <span class='kw'>end</span>
1768
- <span class='comment'># this._fileChooserInterceptionIsDisabled = false;
1769
- </span> <span class='comment'># this._fileChooserInterceptors = new Set();
1770
- </span>
1963
+ <span class='ivar'>@file_chooser_interception_is_disabled</span> <span class='op'>=</span> <span class='kw'>false</span>
1964
+ <span class='ivar'>@file_chooser_interceptors</span> <span class='op'>=</span> <span class='const'>Set</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
1965
+
1771
1966
  <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Page.domContentEventFired</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_event'>event</span><span class='op'>|</span>
1772
1967
  <span class='id identifier rubyid_emit_event'>emit_event</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.DOMContentLoaded</span><span class='tstring_end'>&#39;</span></span>
1773
1968
  <span class='kw'>end</span>
@@ -1783,8 +1978,10 @@
1783
1978
  </span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Log.entryAdded</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_event'>event</span><span class='op'>|</span>
1784
1979
  <span class='id identifier rubyid_handle_log_entry_added'>handle_log_entry_added</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span>
1785
1980
  <span class='kw'>end</span>
1786
- <span class='comment'># client.on(&#39;Page.fileChooserOpened&#39;, event =&gt; this._onFileChooser(event));
1787
- </span> <span class='ivar'>@target</span><span class='period'>.</span><span class='id identifier rubyid_on_close'>on_close</span> <span class='kw'>do</span>
1981
+ <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_on_event'>on_event</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Page.fileChooserOpened</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_event'>event</span><span class='op'>|</span>
1982
+ <span class='id identifier rubyid_handle_file_chooser'>handle_file_chooser</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span>
1983
+ <span class='kw'>end</span>
1984
+ <span class='ivar'>@target</span><span class='period'>.</span><span class='id identifier rubyid_is_closed_promise'>is_closed_promise</span><span class='period'>.</span><span class='id identifier rubyid_then'>then</span> <span class='kw'>do</span>
1788
1985
  <span class='id identifier rubyid_emit_event'>emit_event</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Events.Page.Close</span><span class='tstring_end'>&#39;</span></span>
1789
1986
  <span class='ivar'>@closed</span> <span class='op'>=</span> <span class='kw'>true</span>
1790
1987
  <span class='kw'>end</span>
@@ -1827,12 +2024,12 @@
1827
2024
  <pre class="lines">
1828
2025
 
1829
2026
 
1830
- 219
1831
- 220
1832
- 221</pre>
2027
+ 272
2028
+ 273
2029
+ 274</pre>
1833
2030
  </td>
1834
2031
  <td>
1835
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 219</span>
2032
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 272</span>
1836
2033
 
1837
2034
  <span class='kw'>def</span> <span class='id identifier rubyid_accessibility'>accessibility</span>
1838
2035
  <span class='ivar'>@accessibility</span>
@@ -1870,12 +2067,12 @@
1870
2067
  <pre class="lines">
1871
2068
 
1872
2069
 
1873
- 219
1874
- 220
1875
- 221</pre>
2070
+ 272
2071
+ 273
2072
+ 274</pre>
1876
2073
  </td>
1877
2074
  <td>
1878
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 219</span>
2075
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 272</span>
1879
2076
 
1880
2077
  <span class='kw'>def</span> <span class='id identifier rubyid_coverage'>coverage</span>
1881
2078
  <span class='ivar'>@coverage</span>
@@ -1930,12 +2127,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
1930
2127
  <pre class="lines">
1931
2128
 
1932
2129
 
1933
- 176
1934
- 177
1935
- 178</pre>
2130
+ 229
2131
+ 230
2132
+ 231</pre>
1936
2133
  </td>
1937
2134
  <td>
1938
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 176</span>
2135
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 229</span>
1939
2136
 
1940
2137
  <span class='kw'>def</span> <span class='id identifier rubyid_javascript_enabled'>javascript_enabled</span>
1941
2138
  <span class='ivar'>@javascript_enabled</span>
@@ -1973,12 +2170,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
1973
2170
  <pre class="lines">
1974
2171
 
1975
2172
 
1976
- 219
1977
- 220
1978
- 221</pre>
2173
+ 272
2174
+ 273
2175
+ 274</pre>
1979
2176
  </td>
1980
2177
  <td>
1981
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 219</span>
2178
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 272</span>
1982
2179
 
1983
2180
  <span class='kw'>def</span> <span class='id identifier rubyid_keyboard'>keyboard</span>
1984
2181
  <span class='ivar'>@keyboard</span>
@@ -2016,12 +2213,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2016
2213
  <pre class="lines">
2017
2214
 
2018
2215
 
2019
- 935
2020
- 936
2021
- 937</pre>
2216
+ 1002
2217
+ 1003
2218
+ 1004</pre>
2022
2219
  </td>
2023
2220
  <td>
2024
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 935</span>
2221
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1002</span>
2025
2222
 
2026
2223
  <span class='kw'>def</span> <span class='id identifier rubyid_mouse'>mouse</span>
2027
2224
  <span class='ivar'>@mouse</span>
@@ -2076,12 +2273,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2076
2273
  <pre class="lines">
2077
2274
 
2078
2275
 
2079
- 176
2080
- 177
2081
- 178</pre>
2276
+ 229
2277
+ 230
2278
+ 231</pre>
2082
2279
  </td>
2083
2280
  <td>
2084
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 176</span>
2281
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 229</span>
2085
2282
 
2086
2283
  <span class='kw'>def</span> <span class='id identifier rubyid_target'>target</span>
2087
2284
  <span class='ivar'>@target</span>
@@ -2119,12 +2316,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2119
2316
  <pre class="lines">
2120
2317
 
2121
2318
 
2122
- 219
2123
- 220
2124
- 221</pre>
2319
+ 272
2320
+ 273
2321
+ 274</pre>
2125
2322
  </td>
2126
2323
  <td>
2127
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 219</span>
2324
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 272</span>
2128
2325
 
2129
2326
  <span class='kw'>def</span> <span class='id identifier rubyid_touch_screen'>touch_screen</span>
2130
2327
  <span class='ivar'>@touch_screen</span>
@@ -2162,12 +2359,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2162
2359
  <pre class="lines">
2163
2360
 
2164
2361
 
2165
- 758
2166
- 759
2167
- 760</pre>
2362
+ 825
2363
+ 826
2364
+ 827</pre>
2168
2365
  </td>
2169
2366
  <td>
2170
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 758</span>
2367
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 825</span>
2171
2368
 
2172
2369
  <span class='kw'>def</span> <span class='id identifier rubyid_viewport'>viewport</span>
2173
2370
  <span class='ivar'>@viewport</span>
@@ -2363,12 +2560,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2363
2560
  <pre class="lines">
2364
2561
 
2365
2562
 
2366
- 357
2367
- 358
2368
- 359</pre>
2563
+ 424
2564
+ 425
2565
+ 426</pre>
2369
2566
  </td>
2370
2567
  <td>
2371
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 357</span>
2568
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 424</span>
2372
2569
 
2373
2570
  <span class='kw'>def</span> <span class='id identifier rubyid_add_script_tag'>add_script_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_script_tag'>script_tag</span><span class='rparen'>)</span>
2374
2571
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_add_script_tag'>add_script_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_script_tag'>script_tag</span><span class='rparen'>)</span>
@@ -2430,12 +2627,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2430
2627
  <pre class="lines">
2431
2628
 
2432
2629
 
2433
- 373
2434
- 374
2435
- 375</pre>
2630
+ 440
2631
+ 441
2632
+ 442</pre>
2436
2633
  </td>
2437
2634
  <td>
2438
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 373</span>
2635
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 440</span>
2439
2636
 
2440
2637
  <span class='kw'>def</span> <span class='id identifier rubyid_add_style_tag'>add_style_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_style_tag'>style_tag</span><span class='rparen'>)</span>
2441
2638
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_add_style_tag'>add_style_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_style_tag'>style_tag</span><span class='rparen'>)</span>
@@ -2535,12 +2732,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2535
2732
  <pre class="lines">
2536
2733
 
2537
2734
 
2538
- 950
2539
- 951
2540
- 952</pre>
2735
+ 1017
2736
+ 1018
2737
+ 1019</pre>
2541
2738
  </td>
2542
2739
  <td>
2543
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 950</span>
2740
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1017</span>
2544
2741
 
2545
2742
  <span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_click'>async_click</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>button:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
2546
2743
  <span class='id identifier rubyid_click'>click</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='id identifier rubyid_delay'>delay</span><span class='comma'>,</span> <span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span>
@@ -2551,9 +2748,9 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2551
2748
  </div>
2552
2749
 
2553
2750
  <div class="method_details ">
2554
- <h3 class="signature " id="async_wait_for_navigation-instance_method">
2751
+ <h3 class="signature " id="async_Seval-instance_method">
2555
2752
 
2556
- #<strong>async_wait_for_navigation</strong> &#x21d2; <tt>Future</tt>
2753
+ #<strong>async_Seval</strong> &#x21d2; <tt>Future</tt>
2557
2754
 
2558
2755
 
2559
2756
 
@@ -2562,6 +2759,8 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2562
2759
  </h3><div class="docstring">
2563
2760
  <div class="discussion">
2564
2761
 
2762
+ <p>`$eval()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
2763
+
2565
2764
 
2566
2765
  </div>
2567
2766
  </div>
@@ -2571,10 +2770,10 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2571
2770
 
2572
2771
  <li>
2573
2772
 
2574
- <span class='name'>timeout</span>
2773
+ <span class='name'>selector</span>
2575
2774
 
2576
2775
 
2577
- <span class='type'>(<tt>number|nil</tt>)</span>
2776
+ <span class='type'>(<tt>String</tt>)</span>
2578
2777
 
2579
2778
 
2580
2779
 
@@ -2582,17 +2781,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2582
2781
 
2583
2782
  <li>
2584
2783
 
2585
- <span class='name'>wait_until</span>
2586
-
2784
+ <span class='name'>page_function</span>
2587
2785
 
2588
- <span class='type'>(<tt>string|nil</tt>)</span>
2589
2786
 
2787
+ <span class='type'>(<tt>String</tt>)</span>
2590
2788
 
2591
2789
 
2592
- &mdash;
2593
- <div class='inline'>
2594
- <p>&#39;load&#39; | &#39;domcontentloaded&#39; | &#39;networkidle0&#39; | &#39;networkidle2&#39;</p>
2595
- </div>
2596
2790
 
2597
2791
  </li>
2598
2792
 
@@ -2618,15 +2812,15 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2618
2812
  <pre class="lines">
2619
2813
 
2620
2814
 
2621
- 632
2622
- 633
2623
- 634</pre>
2815
+ 342
2816
+ 343
2817
+ 344</pre>
2624
2818
  </td>
2625
2819
  <td>
2626
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 632</span>
2820
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 342</span>
2627
2821
 
2628
- <span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_wait_for_navigation'>async_wait_for_navigation</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
2629
- <span class='id identifier rubyid_wait_for_navigation'>wait_for_navigation</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
2822
+ <span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_Seval'>async_Seval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
2823
+ <span class='const'><span class='object_link'><a href="#Seval-instance_method" title="Puppeteer::Page#Seval (method)">Seval</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
2630
2824
  <span class='kw'>end</span></pre>
2631
2825
  </td>
2632
2826
  </tr>
@@ -2634,9 +2828,9 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2634
2828
  </div>
2635
2829
 
2636
2830
  <div class="method_details ">
2637
- <h3 class="signature " id="authenticate-instance_method">
2831
+ <h3 class="signature " id="async_SSeval-instance_method">
2638
2832
 
2639
- #<strong>authenticate</strong>(username: nil, password: nil) &#x21d2; <tt>Object</tt>
2833
+ #<strong>async_SSeval</strong> &#x21d2; <tt>Future</tt>
2640
2834
 
2641
2835
 
2642
2836
 
@@ -2645,6 +2839,8 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2645
2839
  </h3><div class="docstring">
2646
2840
  <div class="discussion">
2647
2841
 
2842
+ <p>`$$eval()` in JavaScript. $ is not allowed to use as a method name in Ruby.</p>
2843
+
2648
2844
 
2649
2845
  </div>
2650
2846
  </div>
@@ -2654,32 +2850,41 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2654
2850
 
2655
2851
  <li>
2656
2852
 
2657
- <span class='name'>username</span>
2658
-
2853
+ <span class='name'>selector</span>
2659
2854
 
2660
- <span class='type'>(<tt>String?</tt>)</span>
2661
2855
 
2856
+ <span class='type'>(<tt>String</tt>)</span>
2662
2857
 
2663
- <em class="default">(defaults to: <tt>nil</tt>)</em>
2664
2858
 
2665
2859
 
2666
2860
  </li>
2667
2861
 
2668
2862
  <li>
2669
2863
 
2670
- <span class='name'>password</span>
2671
-
2864
+ <span class='name'>page_function</span>
2672
2865
 
2673
- <span class='type'>(<tt>String?</tt>)</span>
2674
2866
 
2867
+ <span class='type'>(<tt>String</tt>)</span>
2675
2868
 
2676
- <em class="default">(defaults to: <tt>nil</tt>)</em>
2677
2869
 
2678
2870
 
2679
2871
  </li>
2680
2872
 
2681
2873
  </ul>
2682
2874
 
2875
+ <p class="tag_title">Returns:</p>
2876
+ <ul class="return">
2877
+
2878
+ <li>
2879
+
2880
+
2881
+ <span class='type'>(<tt>Future</tt>)</span>
2882
+
2883
+
2884
+
2885
+ </li>
2886
+
2887
+ </ul>
2683
2888
 
2684
2889
  </div><table class="source_code">
2685
2890
  <tr>
@@ -2687,15 +2892,15 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2687
2892
  <pre class="lines">
2688
2893
 
2689
2894
 
2690
- 411
2691
- 412
2692
- 413</pre>
2895
+ 358
2896
+ 359
2897
+ 360</pre>
2693
2898
  </td>
2694
2899
  <td>
2695
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 411</span>
2900
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 358</span>
2696
2901
 
2697
- <span class='kw'>def</span> <span class='id identifier rubyid_authenticate'>authenticate</span><span class='lparen'>(</span><span class='label'>username:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>password:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
2698
- <span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_authenticate'>authenticate</span><span class='lparen'>(</span><span class='label'>username:</span> <span class='id identifier rubyid_username'>username</span><span class='comma'>,</span> <span class='label'>password:</span> <span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
2902
+ <span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_SSeval'>async_SSeval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
2903
+ <span class='const'><span class='object_link'><a href="#SSeval-instance_method" title="Puppeteer::Page#SSeval (method)">SSeval</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
2699
2904
  <span class='kw'>end</span></pre>
2700
2905
  </td>
2701
2906
  </tr>
@@ -2703,40 +2908,259 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2703
2908
  </div>
2704
2909
 
2705
2910
  <div class="method_details ">
2706
- <h3 class="signature " id="browser-instance_method">
2911
+ <h3 class="signature " id="async_wait_for_file_chooser-instance_method">
2707
2912
 
2708
- #<strong>browser</strong> &#x21d2; <tt>Object</tt>
2913
+ #<strong>async_wait_for_file_chooser</strong> &#x21d2; <tt>Future&lt;<span class='object_link'><a href="FileChooser.html" title="Puppeteer::FileChooser (class)">Puppeteer::FileChooser</a></span>&gt;</tt>
2709
2914
 
2710
2915
 
2711
2916
 
2712
2917
 
2713
2918
 
2714
- </h3><table class="source_code">
2715
- <tr>
2716
- <td>
2717
- <pre class="lines">
2718
-
2719
-
2720
- 178
2721
- 179
2722
- 180</pre>
2723
- </td>
2724
- <td>
2725
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 178</span>
2726
-
2727
- <span class='kw'>def</span> <span class='id identifier rubyid_browser'>browser</span>
2728
- <span class='ivar'>@target</span><span class='period'>.</span><span class='id identifier rubyid_browser'>browser</span>
2729
- <span class='kw'>end</span></pre>
2730
- </td>
2731
- </tr>
2732
- </table>
2733
- </div>
2919
+ </h3><div class="docstring">
2920
+ <div class="discussion">
2734
2921
 
2735
- <div class="method_details ">
2736
- <h3 class="signature " id="browser_context-instance_method">
2737
-
2738
- #<strong>browser_context</strong> &#x21d2; <tt>Object</tt>
2739
-
2922
+
2923
+ </div>
2924
+ </div>
2925
+ <div class="tags">
2926
+ <p class="tag_title">Parameters:</p>
2927
+ <ul class="param">
2928
+
2929
+ <li>
2930
+
2931
+ <span class='name'>timeout</span>
2932
+
2933
+
2934
+ <span class='type'>(<tt>Integer</tt>)</span>
2935
+
2936
+
2937
+
2938
+ </li>
2939
+
2940
+ </ul>
2941
+
2942
+ <p class="tag_title">Returns:</p>
2943
+ <ul class="return">
2944
+
2945
+ <li>
2946
+
2947
+
2948
+ <span class='type'>(<tt>Future&lt;<span class='object_link'><a href="FileChooser.html" title="Puppeteer::FileChooser (class)">Puppeteer::FileChooser</a></span>&gt;</tt>)</span>
2949
+
2950
+
2951
+
2952
+ </li>
2953
+
2954
+ </ul>
2955
+
2956
+ </div><table class="source_code">
2957
+ <tr>
2958
+ <td>
2959
+ <pre class="lines">
2960
+
2961
+
2962
+ 210
2963
+ 211
2964
+ 212</pre>
2965
+ </td>
2966
+ <td>
2967
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 210</span>
2968
+
2969
+ <span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_wait_for_file_chooser'>async_wait_for_file_chooser</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
2970
+ <span class='id identifier rubyid_wait_for_file_chooser'>wait_for_file_chooser</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
2971
+ <span class='kw'>end</span></pre>
2972
+ </td>
2973
+ </tr>
2974
+ </table>
2975
+ </div>
2976
+
2977
+ <div class="method_details ">
2978
+ <h3 class="signature " id="async_wait_for_navigation-instance_method">
2979
+
2980
+ #<strong>async_wait_for_navigation</strong> &#x21d2; <tt>Future</tt>
2981
+
2982
+
2983
+
2984
+
2985
+
2986
+ </h3><div class="docstring">
2987
+ <div class="discussion">
2988
+
2989
+
2990
+ </div>
2991
+ </div>
2992
+ <div class="tags">
2993
+ <p class="tag_title">Parameters:</p>
2994
+ <ul class="param">
2995
+
2996
+ <li>
2997
+
2998
+ <span class='name'>timeout</span>
2999
+
3000
+
3001
+ <span class='type'>(<tt>number|nil</tt>)</span>
3002
+
3003
+
3004
+
3005
+ </li>
3006
+
3007
+ <li>
3008
+
3009
+ <span class='name'>wait_until</span>
3010
+
3011
+
3012
+ <span class='type'>(<tt>string|nil</tt>)</span>
3013
+
3014
+
3015
+
3016
+ &mdash;
3017
+ <div class='inline'>
3018
+ <p>&#39;load&#39; | &#39;domcontentloaded&#39; | &#39;networkidle0&#39; | &#39;networkidle2&#39;</p>
3019
+ </div>
3020
+
3021
+ </li>
3022
+
3023
+ </ul>
3024
+
3025
+ <p class="tag_title">Returns:</p>
3026
+ <ul class="return">
3027
+
3028
+ <li>
3029
+
3030
+
3031
+ <span class='type'>(<tt>Future</tt>)</span>
3032
+
3033
+
3034
+
3035
+ </li>
3036
+
3037
+ </ul>
3038
+
3039
+ </div><table class="source_code">
3040
+ <tr>
3041
+ <td>
3042
+ <pre class="lines">
3043
+
3044
+
3045
+ 699
3046
+ 700
3047
+ 701</pre>
3048
+ </td>
3049
+ <td>
3050
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 699</span>
3051
+
3052
+ <span class='id identifier rubyid_async'>async</span> <span class='kw'>def</span> <span class='id identifier rubyid_async_wait_for_navigation'>async_wait_for_navigation</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
3053
+ <span class='id identifier rubyid_wait_for_navigation'>wait_for_navigation</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
3054
+ <span class='kw'>end</span></pre>
3055
+ </td>
3056
+ </tr>
3057
+ </table>
3058
+ </div>
3059
+
3060
+ <div class="method_details ">
3061
+ <h3 class="signature " id="authenticate-instance_method">
3062
+
3063
+ #<strong>authenticate</strong>(username: nil, password: nil) &#x21d2; <tt>Object</tt>
3064
+
3065
+
3066
+
3067
+
3068
+
3069
+ </h3><div class="docstring">
3070
+ <div class="discussion">
3071
+
3072
+
3073
+ </div>
3074
+ </div>
3075
+ <div class="tags">
3076
+ <p class="tag_title">Parameters:</p>
3077
+ <ul class="param">
3078
+
3079
+ <li>
3080
+
3081
+ <span class='name'>username</span>
3082
+
3083
+
3084
+ <span class='type'>(<tt>String?</tt>)</span>
3085
+
3086
+
3087
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3088
+
3089
+
3090
+ </li>
3091
+
3092
+ <li>
3093
+
3094
+ <span class='name'>password</span>
3095
+
3096
+
3097
+ <span class='type'>(<tt>String?</tt>)</span>
3098
+
3099
+
3100
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
3101
+
3102
+
3103
+ </li>
3104
+
3105
+ </ul>
3106
+
3107
+
3108
+ </div><table class="source_code">
3109
+ <tr>
3110
+ <td>
3111
+ <pre class="lines">
3112
+
3113
+
3114
+ 478
3115
+ 479
3116
+ 480</pre>
3117
+ </td>
3118
+ <td>
3119
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 478</span>
3120
+
3121
+ <span class='kw'>def</span> <span class='id identifier rubyid_authenticate'>authenticate</span><span class='lparen'>(</span><span class='label'>username:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>password:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
3122
+ <span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_authenticate'>authenticate</span><span class='lparen'>(</span><span class='label'>username:</span> <span class='id identifier rubyid_username'>username</span><span class='comma'>,</span> <span class='label'>password:</span> <span class='id identifier rubyid_password'>password</span><span class='rparen'>)</span>
3123
+ <span class='kw'>end</span></pre>
3124
+ </td>
3125
+ </tr>
3126
+ </table>
3127
+ </div>
3128
+
3129
+ <div class="method_details ">
3130
+ <h3 class="signature " id="browser-instance_method">
3131
+
3132
+ #<strong>browser</strong> &#x21d2; <tt>Object</tt>
3133
+
3134
+
3135
+
3136
+
3137
+
3138
+ </h3><table class="source_code">
3139
+ <tr>
3140
+ <td>
3141
+ <pre class="lines">
3142
+
3143
+
3144
+ 231
3145
+ 232
3146
+ 233</pre>
3147
+ </td>
3148
+ <td>
3149
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 231</span>
3150
+
3151
+ <span class='kw'>def</span> <span class='id identifier rubyid_browser'>browser</span>
3152
+ <span class='ivar'>@target</span><span class='period'>.</span><span class='id identifier rubyid_browser'>browser</span>
3153
+ <span class='kw'>end</span></pre>
3154
+ </td>
3155
+ </tr>
3156
+ </table>
3157
+ </div>
3158
+
3159
+ <div class="method_details ">
3160
+ <h3 class="signature " id="browser_context-instance_method">
3161
+
3162
+ #<strong>browser_context</strong> &#x21d2; <tt>Object</tt>
3163
+
2740
3164
 
2741
3165
 
2742
3166
 
@@ -2747,12 +3171,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2747
3171
  <pre class="lines">
2748
3172
 
2749
3173
 
2750
- 182
2751
- 183
2752
- 184</pre>
3174
+ 235
3175
+ 236
3176
+ 237</pre>
2753
3177
  </td>
2754
3178
  <td>
2755
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 182</span>
3179
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 235</span>
2756
3180
 
2757
3181
  <span class='kw'>def</span> <span class='id identifier rubyid_browser_context'>browser_context</span>
2758
3182
  <span class='ivar'>@target</span><span class='period'>.</span><span class='id identifier rubyid_browser_context'>browser_context</span>
@@ -2801,12 +3225,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2801
3225
  <pre class="lines">
2802
3226
 
2803
3227
 
2804
- 777
2805
- 778
2806
- 779</pre>
3228
+ 844
3229
+ 845
3230
+ 846</pre>
2807
3231
  </td>
2808
3232
  <td>
2809
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 777</span>
3233
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 844</span>
2810
3234
 
2811
3235
  <span class='kw'>def</span> <span class='id identifier rubyid_cache_enabled='>cache_enabled=</span><span class='lparen'>(</span><span class='id identifier rubyid_enabled'>enabled</span><span class='rparen'>)</span>
2812
3236
  <span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_cache_enabled'>cache_enabled</span> <span class='op'>=</span> <span class='id identifier rubyid_enabled'>enabled</span>
@@ -2899,12 +3323,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2899
3323
  <pre class="lines">
2900
3324
 
2901
3325
 
2902
- 941
2903
- 942
2904
- 943</pre>
3326
+ 1008
3327
+ 1009
3328
+ 1010</pre>
2905
3329
  </td>
2906
3330
  <td>
2907
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 941</span>
3331
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1008</span>
2908
3332
 
2909
3333
  <span class='kw'>def</span> <span class='id identifier rubyid_click'>click</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>button:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
2910
3334
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_click'>click</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='id identifier rubyid_delay'>delay</span><span class='comma'>,</span> <span class='label'>button:</span> <span class='id identifier rubyid_button'>button</span><span class='comma'>,</span> <span class='label'>click_count:</span> <span class='id identifier rubyid_click_count'>click_count</span><span class='rparen'>)</span>
@@ -2953,19 +3377,19 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
2953
3377
  <pre class="lines">
2954
3378
 
2955
3379
 
2956
- 919
2957
- 920
2958
- 921
2959
- 922
2960
- 923
2961
- 924
2962
- 925
2963
- 926
2964
- 927
2965
- 928</pre>
3380
+ 986
3381
+ 987
3382
+ 988
3383
+ 989
3384
+ 990
3385
+ 991
3386
+ 992
3387
+ 993
3388
+ 994
3389
+ 995</pre>
2966
3390
  </td>
2967
3391
  <td>
2968
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 919</span>
3392
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 986</span>
2969
3393
 
2970
3394
  <span class='kw'>def</span> <span class='id identifier rubyid_close'>close</span>
2971
3395
  <span class='comment'># assert(!!this._client._connection, &#39;Protocol error: Connection closed. Most likely the page has been closed.&#39;);
@@ -3019,12 +3443,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3019
3443
  <pre class="lines">
3020
3444
 
3021
3445
 
3022
- 931
3023
- 932
3024
- 933</pre>
3446
+ 998
3447
+ 999
3448
+ 1000</pre>
3025
3449
  </td>
3026
3450
  <td>
3027
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 931</span>
3451
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 998</span>
3028
3452
 
3029
3453
  <span class='kw'>def</span> <span class='id identifier rubyid_closed?'>closed?</span>
3030
3454
  <span class='ivar'>@closed</span>
@@ -3071,12 +3495,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3071
3495
  <pre class="lines">
3072
3496
 
3073
3497
 
3074
- 590
3075
- 591
3076
- 592</pre>
3498
+ 657
3499
+ 658
3500
+ 659</pre>
3077
3501
  </td>
3078
3502
  <td>
3079
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 590</span>
3503
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 657</span>
3080
3504
 
3081
3505
  <span class='kw'>def</span> <span class='id identifier rubyid_content'>content</span>
3082
3506
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_content'>content</span>
@@ -3125,12 +3549,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3125
3549
  <pre class="lines">
3126
3550
 
3127
3551
 
3128
- 601
3129
- 602
3130
- 603</pre>
3552
+ 668
3553
+ 669
3554
+ 670</pre>
3131
3555
  </td>
3132
3556
  <td>
3133
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 601</span>
3557
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 668</span>
3134
3558
 
3135
3559
  <span class='kw'>def</span> <span class='id identifier rubyid_content='>content=</span><span class='lparen'>(</span><span class='id identifier rubyid_html'>html</span><span class='rparen'>)</span>
3136
3560
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_set_content'>set_content</span><span class='lparen'>(</span><span class='id identifier rubyid_html'>html</span><span class='rparen'>)</span>
@@ -3179,12 +3603,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3179
3603
  <pre class="lines">
3180
3604
 
3181
3605
 
3182
- 239
3183
- 240
3184
- 241</pre>
3606
+ 292
3607
+ 293
3608
+ 294</pre>
3185
3609
  </td>
3186
3610
  <td>
3187
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 239</span>
3611
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 292</span>
3188
3612
 
3189
3613
  <span class='kw'>def</span> <span class='id identifier rubyid_default_navigation_timeout='>default_navigation_timeout=</span><span class='lparen'>(</span><span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
3190
3614
  <span class='ivar'>@timeout_settings</span><span class='period'>.</span><span class='id identifier rubyid_default_navigation_timeout'>default_navigation_timeout</span> <span class='op'>=</span> <span class='id identifier rubyid_timeout'>timeout</span>
@@ -3233,12 +3657,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3233
3657
  <pre class="lines">
3234
3658
 
3235
3659
 
3236
- 244
3237
- 245
3238
- 246</pre>
3660
+ 297
3661
+ 298
3662
+ 299</pre>
3239
3663
  </td>
3240
3664
  <td>
3241
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 244</span>
3665
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 297</span>
3242
3666
 
3243
3667
  <span class='kw'>def</span> <span class='id identifier rubyid_default_timeout='>default_timeout=</span><span class='lparen'>(</span><span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
3244
3668
  <span class='ivar'>@timeout_settings</span><span class='period'>.</span><span class='id identifier rubyid_default_timeout'>default_timeout</span> <span class='op'>=</span> <span class='id identifier rubyid_timeout'>timeout</span>
@@ -3287,13 +3711,13 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3287
3711
  <pre class="lines">
3288
3712
 
3289
3713
 
3290
- 697
3291
- 698
3292
- 699
3293
- 700</pre>
3714
+ 764
3715
+ 765
3716
+ 766
3717
+ 767</pre>
3294
3718
  </td>
3295
3719
  <td>
3296
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 697</span>
3720
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 764</span>
3297
3721
 
3298
3722
  <span class='kw'>def</span> <span class='id identifier rubyid_emulate'>emulate</span><span class='lparen'>(</span><span class='id identifier rubyid_device'>device</span><span class='rparen'>)</span>
3299
3723
  <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_viewport'>viewport</span> <span class='op'>=</span> <span class='id identifier rubyid_device'>device</span><span class='period'>.</span><span class='id identifier rubyid_viewport'>viewport</span>
@@ -3343,18 +3767,18 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3343
3767
  <pre class="lines">
3344
3768
 
3345
3769
 
3346
- 741
3347
- 742
3348
- 743
3349
- 744
3350
- 745
3351
- 746
3352
- 747
3353
- 748
3354
- 749</pre>
3770
+ 808
3771
+ 809
3772
+ 810
3773
+ 811
3774
+ 812
3775
+ 813
3776
+ 814
3777
+ 815
3778
+ 816</pre>
3355
3779
  </td>
3356
3780
  <td>
3357
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 741</span>
3781
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 808</span>
3358
3782
 
3359
3783
  <span class='kw'>def</span> <span class='id identifier rubyid_emulate_timezone'>emulate_timezone</span><span class='lparen'>(</span><span class='id identifier rubyid_timezone_id'>timezone_id</span><span class='rparen'>)</span>
3360
3784
  <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_send_message'>send_message</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Emulation.setTimezoneOverride</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='label'>timezoneId:</span> <span class='id identifier rubyid_timezoneId'>timezoneId</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
@@ -3433,12 +3857,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3433
3857
  <pre class="lines">
3434
3858
 
3435
3859
 
3436
- 763
3437
- 764
3438
- 765</pre>
3860
+ 830
3861
+ 831
3862
+ 832</pre>
3439
3863
  </td>
3440
3864
  <td>
3441
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 763</span>
3865
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 830</span>
3442
3866
 
3443
3867
  <span class='kw'>def</span> <span class='id identifier rubyid_evaluate'>evaluate</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
3444
3868
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_evaluate'>evaluate</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
@@ -3511,13 +3935,13 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3511
3935
  <pre class="lines">
3512
3936
 
3513
3937
 
3514
- 265
3515
- 266
3516
- 267
3517
- 268</pre>
3938
+ 318
3939
+ 319
3940
+ 320
3941
+ 321</pre>
3518
3942
  </td>
3519
3943
  <td>
3520
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 265</span>
3944
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 318</span>
3521
3945
 
3522
3946
  <span class='kw'>def</span> <span class='id identifier rubyid_evaluate_handle'>evaluate_handle</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
3523
3947
  <span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span>
@@ -3567,12 +3991,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3567
3991
  <pre class="lines">
3568
3992
 
3569
3993
 
3570
- 416
3571
- 417
3572
- 418</pre>
3994
+ 483
3995
+ 484
3996
+ 485</pre>
3573
3997
  </td>
3574
3998
  <td>
3575
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 416</span>
3999
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 483</span>
3576
4000
 
3577
4001
  <span class='kw'>def</span> <span class='id identifier rubyid_extra_http_headers='>extra_http_headers=</span><span class='lparen'>(</span><span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span>
3578
4002
  <span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_extra_http_headers'>extra_http_headers</span> <span class='op'>=</span> <span class='id identifier rubyid_headers'>headers</span>
@@ -3621,12 +4045,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3621
4045
  <pre class="lines">
3622
4046
 
3623
4047
 
3624
- 955
3625
- 956
3626
- 957</pre>
4048
+ 1022
4049
+ 1023
4050
+ 1024</pre>
3627
4051
  </td>
3628
4052
  <td>
3629
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 955</span>
4053
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1022</span>
3630
4054
 
3631
4055
  <span class='kw'>def</span> <span class='id identifier rubyid_focus'>focus</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
3632
4056
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_focus'>focus</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
@@ -3651,12 +4075,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3651
4075
  <pre class="lines">
3652
4076
 
3653
4077
 
3654
- 221
3655
- 222
3656
- 223</pre>
4078
+ 274
4079
+ 275
4080
+ 276</pre>
3657
4081
  </td>
3658
4082
  <td>
3659
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 221</span>
4083
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 274</span>
3660
4084
 
3661
4085
  <span class='kw'>def</span> <span class='id identifier rubyid_frames'>frames</span>
3662
4086
  <span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_frames'>frames</span>
@@ -3725,12 +4149,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3725
4149
  <pre class="lines">
3726
4150
 
3727
4151
 
3728
- 674
3729
- 675
3730
- 676</pre>
4152
+ 741
4153
+ 742
4154
+ 743</pre>
3731
4155
  </td>
3732
4156
  <td>
3733
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 674</span>
4157
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 741</span>
3734
4158
 
3735
4159
  <span class='kw'>def</span> <span class='id identifier rubyid_go_back'>go_back</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
3736
4160
  <span class='id identifier rubyid_go'>go</span><span class='lparen'>(</span><span class='op'>-</span><span class='int'>1</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
@@ -3799,12 +4223,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3799
4223
  <pre class="lines">
3800
4224
 
3801
4225
 
3802
- 680
3803
- 681
3804
- 682</pre>
4226
+ 747
4227
+ 748
4228
+ 749</pre>
3805
4229
  </td>
3806
4230
  <td>
3807
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 680</span>
4231
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 747</span>
3808
4232
 
3809
4233
  <span class='kw'>def</span> <span class='id identifier rubyid_go_forward'>go_forward</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
3810
4234
  <span class='id identifier rubyid_go'>go</span><span class='lparen'>(</span><span class='int'>+1</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
@@ -3895,12 +4319,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3895
4319
  <pre class="lines">
3896
4320
 
3897
4321
 
3898
- 609
3899
- 610
3900
- 611</pre>
4322
+ 676
4323
+ 677
4324
+ 678</pre>
3901
4325
  </td>
3902
4326
  <td>
3903
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 609</span>
4327
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 676</span>
3904
4328
 
3905
4329
  <span class='kw'>def</span> <span class='id identifier rubyid_goto'>goto</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='label'>referer:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
3906
4330
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_goto'>goto</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='label'>referer:</span> <span class='id identifier rubyid_referer'>referer</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
@@ -3908,6 +4332,56 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3908
4332
  </td>
3909
4333
  </tr>
3910
4334
  </table>
4335
+ </div>
4336
+
4337
+ <div class="method_details ">
4338
+ <h3 class="signature " id="handle_file_chooser-instance_method">
4339
+
4340
+ #<strong>handle_file_chooser</strong>(event) &#x21d2; <tt>Object</tt>
4341
+
4342
+
4343
+
4344
+
4345
+
4346
+ </h3><table class="source_code">
4347
+ <tr>
4348
+ <td>
4349
+ <pre class="lines">
4350
+
4351
+
4352
+ 166
4353
+ 167
4354
+ 168
4355
+ 169
4356
+ 170
4357
+ 171
4358
+ 172
4359
+ 173
4360
+ 174
4361
+ 175
4362
+ 176
4363
+ 177
4364
+ 178</pre>
4365
+ </td>
4366
+ <td>
4367
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 166</span>
4368
+
4369
+ <span class='kw'>def</span> <span class='id identifier rubyid_handle_file_chooser'>handle_file_chooser</span><span class='lparen'>(</span><span class='id identifier rubyid_event'>event</span><span class='rparen'>)</span>
4370
+ <span class='kw'>return</span> <span class='kw'>if</span> <span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
4371
+
4372
+ <span class='id identifier rubyid_frame'>frame</span> <span class='op'>=</span> <span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_frame'>frame</span><span class='lparen'>(</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'>frameId</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
4373
+ <span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_frame'>frame</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span>
4374
+ <span class='id identifier rubyid_element'>element</span> <span class='op'>=</span> <span class='id identifier rubyid_context'>context</span><span class='period'>.</span><span class='id identifier rubyid_adopt_backend_node_id'>adopt_backend_node_id</span><span class='lparen'>(</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'>backendNodeId</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
4375
+ <span class='id identifier rubyid_interceptors'>interceptors</span> <span class='op'>=</span> <span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_to_a'>to_a</span>
4376
+ <span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_clear'>clear</span>
4377
+ <span class='id identifier rubyid_file_chooser'>file_chooser</span> <span class='op'>=</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="FileChooser.html" title="Puppeteer::FileChooser (class)">FileChooser</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="FileChooser.html#initialize-instance_method" title="Puppeteer::FileChooser#initialize (method)">new</a></span></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>
4378
+ <span class='id identifier rubyid_interceptors'>interceptors</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_promise'>promise</span><span class='op'>|</span>
4379
+ <span class='id identifier rubyid_promise'>promise</span><span class='period'>.</span><span class='id identifier rubyid_fulfill'>fulfill</span><span class='lparen'>(</span><span class='id identifier rubyid_file_chooser'>file_chooser</span><span class='rparen'>)</span>
4380
+ <span class='kw'>end</span>
4381
+ <span class='kw'>end</span></pre>
4382
+ </td>
4383
+ </tr>
4384
+ </table>
3911
4385
  </div>
3912
4386
 
3913
4387
  <div class="method_details ">
@@ -3949,12 +4423,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3949
4423
  <pre class="lines">
3950
4424
 
3951
4425
 
3952
- 960
3953
- 961
3954
- 962</pre>
4426
+ 1027
4427
+ 1028
4428
+ 1029</pre>
3955
4429
  </td>
3956
4430
  <td>
3957
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 960</span>
4431
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1027</span>
3958
4432
 
3959
4433
  <span class='kw'>def</span> <span class='id identifier rubyid_hover'>hover</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
3960
4434
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_hover'>hover</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
@@ -3979,17 +4453,17 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
3979
4453
  <pre class="lines">
3980
4454
 
3981
4455
 
3982
- 116
3983
- 117
3984
4456
  118
3985
4457
  119
3986
4458
  120
3987
4459
  121
3988
4460
  122
3989
- 123</pre>
4461
+ 123
4462
+ 124
4463
+ 125</pre>
3990
4464
  </td>
3991
4465
  <td>
3992
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 116</span>
4466
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 118</span>
3993
4467
 
3994
4468
  <span class='kw'>def</span> <span class='id identifier rubyid_init'>init</span>
3995
4469
  <span class='id identifier rubyid_await_all'><span class='object_link'><a href="ConcurrentRubyUtils.html#await_all-instance_method" title="Puppeteer::ConcurrentRubyUtils#await_all (method)">await_all</a></span></span><span class='lparen'>(</span>
@@ -4019,12 +4493,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4019
4493
  <pre class="lines">
4020
4494
 
4021
4495
 
4022
- 215
4023
- 216
4024
- 217</pre>
4496
+ 268
4497
+ 269
4498
+ 270</pre>
4025
4499
  </td>
4026
4500
  <td>
4027
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 215</span>
4501
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 268</span>
4028
4502
 
4029
4503
  <span class='kw'>def</span> <span class='id identifier rubyid_main_frame'>main_frame</span>
4030
4504
  <span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_main_frame'>main_frame</span>
@@ -4049,12 +4523,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4049
4523
  <pre class="lines">
4050
4524
 
4051
4525
 
4052
- 234
4053
- 235
4054
- 236</pre>
4526
+ 287
4527
+ 288
4528
+ 289</pre>
4055
4529
  </td>
4056
4530
  <td>
4057
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 234</span>
4531
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 287</span>
4058
4532
 
4059
4533
  <span class='kw'>def</span> <span class='id identifier rubyid_offline_mode='>offline_mode=</span><span class='lparen'>(</span><span class='id identifier rubyid_enabled'>enabled</span><span class='rparen'>)</span>
4060
4534
  <span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_offline_mode'>offline_mode</span> <span class='op'>=</span> <span class='id identifier rubyid_enabled'>enabled</span>
@@ -4062,6 +4536,130 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4062
4536
  </td>
4063
4537
  </tr>
4064
4538
  </table>
4539
+ </div>
4540
+
4541
+ <div class="method_details ">
4542
+ <h3 class="signature " id="on-instance_method">
4543
+
4544
+ #<strong>on</strong>(event_name, &amp;block) &#x21d2; <tt>Object</tt>
4545
+
4546
+
4547
+
4548
+
4549
+
4550
+ </h3><div class="docstring">
4551
+ <div class="discussion">
4552
+
4553
+
4554
+ </div>
4555
+ </div>
4556
+ <div class="tags">
4557
+ <p class="tag_title">Parameters:</p>
4558
+ <ul class="param">
4559
+
4560
+ <li>
4561
+
4562
+ <span class='name'>event_name</span>
4563
+
4564
+
4565
+ <span class='type'>(<tt>Symbol</tt>)</span>
4566
+
4567
+
4568
+
4569
+ </li>
4570
+
4571
+ </ul>
4572
+
4573
+
4574
+ </div><table class="source_code">
4575
+ <tr>
4576
+ <td>
4577
+ <pre class="lines">
4578
+
4579
+
4580
+ 149
4581
+ 150
4582
+ 151
4583
+ 152
4584
+ 153
4585
+ 154
4586
+ 155</pre>
4587
+ </td>
4588
+ <td>
4589
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 149</span>
4590
+
4591
+ <span class='kw'>def</span> <span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='id identifier rubyid_event_name'>event_name</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
4592
+ <span class='kw'>unless</span> <span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Page::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='id identifier rubyid_event_name'>event_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rparen'>)</span>
4593
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Unknown event name: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_event_name'>event_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>. Known events are </span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Page::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>, </span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
4594
+ <span class='kw'>end</span>
4595
+
4596
+ <span class='id identifier rubyid_add_event_listener'>add_event_listener</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Page::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='lbracket'>[</span><span class='id identifier rubyid_event_name'>event_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
4597
+ <span class='kw'>end</span></pre>
4598
+ </td>
4599
+ </tr>
4600
+ </table>
4601
+ </div>
4602
+
4603
+ <div class="method_details ">
4604
+ <h3 class="signature " id="once-instance_method">
4605
+
4606
+ #<strong>once</strong>(event_name, &amp;block) &#x21d2; <tt>Object</tt>
4607
+
4608
+
4609
+
4610
+
4611
+
4612
+ </h3><div class="docstring">
4613
+ <div class="discussion">
4614
+
4615
+
4616
+ </div>
4617
+ </div>
4618
+ <div class="tags">
4619
+ <p class="tag_title">Parameters:</p>
4620
+ <ul class="param">
4621
+
4622
+ <li>
4623
+
4624
+ <span class='name'>event_name</span>
4625
+
4626
+
4627
+ <span class='type'>(<tt>Symbol</tt>)</span>
4628
+
4629
+
4630
+
4631
+ </li>
4632
+
4633
+ </ul>
4634
+
4635
+
4636
+ </div><table class="source_code">
4637
+ <tr>
4638
+ <td>
4639
+ <pre class="lines">
4640
+
4641
+
4642
+ 158
4643
+ 159
4644
+ 160
4645
+ 161
4646
+ 162
4647
+ 163
4648
+ 164</pre>
4649
+ </td>
4650
+ <td>
4651
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 158</span>
4652
+
4653
+ <span class='kw'>def</span> <span class='id identifier rubyid_once'>once</span><span class='lparen'>(</span><span class='id identifier rubyid_event_name'>event_name</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
4654
+ <span class='kw'>unless</span> <span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Page::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='id identifier rubyid_event_name'>event_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rparen'>)</span>
4655
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Unknown event name: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_event_name'>event_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>. Known events are </span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Page::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>, </span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
4656
+ <span class='kw'>end</span>
4657
+
4658
+ <span class='id identifier rubyid_observe_first'>observe_first</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="#EVENT_MAPPINGS-constant" title="Puppeteer::Page::EVENT_MAPPINGS (constant)">EVENT_MAPPINGS</a></span></span><span class='lbracket'>[</span><span class='id identifier rubyid_event_name'>event_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
4659
+ <span class='kw'>end</span></pre>
4660
+ </td>
4661
+ </tr>
4662
+ </table>
4065
4663
  </div>
4066
4664
 
4067
4665
  <div class="method_details ">
@@ -4116,13 +4714,13 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4116
4714
  <pre class="lines">
4117
4715
 
4118
4716
 
4119
- 272
4120
- 273
4121
- 274
4122
- 275</pre>
4717
+ 325
4718
+ 326
4719
+ 327
4720
+ 328</pre>
4123
4721
  </td>
4124
4722
  <td>
4125
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 272</span>
4723
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 325</span>
4126
4724
 
4127
4725
  <span class='kw'>def</span> <span class='id identifier rubyid_query_objects'>query_objects</span><span class='lparen'>(</span><span class='id identifier rubyid_prototype_handle'>prototype_handle</span><span class='rparen'>)</span>
4128
4726
  <span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_execution_context'>execution_context</span>
@@ -4136,7 +4734,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4136
4734
  <div class="method_details ">
4137
4735
  <h3 class="signature " id="reload-instance_method">
4138
4736
 
4139
- #<strong>reload</strong>(timeout: nil, wait_until: nil) &#x21d2; <tt>!Promise&lt;?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.Response&gt;</tt>
4737
+ #<strong>reload</strong>(timeout: nil, wait_until: nil) &#x21d2; <tt>Puppeteer::Response</tt>
4140
4738
 
4141
4739
 
4142
4740
 
@@ -4154,13 +4752,33 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4154
4752
 
4155
4753
  <li>
4156
4754
 
4157
- <span class='name'>options</span>
4755
+ <span class='name'>timeout</span>
4158
4756
 
4159
4757
 
4160
- <span class='type'>(<tt>!{timeout?: number, waitUntil?: string|!Array&lt;string&gt;}=</tt>)</span>
4758
+ <span class='type'>(<tt>number|nil</tt>)</span>
4759
+
4760
+
4761
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
4762
+
4161
4763
 
4764
+ </li>
4765
+
4766
+ <li>
4767
+
4768
+ <span class='name'>wait_until</span>
4769
+
4770
+
4771
+ <span class='type'>(<tt>string|nil</tt>)</span>
4162
4772
 
4163
4773
 
4774
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
4775
+
4776
+
4777
+ &mdash;
4778
+ <div class='inline'>
4779
+ <p>&#39;load&#39; | &#39;domcontentloaded&#39; | &#39;networkidle0&#39; | &#39;networkidle2&#39;</p>
4780
+ </div>
4781
+
4164
4782
  </li>
4165
4783
 
4166
4784
  </ul>
@@ -4171,7 +4789,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4171
4789
  <li>
4172
4790
 
4173
4791
 
4174
- <span class='type'>(<tt>!Promise&lt;?<span class='object_link'><a href="../Puppeteer.html" title="Puppeteer (class)">Puppeteer</a></span>.Response&gt;</tt>)</span>
4792
+ <span class='type'>(<tt>Puppeteer::Response</tt>)</span>
4175
4793
 
4176
4794
 
4177
4795
 
@@ -4185,24 +4803,22 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4185
4803
  <pre class="lines">
4186
4804
 
4187
4805
 
4188
- 615
4189
- 616
4190
- 617
4191
- 618
4192
- 619
4193
- 620
4194
- 621</pre>
4806
+ 683
4807
+ 684
4808
+ 685
4809
+ 686
4810
+ 687
4811
+ 688</pre>
4195
4812
  </td>
4196
4813
  <td>
4197
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 615</span>
4814
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 683</span>
4198
4815
 
4199
4816
  <span class='kw'>def</span> <span class='id identifier rubyid_reload'>reload</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
4200
- <span class='comment'># const [response] = await Promise.all([
4201
- </span> <span class='comment'># this.waitForNavigation(options),
4202
- </span> <span class='comment'># this._client.send(&#39;Page.reload&#39;)
4203
- </span> <span class='comment'># ]);
4204
- </span> <span class='comment'># return response;
4205
- </span><span class='kw'>end</span></pre>
4817
+ <span class='id identifier rubyid_await_all'><span class='object_link'><a href="ConcurrentRubyUtils.html#await_all-instance_method" title="Puppeteer::ConcurrentRubyUtils#await_all (method)">await_all</a></span></span><span class='lparen'>(</span>
4818
+ <span class='id identifier rubyid_async_wait_for_navigation'>async_wait_for_navigation</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span><span class='comma'>,</span>
4819
+ <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_async_send_message'>async_send_message</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Page.reload</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='comma'>,</span>
4820
+ <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
4821
+ <span class='kw'>end</span></pre>
4206
4822
  </td>
4207
4823
  </tr>
4208
4824
  </table>
@@ -4247,12 +4863,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4247
4863
  <pre class="lines">
4248
4864
 
4249
4865
 
4250
- 230
4251
- 231
4252
- 232</pre>
4866
+ 283
4867
+ 284
4868
+ 285</pre>
4253
4869
  </td>
4254
4870
  <td>
4255
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 230</span>
4871
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 283</span>
4256
4872
 
4257
4873
  <span class='kw'>def</span> <span class='id identifier rubyid_request_interception='>request_interception=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
4258
4874
  <span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_request_interception'>request_interception</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
@@ -4316,12 +4932,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4316
4932
  <pre class="lines">
4317
4933
 
4318
4934
 
4319
- 251
4320
- 252
4321
- 253</pre>
4935
+ 304
4936
+ 305
4937
+ 306</pre>
4322
4938
  </td>
4323
4939
  <td>
4324
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 251</span>
4940
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 304</span>
4325
4941
 
4326
4942
  <span class='kw'>def</span> <span class='const'>S</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
4327
4943
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='const'>S</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
@@ -4362,15 +4978,15 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4362
4978
  <pre class="lines">
4363
4979
 
4364
4980
 
4365
- 790
4366
- 791
4367
- 792
4368
- 793
4369
- 794
4370
- 795</pre>
4981
+ 857
4982
+ 858
4983
+ 859
4984
+ 860
4985
+ 861
4986
+ 862</pre>
4371
4987
  </td>
4372
4988
  <td>
4373
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 790</span>
4989
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 857</span>
4374
4990
 
4375
4991
  <span class='kw'>def</span> <span class='id identifier rubyid_screenshot'>screenshot</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
4376
4992
  <span class='id identifier rubyid_screenshot_options'>screenshot_options</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Page/ScreenshotOptions.html" title="Puppeteer::Page::ScreenshotOptions (class)">ScreenshotOptions</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Page/ScreenshotOptions.html#initialize-instance_method" title="Puppeteer::Page::ScreenshotOptions#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
@@ -4446,12 +5062,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4446
5062
  <pre class="lines">
4447
5063
 
4448
5064
 
4449
- 967
4450
- 968
4451
- 969</pre>
5065
+ 1034
5066
+ 1035
5067
+ 1036</pre>
4452
5068
  </td>
4453
5069
  <td>
4454
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 967</span>
5070
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1034</span>
4455
5071
 
4456
5072
  <span class='kw'>def</span> <span class='id identifier rubyid_select'>select</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span>
4457
5073
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_select'>select</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span>
@@ -4511,12 +5127,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4511
5127
  <pre class="lines">
4512
5128
 
4513
5129
 
4514
- 596
4515
- 597
4516
- 598</pre>
5130
+ 663
5131
+ 664
5132
+ 665</pre>
4517
5133
  </td>
4518
5134
  <td>
4519
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 596</span>
5135
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 663</span>
4520
5136
 
4521
5137
  <span class='kw'>def</span> <span class='id identifier rubyid_set_content'>set_content</span><span class='lparen'>(</span><span class='id identifier rubyid_html'>html</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
4522
5138
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_set_content'>set_content</span><span class='lparen'>(</span><span class='id identifier rubyid_html'>html</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='comma'>,</span> <span class='label'>wait_until:</span> <span class='id identifier rubyid_wait_until'>wait_until</span><span class='rparen'>)</span>
@@ -4529,7 +5145,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4529
5145
  <div class="method_details ">
4530
5146
  <h3 class="signature " id="Seval-instance_method">
4531
5147
 
4532
- #<strong>Seval</strong>(selector, page_function, *args) &#x21d2; <tt>!Promise&lt;(!Object|undefined)&gt;</tt>
5148
+ #<strong>Seval</strong>(selector, page_function, *args) &#x21d2; <tt>Object</tt>
4533
5149
 
4534
5150
 
4535
5151
 
@@ -4552,18 +5168,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4552
5168
  <span class='name'>selector</span>
4553
5169
 
4554
5170
 
4555
- <span class='type'>(<tt>string</tt>)</span>
4556
-
4557
-
4558
-
4559
- </li>
4560
-
4561
- <li>
4562
-
4563
- <span class='name'>pageFunction</span>
4564
-
4565
-
4566
- <span class='type'>(<tt>Function|string</tt>)</span>
5171
+ <span class='type'>(<tt>String</tt>)</span>
4567
5172
 
4568
5173
 
4569
5174
 
@@ -4571,10 +5176,10 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4571
5176
 
4572
5177
  <li>
4573
5178
 
4574
- <span class='name'>args</span>
5179
+ <span class='name'>page_function</span>
4575
5180
 
4576
5181
 
4577
- <span class='type'>(<tt>!Array&lt;*&gt;</tt>)</span>
5182
+ <span class='type'>(<tt>String</tt>)</span>
4578
5183
 
4579
5184
 
4580
5185
 
@@ -4588,7 +5193,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4588
5193
  <li>
4589
5194
 
4590
5195
 
4591
- <span class='type'>(<tt>!Promise&lt;(!Object|undefined)&gt;</tt>)</span>
5196
+ <span class='type'>(<tt>Object</tt>)</span>
4592
5197
 
4593
5198
 
4594
5199
 
@@ -4602,12 +5207,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4602
5207
  <pre class="lines">
4603
5208
 
4604
5209
 
4605
- 282
4606
- 283
4607
- 284</pre>
5210
+ 334
5211
+ 335
5212
+ 336</pre>
4608
5213
  </td>
4609
5214
  <td>
4610
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 282</span>
5215
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 334</span>
4611
5216
 
4612
5217
  <span class='kw'>def</span> <span class='const'>Seval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
4613
5218
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='const'>Seval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
@@ -4671,12 +5276,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4671
5276
  <pre class="lines">
4672
5277
 
4673
5278
 
4674
- 258
4675
- 259
4676
- 260</pre>
5279
+ 311
5280
+ 312
5281
+ 313</pre>
4677
5282
  </td>
4678
5283
  <td>
4679
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 258</span>
5284
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 311</span>
4680
5285
 
4681
5286
  <span class='kw'>def</span> <span class='const'>SS</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
4682
5287
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='const'>SS</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
@@ -4689,7 +5294,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4689
5294
  <div class="method_details ">
4690
5295
  <h3 class="signature " id="SSeval-instance_method">
4691
5296
 
4692
- #<strong>SSeval</strong>(selector, page_function, *args) &#x21d2; <tt>!Promise&lt;(!Object|undefined)&gt;</tt>
5297
+ #<strong>SSeval</strong>(selector, page_function, *args) &#x21d2; <tt>Object</tt>
4693
5298
 
4694
5299
 
4695
5300
 
@@ -4712,18 +5317,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4712
5317
  <span class='name'>selector</span>
4713
5318
 
4714
5319
 
4715
- <span class='type'>(<tt>string</tt>)</span>
4716
-
4717
-
4718
-
4719
- </li>
4720
-
4721
- <li>
4722
-
4723
- <span class='name'>pageFunction</span>
4724
-
4725
-
4726
- <span class='type'>(<tt>Function|string</tt>)</span>
5320
+ <span class='type'>(<tt>String</tt>)</span>
4727
5321
 
4728
5322
 
4729
5323
 
@@ -4731,10 +5325,10 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4731
5325
 
4732
5326
  <li>
4733
5327
 
4734
- <span class='name'>args</span>
5328
+ <span class='name'>page_function</span>
4735
5329
 
4736
5330
 
4737
- <span class='type'>(<tt>!Array&lt;*&gt;</tt>)</span>
5331
+ <span class='type'>(<tt>String</tt>)</span>
4738
5332
 
4739
5333
 
4740
5334
 
@@ -4748,7 +5342,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4748
5342
  <li>
4749
5343
 
4750
5344
 
4751
- <span class='type'>(<tt>!Promise&lt;(!Object|undefined)&gt;</tt>)</span>
5345
+ <span class='type'>(<tt>Object</tt>)</span>
4752
5346
 
4753
5347
 
4754
5348
 
@@ -4762,12 +5356,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4762
5356
  <pre class="lines">
4763
5357
 
4764
5358
 
4765
- 291
4766
- 292
4767
- 293</pre>
5359
+ 350
5360
+ 351
5361
+ 352</pre>
4768
5362
  </td>
4769
5363
  <td>
4770
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 291</span>
5364
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 350</span>
4771
5365
 
4772
5366
  <span class='kw'>def</span> <span class='const'>SSeval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
4773
5367
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='const'>SSeval</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
@@ -4831,12 +5425,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4831
5425
  <pre class="lines">
4832
5426
 
4833
5427
 
4834
- 298
4835
- 299
4836
- 300</pre>
5428
+ 365
5429
+ 366
5430
+ 367</pre>
4837
5431
  </td>
4838
5432
  <td>
4839
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 298</span>
5433
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 365</span>
4840
5434
 
4841
5435
  <span class='kw'>def</span> <span class='const'>Sx</span><span class='lparen'>(</span><span class='id identifier rubyid_expression'>expression</span><span class='rparen'>)</span>
4842
5436
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='const'>Sx</span><span class='lparen'>(</span><span class='id identifier rubyid_expression'>expression</span><span class='rparen'>)</span>
@@ -4870,7 +5464,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4870
5464
  <span class='name'>selector</span>
4871
5465
 
4872
5466
 
4873
- <span class='type'>(<tt>string</tt>)</span>
5467
+ <span class='type'>(<tt>String</tt>)</span>
4874
5468
 
4875
5469
 
4876
5470
 
@@ -4885,12 +5479,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4885
5479
  <pre class="lines">
4886
5480
 
4887
5481
 
4888
- 972
4889
- 973
4890
- 974</pre>
5482
+ 1039
5483
+ 1040
5484
+ 1041</pre>
4891
5485
  </td>
4892
5486
  <td>
4893
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 972</span>
5487
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1039</span>
4894
5488
 
4895
5489
  <span class='kw'>def</span> <span class='id identifier rubyid_tap'>tap</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
4896
5490
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='rparen'>)</span>
@@ -4937,12 +5531,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
4937
5531
  <pre class="lines">
4938
5532
 
4939
5533
 
4940
- 782
4941
- 783
4942
- 784</pre>
5534
+ 849
5535
+ 850
5536
+ 851</pre>
4943
5537
  </td>
4944
5538
  <td>
4945
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 782</span>
5539
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 849</span>
4946
5540
 
4947
5541
  <span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span>
4948
5542
  <span class='ivar'>@title</span>
@@ -5015,12 +5609,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5015
5609
  <pre class="lines">
5016
5610
 
5017
5611
 
5018
- 979
5019
- 980
5020
- 981</pre>
5612
+ 1051
5613
+ 1052
5614
+ 1053</pre>
5021
5615
  </td>
5022
5616
  <td>
5023
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 979</span>
5617
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1051</span>
5024
5618
 
5025
5619
  <span class='kw'>def</span> <span class='id identifier rubyid_type_text'>type_text</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
5026
5620
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_type_text'>type_text</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='id identifier rubyid_text'>text</span><span class='comma'>,</span> <span class='label'>delay:</span> <span class='id identifier rubyid_delay'>delay</span><span class='rparen'>)</span>
@@ -5067,12 +5661,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5067
5661
  <pre class="lines">
5068
5662
 
5069
5663
 
5070
- 585
5071
- 586
5072
- 587</pre>
5664
+ 652
5665
+ 653
5666
+ 654</pre>
5073
5667
  </td>
5074
5668
  <td>
5075
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 585</span>
5669
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 652</span>
5076
5670
 
5077
5671
  <span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
5078
5672
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span>
@@ -5121,12 +5715,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5121
5715
  <pre class="lines">
5122
5716
 
5123
5717
 
5124
- 421
5125
- 422
5126
- 423</pre>
5718
+ 488
5719
+ 489
5720
+ 490</pre>
5127
5721
  </td>
5128
5722
  <td>
5129
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 421</span>
5723
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 488</span>
5130
5724
 
5131
5725
  <span class='kw'>def</span> <span class='id identifier rubyid_user_agent='>user_agent=</span><span class='lparen'>(</span><span class='id identifier rubyid_user_agent'>user_agent</span><span class='rparen'>)</span>
5132
5726
  <span class='ivar'>@frame_manager</span><span class='period'>.</span><span class='id identifier rubyid_network_manager'>network_manager</span><span class='period'>.</span><span class='id identifier rubyid_user_agent'>user_agent</span> <span class='op'>=</span> <span class='id identifier rubyid_user_agent'>user_agent</span>
@@ -5134,6 +5728,107 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5134
5728
  </td>
5135
5729
  </tr>
5136
5730
  </table>
5731
+ </div>
5732
+
5733
+ <div class="method_details ">
5734
+ <h3 class="signature " id="wait_for_file_chooser-instance_method">
5735
+
5736
+ #<strong>wait_for_file_chooser</strong>(timeout: nil) &#x21d2; <tt><span class='object_link'><a href="FileChooser.html" title="Puppeteer::FileChooser (class)">Puppeteer::FileChooser</a></span></tt>
5737
+
5738
+
5739
+
5740
+
5741
+
5742
+ </h3><div class="docstring">
5743
+ <div class="discussion">
5744
+
5745
+
5746
+ </div>
5747
+ </div>
5748
+ <div class="tags">
5749
+ <p class="tag_title">Parameters:</p>
5750
+ <ul class="param">
5751
+
5752
+ <li>
5753
+
5754
+ <span class='name'>timeout</span>
5755
+
5756
+
5757
+ <span class='type'>(<tt>Integer</tt>)</span>
5758
+
5759
+
5760
+ <em class="default">(defaults to: <tt>nil</tt>)</em>
5761
+
5762
+
5763
+ </li>
5764
+
5765
+ </ul>
5766
+
5767
+ <p class="tag_title">Returns:</p>
5768
+ <ul class="return">
5769
+
5770
+ <li>
5771
+
5772
+
5773
+ <span class='type'>(<tt><span class='object_link'><a href="FileChooser.html" title="Puppeteer::FileChooser (class)">Puppeteer::FileChooser</a></span></tt>)</span>
5774
+
5775
+
5776
+
5777
+ </li>
5778
+
5779
+ </ul>
5780
+
5781
+ </div><table class="source_code">
5782
+ <tr>
5783
+ <td>
5784
+ <pre class="lines">
5785
+
5786
+
5787
+ 188
5788
+ 189
5789
+ 190
5790
+ 191
5791
+ 192
5792
+ 193
5793
+ 194
5794
+ 195
5795
+ 196
5796
+ 197
5797
+ 198
5798
+ 199
5799
+ 200
5800
+ 201
5801
+ 202
5802
+ 203
5803
+ 204
5804
+ 205
5805
+ 206</pre>
5806
+ </td>
5807
+ <td>
5808
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 188</span>
5809
+
5810
+ <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_file_chooser'>wait_for_file_chooser</span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
5811
+ <span class='kw'>if</span> <span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
5812
+ <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'>Page.setInterceptFileChooserDialog</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='label'>enabled:</span> <span class='kw'>true</span><span class='rparen'>)</span>
5813
+ <span class='kw'>end</span>
5814
+
5815
+ <span class='id identifier rubyid_option_timeout'>option_timeout</span> <span class='op'>=</span> <span class='id identifier rubyid_timeout'>timeout</span> <span class='op'>||</span> <span class='ivar'>@timeout_settings</span><span class='period'>.</span><span class='id identifier rubyid_timeout'>timeout</span>
5816
+ <span class='id identifier rubyid_promise'>promise</span> <span class='op'>=</span> <span class='id identifier rubyid_resolvable_future'><span class='object_link'><a href="ConcurrentRubyUtils.html#resolvable_future-instance_method" title="Puppeteer::ConcurrentRubyUtils#resolvable_future (method)">resolvable_future</a></span></span>
5817
+ <span class='ivar'>@file_chooser_interceptors</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_promise'>promise</span>
5818
+
5819
+ <span class='kw'>begin</span>
5820
+ <span class='const'>Timeout</span><span class='period'>.</span><span class='id identifier rubyid_timeout'>timeout</span><span class='lparen'>(</span><span class='id identifier rubyid_option_timeout'>option_timeout</span> <span class='op'>/</span> <span class='float'>1000.0</span><span class='rparen'>)</span> <span class='kw'>do</span>
5821
+ <span class='id identifier rubyid_promise'>promise</span><span class='period'>.</span><span class='id identifier rubyid_value!'>value!</span>
5822
+ <span class='kw'>end</span>
5823
+ <span class='kw'>rescue</span> <span class='const'>Timeout</span><span class='op'>::</span><span class='const'>Error</span>
5824
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="Page/FileChooserTimeoutError.html" title="Puppeteer::Page::FileChooserTimeoutError (class)">FileChooserTimeoutError</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Page/FileChooserTimeoutError.html#initialize-instance_method" title="Puppeteer::Page::FileChooserTimeoutError#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>timeout:</span> <span class='id identifier rubyid_option_timeout'>option_timeout</span><span class='rparen'>)</span>
5825
+ <span class='kw'>ensure</span>
5826
+ <span class='ivar'>@file_chooser_interceptors</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_promise'>promise</span><span class='rparen'>)</span>
5827
+ <span class='kw'>end</span>
5828
+ <span class='kw'>end</span></pre>
5829
+ </td>
5830
+ </tr>
5831
+ </table>
5137
5832
  </div>
5138
5833
 
5139
5834
  <div class="method_details ">
@@ -5212,12 +5907,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5212
5907
  <pre class="lines">
5213
5908
 
5214
5909
 
5215
- 1029
5216
- 1030
5217
- 1031</pre>
5910
+ 1101
5911
+ 1102
5912
+ 1103</pre>
5218
5913
  </td>
5219
5914
  <td>
5220
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1029</span>
5915
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1101</span>
5221
5916
 
5222
5917
  <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_function'>wait_for_function</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
5223
5918
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_function'>wait_for_function</span><span class='lparen'>(</span><span class='id identifier rubyid_page_function'>page_function</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
@@ -5315,12 +6010,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5315
6010
  <pre class="lines">
5316
6011
 
5317
6012
 
5318
- 997
5319
- 998
5320
- 999</pre>
6013
+ 1069
6014
+ 1070
6015
+ 1071</pre>
5321
6016
  </td>
5322
6017
  <td>
5323
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 997</span>
6018
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1069</span>
5324
6019
 
5325
6020
  <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_selector'>wait_for_selector</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
5326
6021
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_selector'>wait_for_selector</span><span class='lparen'>(</span><span class='id identifier rubyid_selector'>selector</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='id identifier rubyid_visible'>visible</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='id identifier rubyid_hidden'>hidden</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
@@ -5418,12 +6113,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5418
6113
  <pre class="lines">
5419
6114
 
5420
6115
 
5421
- 1013
5422
- 1014
5423
- 1015</pre>
6116
+ 1085
6117
+ 1086
6118
+ 1087</pre>
5424
6119
  </td>
5425
6120
  <td>
5426
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1013</span>
6121
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 1085</span>
5427
6122
 
5428
6123
  <span class='kw'>def</span> <span class='id identifier rubyid_wait_for_xpath'>wait_for_xpath</span><span class='lparen'>(</span><span class='id identifier rubyid_xpath'>xpath</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
5429
6124
  <span class='id identifier rubyid_main_frame'>main_frame</span><span class='period'>.</span><span class='id identifier rubyid_wait_for_xpath'>wait_for_xpath</span><span class='lparen'>(</span><span class='id identifier rubyid_xpath'>xpath</span><span class='comma'>,</span> <span class='label'>visible:</span> <span class='id identifier rubyid_visible'>visible</span><span class='comma'>,</span> <span class='label'>hidden:</span> <span class='id identifier rubyid_hidden'>hidden</span><span class='comma'>,</span> <span class='label'>timeout:</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='rparen'>)</span>
@@ -5448,12 +6143,12 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5448
6143
  <pre class="lines">
5449
6144
 
5450
6145
 
5451
- 225
5452
- 226
5453
- 227</pre>
6146
+ 278
6147
+ 279
6148
+ 280</pre>
5454
6149
  </td>
5455
6150
  <td>
5456
- <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 225</span>
6151
+ <pre class="code"><span class="info file"># File 'lib/puppeteer/page.rb', line 278</span>
5457
6152
 
5458
6153
  <span class='kw'>def</span> <span class='id identifier rubyid_workers'>workers</span>
5459
6154
  <span class='ivar'>@workers</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span>
@@ -5468,7 +6163,7 @@ await this._client.send('Emulation.setGeolocationOverride', latitude, ac
5468
6163
  </div>
5469
6164
 
5470
6165
  <div id="footer">
5471
- Generated on Mon May 25 23:22:48 2020 by
6166
+ Generated on Tue Jun 23 10:24:58 2020 by
5472
6167
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
5473
6168
  0.9.24 (ruby-2.6.3).
5474
6169
  </div>