selenium-webdriver 4.0.0.alpha1 → 4.0.0.alpha6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGES +139 -1
  3. data/LICENSE +1 -1
  4. data/lib/selenium/server.rb +3 -3
  5. data/lib/selenium/webdriver.rb +11 -7
  6. data/lib/selenium/webdriver/atoms/findElements.js +122 -0
  7. data/lib/selenium/webdriver/atoms/getAttribute.js +84 -7
  8. data/lib/selenium/webdriver/atoms/isDisplayed.js +75 -77
  9. data/lib/selenium/webdriver/chrome.rb +10 -9
  10. data/lib/selenium/webdriver/chrome/bridge.rb +20 -4
  11. data/lib/selenium/webdriver/chrome/driver.rb +3 -52
  12. data/lib/selenium/webdriver/chrome/options.rb +97 -57
  13. data/lib/selenium/webdriver/chrome/profile.rb +2 -2
  14. data/lib/selenium/webdriver/chrome/service.rb +0 -4
  15. data/lib/selenium/webdriver/common.rb +3 -0
  16. data/lib/selenium/webdriver/common/driver.rb +76 -17
  17. data/lib/selenium/webdriver/common/driver_extensions/{has_touch_screen.rb → has_devtools.rb} +10 -8
  18. data/lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb +2 -1
  19. data/lib/selenium/webdriver/common/logger.rb +48 -16
  20. data/lib/selenium/webdriver/common/manager.rb +5 -0
  21. data/lib/selenium/webdriver/common/options.rb +60 -121
  22. data/lib/selenium/webdriver/common/platform.rb +3 -0
  23. data/lib/selenium/webdriver/common/port_prober.rb +4 -6
  24. data/lib/selenium/webdriver/common/profile_helper.rb +10 -2
  25. data/lib/selenium/webdriver/common/proxy.rb +0 -0
  26. data/lib/selenium/webdriver/common/search_context.rb +3 -2
  27. data/lib/selenium/webdriver/common/service.rb +30 -113
  28. data/lib/selenium/webdriver/common/service_manager.rb +151 -0
  29. data/lib/selenium/webdriver/common/socket_lock.rb +2 -2
  30. data/lib/selenium/webdriver/common/wait.rb +1 -1
  31. data/lib/selenium/webdriver/devtools.rb +118 -0
  32. data/lib/selenium/webdriver/devtools/accessibility.rb +62 -0
  33. data/lib/selenium/webdriver/devtools/animation.rb +98 -0
  34. data/lib/selenium/webdriver/devtools/application_cache.rb +64 -0
  35. data/lib/selenium/webdriver/devtools/audits.rb +61 -0
  36. data/lib/selenium/webdriver/devtools/background_service.rb +67 -0
  37. data/lib/selenium/webdriver/devtools/browser.rb +123 -0
  38. data/lib/selenium/webdriver/devtools/cache_storage.rb +73 -0
  39. data/lib/selenium/webdriver/devtools/cast.rb +70 -0
  40. data/lib/selenium/webdriver/devtools/console.rb +57 -0
  41. data/lib/selenium/webdriver/devtools/css.rb +165 -0
  42. data/lib/selenium/webdriver/devtools/database.rb +64 -0
  43. data/lib/selenium/webdriver/devtools/debugger.rb +229 -0
  44. data/lib/selenium/webdriver/devtools/device_orientation.rb +53 -0
  45. data/lib/selenium/webdriver/devtools/dom.rb +320 -0
  46. data/lib/selenium/webdriver/devtools/domdebugger.rb +93 -0
  47. data/lib/selenium/webdriver/devtools/domsnapshot.rb +65 -0
  48. data/lib/selenium/webdriver/devtools/domstorage.rb +79 -0
  49. data/lib/selenium/webdriver/devtools/emulation.rb +180 -0
  50. data/lib/selenium/webdriver/devtools/fetch.rb +97 -0
  51. data/lib/selenium/webdriver/devtools/headless_experimental.rb +61 -0
  52. data/lib/selenium/webdriver/devtools/heap_profiler.rb +107 -0
  53. data/lib/selenium/webdriver/devtools/indexed_db.rb +100 -0
  54. data/lib/selenium/webdriver/devtools/input.rb +140 -0
  55. data/lib/selenium/webdriver/devtools/inspector.rb +55 -0
  56. data/lib/selenium/webdriver/devtools/io.rb +59 -0
  57. data/lib/selenium/webdriver/devtools/layer_tree.rb +95 -0
  58. data/lib/selenium/webdriver/devtools/log.rb +66 -0
  59. data/lib/selenium/webdriver/devtools/media.rb +57 -0
  60. data/lib/selenium/webdriver/devtools/memory.rb +86 -0
  61. data/lib/selenium/webdriver/devtools/network.rb +228 -0
  62. data/lib/selenium/webdriver/devtools/overlay.rb +157 -0
  63. data/lib/selenium/webdriver/devtools/page.rb +374 -0
  64. data/lib/selenium/webdriver/devtools/performance.rb +63 -0
  65. data/lib/selenium/webdriver/devtools/profiler.rb +111 -0
  66. data/lib/selenium/webdriver/devtools/runtime.rb +193 -0
  67. data/lib/selenium/webdriver/devtools/schema.rb +46 -0
  68. data/lib/selenium/webdriver/devtools/security.rb +71 -0
  69. data/lib/selenium/webdriver/devtools/service_worker.rb +116 -0
  70. data/lib/selenium/webdriver/devtools/storage.rb +95 -0
  71. data/lib/selenium/webdriver/devtools/system_info.rb +50 -0
  72. data/lib/selenium/webdriver/devtools/target.rb +141 -0
  73. data/lib/selenium/webdriver/devtools/tethering.rb +55 -0
  74. data/lib/selenium/webdriver/devtools/tracing.rb +76 -0
  75. data/lib/selenium/webdriver/devtools/web_audio.rb +70 -0
  76. data/lib/selenium/webdriver/devtools/web_authn.rb +94 -0
  77. data/lib/selenium/webdriver/edge.rb +29 -9
  78. data/lib/selenium/webdriver/{firefox/util.rb → edge_chrome/bridge.rb} +11 -20
  79. data/lib/selenium/webdriver/{common/w3c_options.rb → edge_chrome/driver.rb} +14 -17
  80. data/lib/selenium/webdriver/edge_chrome/options.rb +36 -0
  81. data/lib/selenium/webdriver/edge_chrome/profile.rb +33 -0
  82. data/lib/selenium/webdriver/edge_chrome/service.rb +36 -0
  83. data/lib/selenium/webdriver/{common/w3c_manager.rb → edge_html/driver.rb} +11 -17
  84. data/lib/selenium/webdriver/{edge → edge_html}/options.rb +26 -22
  85. data/lib/selenium/webdriver/{edge → edge_html}/service.rb +2 -6
  86. data/lib/selenium/webdriver/firefox.rb +18 -15
  87. data/lib/selenium/webdriver/firefox/bridge.rb +1 -1
  88. data/lib/selenium/webdriver/firefox/driver.rb +2 -30
  89. data/lib/selenium/webdriver/firefox/extension.rb +8 -0
  90. data/lib/selenium/webdriver/firefox/options.rb +47 -52
  91. data/lib/selenium/webdriver/firefox/profile.rb +7 -78
  92. data/lib/selenium/webdriver/firefox/service.rb +0 -4
  93. data/lib/selenium/webdriver/ie.rb +8 -7
  94. data/lib/selenium/webdriver/ie/driver.rb +0 -32
  95. data/lib/selenium/webdriver/ie/options.rb +10 -33
  96. data/lib/selenium/webdriver/ie/service.rb +5 -9
  97. data/lib/selenium/webdriver/remote.rb +16 -10
  98. data/lib/selenium/webdriver/remote/bridge.rb +34 -42
  99. data/lib/selenium/webdriver/remote/capabilities.rb +22 -6
  100. data/lib/selenium/webdriver/remote/driver.rb +6 -12
  101. data/lib/selenium/webdriver/remote/http/default.rb +9 -4
  102. data/lib/selenium/webdriver/remote/http/persistent.rb +5 -6
  103. data/lib/selenium/webdriver/safari.rb +9 -8
  104. data/lib/selenium/webdriver/safari/bridge.rb +4 -4
  105. data/lib/selenium/webdriver/safari/driver.rb +3 -29
  106. data/lib/selenium/webdriver/safari/options.rb +18 -19
  107. data/lib/selenium/webdriver/safari/service.rb +0 -4
  108. data/lib/selenium/webdriver/support.rb +1 -0
  109. data/lib/selenium/webdriver/support/cdp_client_generator.rb +77 -0
  110. data/lib/selenium/webdriver/support/color.rb +2 -2
  111. data/lib/selenium/webdriver/support/event_firing_bridge.rb +1 -1
  112. data/lib/selenium/webdriver/support/relative_locator.rb +51 -0
  113. data/lib/selenium/webdriver/version.rb +1 -1
  114. data/selenium-webdriver.gemspec +5 -4
  115. metadata +81 -42
  116. data/lib/selenium/webdriver/common/bridge_helper.rb +0 -82
  117. data/lib/selenium/webdriver/common/keyboard.rb +0 -70
  118. data/lib/selenium/webdriver/common/mouse.rb +0 -89
  119. data/lib/selenium/webdriver/common/touch_action_builder.rb +0 -78
  120. data/lib/selenium/webdriver/common/touch_screen.rb +0 -123
  121. data/lib/selenium/webdriver/common/w3c_action_builder.rb +0 -212
  122. data/lib/selenium/webdriver/edge/bridge.rb +0 -76
  123. data/lib/selenium/webdriver/edge/driver.rb +0 -70
  124. data/lib/selenium/webdriver/firefox/binary.rb +0 -110
  125. data/lib/selenium/webdriver/firefox/extension/prefs.json +0 -69
  126. data/lib/selenium/webdriver/firefox/extension/webdriver.xpi +0 -0
  127. data/lib/selenium/webdriver/firefox/launcher.rb +0 -111
  128. data/lib/selenium/webdriver/firefox/legacy/driver.rb +0 -83
  129. data/lib/selenium/webdriver/firefox/marionette/bridge.rb +0 -49
  130. data/lib/selenium/webdriver/firefox/marionette/driver.rb +0 -90
  131. data/lib/selenium/webdriver/firefox/native/linux/amd64/x_ignore_nofocus.so +0 -0
  132. data/lib/selenium/webdriver/firefox/native/linux/x86/x_ignore_nofocus.so +0 -0
  133. data/lib/selenium/webdriver/remote/oss/bridge.rb +0 -594
  134. data/lib/selenium/webdriver/remote/oss/commands.rb +0 -223
  135. data/lib/selenium/webdriver/remote/w3c/bridge.rb +0 -605
  136. data/lib/selenium/webdriver/remote/w3c/capabilities.rb +0 -310
  137. data/lib/selenium/webdriver/remote/w3c/commands.rb +0 -157
@@ -0,0 +1,76 @@
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 ||= Tracing.new(self)
26
+ end
27
+
28
+ class Tracing
29
+ EVENTS = {
30
+ buffer_usage: 'bufferUsage',
31
+ data_collected: 'dataCollected',
32
+ tracing_complete: 'tracingComplete',
33
+ }
34
+
35
+ def initialize(devtools)
36
+ @devtools = devtools
37
+ end
38
+
39
+ def on(event, &block)
40
+ event = EVENTS[event] if event.is_a?(Symbol)
41
+ @devtools.callbacks["Tracing.#{event}"] << block
42
+ end
43
+
44
+ def _end
45
+ @devtools.send_cmd('Tracing.end')
46
+ end
47
+
48
+ def get_categories
49
+ @devtools.send_cmd('Tracing.getCategories')
50
+ end
51
+
52
+ def record_clock_sync_marker(sync_id:)
53
+ @devtools.send_cmd('Tracing.recordClockSyncMarker',
54
+ syncId: sync_id)
55
+ end
56
+
57
+ def request_memory_dump(deterministic: nil)
58
+ @devtools.send_cmd('Tracing.requestMemoryDump',
59
+ deterministic: deterministic)
60
+ end
61
+
62
+ def start(categories: nil, options: nil, buffer_usage_reporting_interval: nil, transfer_mode: nil, stream_format: nil, stream_compression: nil, trace_config: nil)
63
+ @devtools.send_cmd('Tracing.start',
64
+ categories: categories,
65
+ options: options,
66
+ bufferUsageReportingInterval: buffer_usage_reporting_interval,
67
+ transferMode: transfer_mode,
68
+ streamFormat: stream_format,
69
+ streamCompression: stream_compression,
70
+ traceConfig: trace_config)
71
+ end
72
+
73
+ end # Tracing
74
+ end # DevTools
75
+ end # WebDriver
76
+ end # Selenium
@@ -0,0 +1,70 @@
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 ||= WebAudio.new(self)
26
+ end
27
+
28
+ class WebAudio
29
+ EVENTS = {
30
+ context_created: 'contextCreated',
31
+ context_will_be_destroyed: 'contextWillBeDestroyed',
32
+ context_changed: 'contextChanged',
33
+ audio_listener_created: 'audioListenerCreated',
34
+ audio_listener_will_be_destroyed: 'audioListenerWillBeDestroyed',
35
+ audio_node_created: 'audioNodeCreated',
36
+ audio_node_will_be_destroyed: 'audioNodeWillBeDestroyed',
37
+ audio_param_created: 'audioParamCreated',
38
+ audio_param_will_be_destroyed: 'audioParamWillBeDestroyed',
39
+ nodes_connected: 'nodesConnected',
40
+ nodes_disconnected: 'nodesDisconnected',
41
+ node_param_connected: 'nodeParamConnected',
42
+ node_param_disconnected: 'nodeParamDisconnected',
43
+ }
44
+
45
+ def initialize(devtools)
46
+ @devtools = devtools
47
+ end
48
+
49
+ def on(event, &block)
50
+ event = EVENTS[event] if event.is_a?(Symbol)
51
+ @devtools.callbacks["WebAudio.#{event}"] << block
52
+ end
53
+
54
+ def enable
55
+ @devtools.send_cmd('WebAudio.enable')
56
+ end
57
+
58
+ def disable
59
+ @devtools.send_cmd('WebAudio.disable')
60
+ end
61
+
62
+ def get_realtime_data(context_id:)
63
+ @devtools.send_cmd('WebAudio.getRealtimeData',
64
+ contextId: context_id)
65
+ end
66
+
67
+ end # WebAudio
68
+ end # DevTools
69
+ end # WebDriver
70
+ end # Selenium
@@ -0,0 +1,94 @@
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 ||= WebAuthn.new(self)
26
+ end
27
+
28
+ class WebAuthn
29
+
30
+ def initialize(devtools)
31
+ @devtools = devtools
32
+ end
33
+
34
+ def on(event, &block)
35
+ event = EVENTS[event] if event.is_a?(Symbol)
36
+ @devtools.callbacks["WebAuthn.#{event}"] << block
37
+ end
38
+
39
+ def enable
40
+ @devtools.send_cmd('WebAuthn.enable')
41
+ end
42
+
43
+ def disable
44
+ @devtools.send_cmd('WebAuthn.disable')
45
+ end
46
+
47
+ def add_virtual_authenticator(options:)
48
+ @devtools.send_cmd('WebAuthn.addVirtualAuthenticator',
49
+ options: options)
50
+ end
51
+
52
+ def remove_virtual_authenticator(authenticator_id:)
53
+ @devtools.send_cmd('WebAuthn.removeVirtualAuthenticator',
54
+ authenticatorId: authenticator_id)
55
+ end
56
+
57
+ def add_credential(authenticator_id:, credential:)
58
+ @devtools.send_cmd('WebAuthn.addCredential',
59
+ authenticatorId: authenticator_id,
60
+ credential: credential)
61
+ end
62
+
63
+ def get_credential(authenticator_id:, credential_id:)
64
+ @devtools.send_cmd('WebAuthn.getCredential',
65
+ authenticatorId: authenticator_id,
66
+ credentialId: credential_id)
67
+ end
68
+
69
+ def get_credentials(authenticator_id:)
70
+ @devtools.send_cmd('WebAuthn.getCredentials',
71
+ authenticatorId: authenticator_id)
72
+ end
73
+
74
+ def remove_credential(authenticator_id:, credential_id:)
75
+ @devtools.send_cmd('WebAuthn.removeCredential',
76
+ authenticatorId: authenticator_id,
77
+ credentialId: credential_id)
78
+ end
79
+
80
+ def clear_credentials(authenticator_id:)
81
+ @devtools.send_cmd('WebAuthn.clearCredentials',
82
+ authenticatorId: authenticator_id)
83
+ end
84
+
85
+ def set_user_verified(authenticator_id:, is_user_verified:)
86
+ @devtools.send_cmd('WebAuthn.setUserVerified',
87
+ authenticatorId: authenticator_id,
88
+ isUserVerified: is_user_verified)
89
+ end
90
+
91
+ end # WebAuthn
92
+ end # DevTools
93
+ end # WebDriver
94
+ end # Selenium
@@ -19,25 +19,45 @@
19
19
 
20
20
  require 'net/http'
21
21
 
22
- require 'selenium/webdriver/edge/driver'
23
- require 'selenium/webdriver/edge/options'
24
-
25
22
  module Selenium
26
23
  module WebDriver
27
- module Edge
24
+ module EdgeHtml
25
+ autoload :Driver, 'selenium/webdriver/edge_html/driver'
26
+ autoload :Options, 'selenium/webdriver/edge_html/options'
27
+ autoload :Service, 'selenium/webdriver/edge_html/service'
28
+
28
29
  def self.driver_path=(path)
29
30
  WebDriver.logger.deprecate 'Selenium::WebDriver::Edge#driver_path=',
30
- 'Selenium::WebDriver::Edge::Service#driver_path='
31
+ 'Selenium::WebDriver::Edge::Service#driver_path=',
32
+ id: :driver_path
31
33
  Selenium::WebDriver::Edge::Service.driver_path = path
32
34
  end
33
35
 
34
36
  def self.driver_path
35
37
  WebDriver.logger.deprecate 'Selenium::WebDriver::Edge#driver_path',
36
- 'Selenium::WebDriver::Edge::Service#driver_path'
38
+ 'Selenium::WebDriver::Edge::Service#driver_path',
39
+ id: :driver_path
37
40
  Selenium::WebDriver::Edge::Service.driver_path
38
41
  end
39
- end # Edge
42
+ end # EdgeHtml
43
+
44
+ module EdgeChrome
45
+ autoload :Bridge, 'selenium/webdriver/edge_chrome/bridge'
46
+ autoload :Driver, 'selenium/webdriver/edge_chrome/driver'
47
+ autoload :Profile, 'selenium/webdriver/edge_chrome/profile'
48
+ autoload :Options, 'selenium/webdriver/edge_chrome/options'
49
+ autoload :Service, 'selenium/webdriver/edge_chrome/service'
50
+
51
+ def self.path=(path)
52
+ Platform.assert_executable path
53
+ @path = path
54
+ end
55
+
56
+ def self.path
57
+ @path ||= nil
58
+ end
59
+ end # EdgeChrome
60
+
61
+ Edge = EdgeHtml # Alias EdgeHtml as Edge for now
40
62
  end # WebDriver
41
63
  end # Selenium
42
-
43
- require 'selenium/webdriver/edge/service'
@@ -17,30 +17,21 @@
17
17
  # specific language governing permissions and limitations
18
18
  # under the License.
19
19
 
20
+ require 'selenium/webdriver/chrome/bridge'
21
+
20
22
  module Selenium
21
23
  module WebDriver
22
- module Firefox
23
- # @api private
24
- module Util
25
- module_function
24
+ module EdgeChrome
25
+ class Bridge < WebDriver::Chrome::Bridge
26
26
 
27
- def app_data_path
28
- case Platform.os
29
- when :windows
30
- "#{ENV['APPDATA']}\\Mozilla\\Firefox"
31
- when :macosx
32
- "#{Platform.home}/Library/Application Support/Firefox"
33
- when :unix, :linux
34
- "#{Platform.home}/.mozilla/firefox"
35
- else
36
- raise "Unknown os: #{Platform.os}"
37
- end
38
- end
27
+ COMMANDS = WebDriver::Chrome::Bridge::COMMANDS.merge(
28
+ send_command: [:post, 'session/:session_id/ms/cdp/execute']
29
+ ).freeze
39
30
 
40
- def stringified?(str)
41
- str =~ /^".*"$/
31
+ def commands(command)
32
+ COMMANDS[command] || super
42
33
  end
43
- end # Util
44
- end # Firefox
34
+ end # Bridge
35
+ end # EdgeChrome
45
36
  end # WebDriver
46
37
  end # Selenium
@@ -17,29 +17,26 @@
17
17
  # specific language governing permissions and limitations
18
18
  # under the License.
19
19
 
20
+ require 'selenium/webdriver/chrome/driver'
21
+
20
22
  module Selenium
21
23
  module WebDriver
22
- class W3COptions < Options
23
-
24
- #
25
- # Get the cookie with the given name
26
- #
27
- # @param [String] name the name of the cookie
28
- # @return [Hash, nil] the cookie, or nil if it wasn't found.
29
- #
30
-
31
- def cookie_named(name)
32
- convert_cookie(@bridge.cookie(name))
33
- end
24
+ module EdgeChrome
34
25
 
35
26
  #
36
- # Delete all cookies
27
+ # Driver implementation for EdgeChrome.
28
+ # @api private
37
29
  #
38
30
 
39
- def delete_all_cookies
40
- @bridge.delete_all_cookies
41
- end
31
+ class Driver < Selenium::WebDriver::Chrome::Driver
32
+ def browser
33
+ :edge_chrome
34
+ end
42
35
 
43
- end # WC3Options
36
+ def bridge_class
37
+ Bridge
38
+ end
39
+ end # Driver
40
+ end # EdgeChrome
44
41
  end # WebDriver
45
42
  end # Selenium
@@ -0,0 +1,36 @@
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
+ require 'selenium/webdriver/chrome/options'
21
+
22
+ module Selenium
23
+ module WebDriver
24
+ module EdgeChrome
25
+ class Options < Selenium::WebDriver::Chrome::Options
26
+ BROWSER = 'MSEdge'
27
+
28
+ private
29
+
30
+ def binary_path
31
+ EdgeChrome.path
32
+ end
33
+ end # Options
34
+ end # EdgeChrome
35
+ end # WebDriver
36
+ end # Selenium
@@ -0,0 +1,33 @@
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
+ require 'selenium/webdriver/chrome/profile'
21
+
22
+ module Selenium
23
+ module WebDriver
24
+ module EdgeChrome
25
+ #
26
+ # @private
27
+ #
28
+
29
+ class Profile < Selenium::WebDriver::Chrome::Profile
30
+ end # Profile
31
+ end # EdgeChrome
32
+ end # WebDriver
33
+ end # Selenium