selenium-devtools 0.0.1.alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/lib/selenium/devtools/v88.rb +1 -0
  3. data/lib/selenium/devtools/v88/accessibility.rb +73 -0
  4. data/lib/selenium/devtools/v88/animation.rb +100 -0
  5. data/lib/selenium/devtools/v88/application_cache.rb +66 -0
  6. data/lib/selenium/devtools/v88/audits.rb +63 -0
  7. data/lib/selenium/devtools/v88/background_service.rb +69 -0
  8. data/lib/selenium/devtools/v88/browser.rb +130 -0
  9. data/lib/selenium/devtools/v88/cache_storage.rb +75 -0
  10. data/lib/selenium/devtools/v88/cast.rb +72 -0
  11. data/lib/selenium/devtools/v88/console.rb +59 -0
  12. data/lib/selenium/devtools/v88/css.rb +181 -0
  13. data/lib/selenium/devtools/v88/database.rb +66 -0
  14. data/lib/selenium/devtools/v88/debugger.rb +233 -0
  15. data/lib/selenium/devtools/v88/device_orientation.rb +55 -0
  16. data/lib/selenium/devtools/v88/dom.rb +329 -0
  17. data/lib/selenium/devtools/v88/dom_debugger.rb +95 -0
  18. data/lib/selenium/devtools/v88/dom_snapshot.rb +67 -0
  19. data/lib/selenium/devtools/v88/dom_storage.rb +81 -0
  20. data/lib/selenium/devtools/v88/emulation.rb +198 -0
  21. data/lib/selenium/devtools/v88/fetch.rb +99 -0
  22. data/lib/selenium/devtools/v88/headless_experimental.rb +63 -0
  23. data/lib/selenium/devtools/v88/heap_profiler.rb +109 -0
  24. data/lib/selenium/devtools/v88/indexed_db.rb +102 -0
  25. data/lib/selenium/devtools/v88/input.rb +148 -0
  26. data/lib/selenium/devtools/v88/inspector.rb +57 -0
  27. data/lib/selenium/devtools/v88/io.rb +61 -0
  28. data/lib/selenium/devtools/v88/layer_tree.rb +97 -0
  29. data/lib/selenium/devtools/v88/log.rb +68 -0
  30. data/lib/selenium/devtools/v88/media.rb +59 -0
  31. data/lib/selenium/devtools/v88/memory.rb +88 -0
  32. data/lib/selenium/devtools/v88/network.rb +247 -0
  33. data/lib/selenium/devtools/v88/overlay.rb +183 -0
  34. data/lib/selenium/devtools/v88/page.rb +376 -0
  35. data/lib/selenium/devtools/v88/performance.rb +65 -0
  36. data/lib/selenium/devtools/v88/profiler.rb +125 -0
  37. data/lib/selenium/devtools/v88/runtime.rb +197 -0
  38. data/lib/selenium/devtools/v88/schema.rb +48 -0
  39. data/lib/selenium/devtools/v88/security.rb +73 -0
  40. data/lib/selenium/devtools/v88/service_worker.rb +118 -0
  41. data/lib/selenium/devtools/v88/storage.rb +103 -0
  42. data/lib/selenium/devtools/v88/system_info.rb +52 -0
  43. data/lib/selenium/devtools/v88/target.rb +145 -0
  44. data/lib/selenium/devtools/v88/tethering.rb +57 -0
  45. data/lib/selenium/devtools/v88/tracing.rb +79 -0
  46. data/lib/selenium/devtools/v88/web_audio.rb +72 -0
  47. data/lib/selenium/devtools/v88/web_authn.rb +102 -0
  48. data/lib/selenium/devtools/version.rb +24 -0
  49. metadata +99 -0
@@ -0,0 +1,79 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Licensed to the Software Freedom Conservancy (SFC) under one
4
+ # or more contributor license agreements. See the NOTICE file
5
+ # distributed with this work for additional information
6
+ # regarding copyright ownership. The SFC licenses this file
7
+ # to you under the Apache License, Version 2.0 (the
8
+ # "License"); you may not use this file except in compliance
9
+ # with the License. You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing,
14
+ # software distributed under the License is distributed on an
15
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ # KIND, either express or implied. See the License for the
17
+ # specific language governing permissions and limitations
18
+ # under the License.
19
+
20
+ # This file is automatically generated. Any changes will be lost!
21
+ module Selenium
22
+ module WebDriver
23
+ class DevTools
24
+ def tracing
25
+ @tracing ||= V88::Tracing.new(self)
26
+ end
27
+
28
+ module V88
29
+ class Tracing
30
+ EVENTS = {
31
+ buffer_usage: 'bufferUsage',
32
+ data_collected: 'dataCollected',
33
+ tracing_complete: 'tracingComplete',
34
+ }.freeze
35
+
36
+ def initialize(devtools)
37
+ @devtools = devtools
38
+ end
39
+
40
+ def on(event, &block)
41
+ event = EVENTS[event] if event.is_a?(Symbol)
42
+ @devtools.callbacks["Tracing.#{event}"] << block
43
+ end
44
+
45
+ def _end
46
+ @devtools.send_cmd('Tracing.end')
47
+ end
48
+
49
+ def get_categories
50
+ @devtools.send_cmd('Tracing.getCategories')
51
+ end
52
+
53
+ def record_clock_sync_marker(sync_id:)
54
+ @devtools.send_cmd('Tracing.recordClockSyncMarker',
55
+ syncId: sync_id)
56
+ end
57
+
58
+ def request_memory_dump(deterministic: nil, level_of_detail: nil)
59
+ @devtools.send_cmd('Tracing.requestMemoryDump',
60
+ deterministic: deterministic,
61
+ levelOfDetail: level_of_detail)
62
+ end
63
+
64
+ def start(categories: nil, options: nil, buffer_usage_reporting_interval: nil, transfer_mode: nil, stream_format: nil, stream_compression: nil, trace_config: nil)
65
+ @devtools.send_cmd('Tracing.start',
66
+ categories: categories,
67
+ options: options,
68
+ bufferUsageReportingInterval: buffer_usage_reporting_interval,
69
+ transferMode: transfer_mode,
70
+ streamFormat: stream_format,
71
+ streamCompression: stream_compression,
72
+ traceConfig: trace_config)
73
+ end
74
+
75
+ end # V88
76
+ end # Tracing
77
+ end # DevTools
78
+ end # WebDriver
79
+ end # Selenium
@@ -0,0 +1,72 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Licensed to the Software Freedom Conservancy (SFC) under one
4
+ # or more contributor license agreements. See the NOTICE file
5
+ # distributed with this work for additional information
6
+ # regarding copyright ownership. The SFC licenses this file
7
+ # to you under the Apache License, Version 2.0 (the
8
+ # "License"); you may not use this file except in compliance
9
+ # with the License. You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing,
14
+ # software distributed under the License is distributed on an
15
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ # KIND, either express or implied. See the License for the
17
+ # specific language governing permissions and limitations
18
+ # under the License.
19
+
20
+ # This file is automatically generated. Any changes will be lost!
21
+ module Selenium
22
+ module WebDriver
23
+ class DevTools
24
+ def web_audio
25
+ @web_audio ||= V88::WebAudio.new(self)
26
+ end
27
+
28
+ module V88
29
+ class WebAudio
30
+ EVENTS = {
31
+ context_created: 'contextCreated',
32
+ context_will_be_destroyed: 'contextWillBeDestroyed',
33
+ context_changed: 'contextChanged',
34
+ audio_listener_created: 'audioListenerCreated',
35
+ audio_listener_will_be_destroyed: 'audioListenerWillBeDestroyed',
36
+ audio_node_created: 'audioNodeCreated',
37
+ audio_node_will_be_destroyed: 'audioNodeWillBeDestroyed',
38
+ audio_param_created: 'audioParamCreated',
39
+ audio_param_will_be_destroyed: 'audioParamWillBeDestroyed',
40
+ nodes_connected: 'nodesConnected',
41
+ nodes_disconnected: 'nodesDisconnected',
42
+ node_param_connected: 'nodeParamConnected',
43
+ node_param_disconnected: 'nodeParamDisconnected',
44
+ }.freeze
45
+
46
+ def initialize(devtools)
47
+ @devtools = devtools
48
+ end
49
+
50
+ def on(event, &block)
51
+ event = EVENTS[event] if event.is_a?(Symbol)
52
+ @devtools.callbacks["WebAudio.#{event}"] << block
53
+ end
54
+
55
+ def enable
56
+ @devtools.send_cmd('WebAudio.enable')
57
+ end
58
+
59
+ def disable
60
+ @devtools.send_cmd('WebAudio.disable')
61
+ end
62
+
63
+ def get_realtime_data(context_id:)
64
+ @devtools.send_cmd('WebAudio.getRealtimeData',
65
+ contextId: context_id)
66
+ end
67
+
68
+ end # V88
69
+ end # WebAudio
70
+ end # DevTools
71
+ end # WebDriver
72
+ end # Selenium
@@ -0,0 +1,102 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Licensed to the Software Freedom Conservancy (SFC) under one
4
+ # or more contributor license agreements. See the NOTICE file
5
+ # distributed with this work for additional information
6
+ # regarding copyright ownership. The SFC licenses this file
7
+ # to you under the Apache License, Version 2.0 (the
8
+ # "License"); you may not use this file except in compliance
9
+ # with the License. You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing,
14
+ # software distributed under the License is distributed on an
15
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ # KIND, either express or implied. See the License for the
17
+ # specific language governing permissions and limitations
18
+ # under the License.
19
+
20
+ # This file is automatically generated. Any changes will be lost!
21
+ module Selenium
22
+ module WebDriver
23
+ class DevTools
24
+ def web_authn
25
+ @web_authn ||= V88::WebAuthn.new(self)
26
+ end
27
+
28
+ module V88
29
+ class WebAuthn
30
+
31
+ def initialize(devtools)
32
+ @devtools = devtools
33
+ end
34
+
35
+ def on(event, &block)
36
+ event = EVENTS[event] if event.is_a?(Symbol)
37
+ @devtools.callbacks["WebAuthn.#{event}"] << block
38
+ end
39
+
40
+ def enable
41
+ @devtools.send_cmd('WebAuthn.enable')
42
+ end
43
+
44
+ def disable
45
+ @devtools.send_cmd('WebAuthn.disable')
46
+ end
47
+
48
+ def add_virtual_authenticator(options:)
49
+ @devtools.send_cmd('WebAuthn.addVirtualAuthenticator',
50
+ options: options)
51
+ end
52
+
53
+ def remove_virtual_authenticator(authenticator_id:)
54
+ @devtools.send_cmd('WebAuthn.removeVirtualAuthenticator',
55
+ authenticatorId: authenticator_id)
56
+ end
57
+
58
+ def add_credential(authenticator_id:, credential:)
59
+ @devtools.send_cmd('WebAuthn.addCredential',
60
+ authenticatorId: authenticator_id,
61
+ credential: credential)
62
+ end
63
+
64
+ def get_credential(authenticator_id:, credential_id:)
65
+ @devtools.send_cmd('WebAuthn.getCredential',
66
+ authenticatorId: authenticator_id,
67
+ credentialId: credential_id)
68
+ end
69
+
70
+ def get_credentials(authenticator_id:)
71
+ @devtools.send_cmd('WebAuthn.getCredentials',
72
+ authenticatorId: authenticator_id)
73
+ end
74
+
75
+ def remove_credential(authenticator_id:, credential_id:)
76
+ @devtools.send_cmd('WebAuthn.removeCredential',
77
+ authenticatorId: authenticator_id,
78
+ credentialId: credential_id)
79
+ end
80
+
81
+ def clear_credentials(authenticator_id:)
82
+ @devtools.send_cmd('WebAuthn.clearCredentials',
83
+ authenticatorId: authenticator_id)
84
+ end
85
+
86
+ def set_user_verified(authenticator_id:, is_user_verified:)
87
+ @devtools.send_cmd('WebAuthn.setUserVerified',
88
+ authenticatorId: authenticator_id,
89
+ isUserVerified: is_user_verified)
90
+ end
91
+
92
+ def set_automatic_presence_simulation(authenticator_id:, enabled:)
93
+ @devtools.send_cmd('WebAuthn.setAutomaticPresenceSimulation',
94
+ authenticatorId: authenticator_id,
95
+ enabled: enabled)
96
+ end
97
+
98
+ end # V88
99
+ end # WebAuthn
100
+ end # DevTools
101
+ end # WebDriver
102
+ end # Selenium
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Licensed to the Software Freedom Conservancy (SFC) under one
4
+ # or more contributor license agreements. See the NOTICE file
5
+ # distributed with this work for additional information
6
+ # regarding copyright ownership. The SFC licenses this file
7
+ # to you under the Apache License, Version 2.0 (the
8
+ # "License"); you may not use this file except in compliance
9
+ # with the License. You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing,
14
+ # software distributed under the License is distributed on an
15
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ # KIND, either express or implied. See the License for the
17
+ # specific language governing permissions and limitations
18
+ # under the License.
19
+
20
+ module Selenium
21
+ module DevTools
22
+ VERSION = '0.0.1.alpha'
23
+ end # DevTools
24
+ end # Selenium
metadata ADDED
@@ -0,0 +1,99 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: selenium-devtools
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.alpha
5
+ platform: ruby
6
+ authors:
7
+ - Alex Rodionov
8
+ - Titus Fortner
9
+ - Thomas Walpole
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2021-02-28 00:00:00.000000000 Z
14
+ dependencies: []
15
+ description: |2
16
+ Selenium WebDriver now supports limited DevTools interactions.
17
+ This project allows users to specify desired versioning.
18
+ email:
19
+ - p0deje@gmail.com
20
+ - titusfortner@gmail.com
21
+ - twalpole@gmail.com
22
+ executables: []
23
+ extensions: []
24
+ extra_rdoc_files: []
25
+ files:
26
+ - lib/selenium/devtools/v88.rb
27
+ - lib/selenium/devtools/v88/accessibility.rb
28
+ - lib/selenium/devtools/v88/animation.rb
29
+ - lib/selenium/devtools/v88/application_cache.rb
30
+ - lib/selenium/devtools/v88/audits.rb
31
+ - lib/selenium/devtools/v88/background_service.rb
32
+ - lib/selenium/devtools/v88/browser.rb
33
+ - lib/selenium/devtools/v88/cache_storage.rb
34
+ - lib/selenium/devtools/v88/cast.rb
35
+ - lib/selenium/devtools/v88/console.rb
36
+ - lib/selenium/devtools/v88/css.rb
37
+ - lib/selenium/devtools/v88/database.rb
38
+ - lib/selenium/devtools/v88/debugger.rb
39
+ - lib/selenium/devtools/v88/device_orientation.rb
40
+ - lib/selenium/devtools/v88/dom.rb
41
+ - lib/selenium/devtools/v88/dom_debugger.rb
42
+ - lib/selenium/devtools/v88/dom_snapshot.rb
43
+ - lib/selenium/devtools/v88/dom_storage.rb
44
+ - lib/selenium/devtools/v88/emulation.rb
45
+ - lib/selenium/devtools/v88/fetch.rb
46
+ - lib/selenium/devtools/v88/headless_experimental.rb
47
+ - lib/selenium/devtools/v88/heap_profiler.rb
48
+ - lib/selenium/devtools/v88/indexed_db.rb
49
+ - lib/selenium/devtools/v88/input.rb
50
+ - lib/selenium/devtools/v88/inspector.rb
51
+ - lib/selenium/devtools/v88/io.rb
52
+ - lib/selenium/devtools/v88/layer_tree.rb
53
+ - lib/selenium/devtools/v88/log.rb
54
+ - lib/selenium/devtools/v88/media.rb
55
+ - lib/selenium/devtools/v88/memory.rb
56
+ - lib/selenium/devtools/v88/network.rb
57
+ - lib/selenium/devtools/v88/overlay.rb
58
+ - lib/selenium/devtools/v88/page.rb
59
+ - lib/selenium/devtools/v88/performance.rb
60
+ - lib/selenium/devtools/v88/profiler.rb
61
+ - lib/selenium/devtools/v88/runtime.rb
62
+ - lib/selenium/devtools/v88/schema.rb
63
+ - lib/selenium/devtools/v88/security.rb
64
+ - lib/selenium/devtools/v88/service_worker.rb
65
+ - lib/selenium/devtools/v88/storage.rb
66
+ - lib/selenium/devtools/v88/system_info.rb
67
+ - lib/selenium/devtools/v88/target.rb
68
+ - lib/selenium/devtools/v88/tethering.rb
69
+ - lib/selenium/devtools/v88/tracing.rb
70
+ - lib/selenium/devtools/v88/web_audio.rb
71
+ - lib/selenium/devtools/v88/web_authn.rb
72
+ - lib/selenium/devtools/version.rb
73
+ homepage: https://selenium.dev
74
+ licenses:
75
+ - Apache-2.0
76
+ metadata:
77
+ changelog_uri: https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES
78
+ source_code_uri: https://github.com/SeleniumHQ/selenium/tree/trunk/rb
79
+ post_install_message:
80
+ rdoc_options: []
81
+ require_paths:
82
+ - lib
83
+ required_ruby_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">"
91
+ - !ruby/object:Gem::Version
92
+ version: 1.3.1
93
+ requirements: []
94
+ rubyforge_project:
95
+ rubygems_version: 2.7.9
96
+ signing_key:
97
+ specification_version: 4
98
+ summary: DevTools Code for use with Selenium
99
+ test_files: []