puppeteer-ruby 0.0.19 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +37 -0
- data/README.md +38 -0
- data/lib/puppeteer.rb +10 -2
- data/lib/puppeteer/browser.rb +19 -26
- data/lib/puppeteer/browser_context.rb +48 -49
- data/lib/puppeteer/browser_runner.rb +19 -5
- data/lib/puppeteer/cdp_session.rb +21 -7
- data/lib/puppeteer/concurrent_ruby_utils.rb +18 -5
- data/lib/puppeteer/connection.rb +32 -13
- data/lib/puppeteer/devices.rb +998 -849
- data/lib/puppeteer/dialog.rb +34 -0
- data/lib/puppeteer/dom_world.rb +2 -2
- data/lib/puppeteer/event_callbackable.rb +4 -0
- data/lib/puppeteer/events.rb +184 -0
- data/lib/puppeteer/exception_details.rb +38 -0
- data/lib/puppeteer/frame.rb +1 -3
- data/lib/puppeteer/frame_manager.rb +20 -16
- data/lib/puppeteer/geolocation.rb +24 -0
- data/lib/puppeteer/keyboard/us_keyboard_layout.rb +2 -2
- data/lib/puppeteer/launcher.rb +0 -1
- data/lib/puppeteer/launcher/browser_options.rb +2 -1
- data/lib/puppeteer/launcher/chrome.rb +4 -8
- data/lib/puppeteer/launcher/firefox.rb +8 -15
- data/lib/puppeteer/lifecycle_watcher.rb +6 -6
- data/lib/puppeteer/network_manager.rb +6 -6
- data/lib/puppeteer/page.rb +106 -141
- data/lib/puppeteer/target.rb +2 -2
- data/lib/puppeteer/version.rb +1 -1
- metadata +6 -2
data/lib/puppeteer/target.rb
CHANGED
@@ -68,10 +68,10 @@ class Puppeteer::Target
|
|
68
68
|
if opener_page.nil? || type != 'page'
|
69
69
|
return true
|
70
70
|
end
|
71
|
-
# if (!openerPage.listenerCount(
|
71
|
+
# if (!openerPage.listenerCount(PageEmittedEvents::Popup))
|
72
72
|
# return true;
|
73
73
|
popup_page = page
|
74
|
-
opener_page.emit_event(
|
74
|
+
opener_page.emit_event(PageEmittedEvents::Popup, popup_page)
|
75
75
|
|
76
76
|
true
|
77
77
|
end
|
data/lib/puppeteer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppeteer-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YusukeIwaki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -213,6 +213,7 @@ files:
|
|
213
213
|
- lib/puppeteer/define_async_method.rb
|
214
214
|
- lib/puppeteer/device.rb
|
215
215
|
- lib/puppeteer/devices.rb
|
216
|
+
- lib/puppeteer/dialog.rb
|
216
217
|
- lib/puppeteer/dom_world.rb
|
217
218
|
- lib/puppeteer/element_handle.rb
|
218
219
|
- lib/puppeteer/element_handle/bounding_box.rb
|
@@ -222,10 +223,13 @@ files:
|
|
222
223
|
- lib/puppeteer/env.rb
|
223
224
|
- lib/puppeteer/errors.rb
|
224
225
|
- lib/puppeteer/event_callbackable.rb
|
226
|
+
- lib/puppeteer/events.rb
|
227
|
+
- lib/puppeteer/exception_details.rb
|
225
228
|
- lib/puppeteer/execution_context.rb
|
226
229
|
- lib/puppeteer/file_chooser.rb
|
227
230
|
- lib/puppeteer/frame.rb
|
228
231
|
- lib/puppeteer/frame_manager.rb
|
232
|
+
- lib/puppeteer/geolocation.rb
|
229
233
|
- lib/puppeteer/if_present.rb
|
230
234
|
- lib/puppeteer/js_handle.rb
|
231
235
|
- lib/puppeteer/keyboard.rb
|