Skip to content

Commit 057e2bc

Browse files
committed
rb: update edge capabilities
1 parent 68b4efa commit 057e2bc

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

rb/lib/selenium/webdriver/edge/bridge.rb

-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def initialize(opts = {})
4949
}
5050

5151
remote_opts.merge!(:http_client => http_client) if http_client
52-
5352
super(remote_opts)
5453
end
5554

@@ -84,8 +83,6 @@ def create_capabilities(opts)
8483
raise ArgumentError, "unknown option#{'s' if opts.size != 1}: #{opts.inspect}"
8584
end
8685

87-
edge_options = caps['edgeOptions'] || {}
88-
caps['edgeOptions'] = edge_options
8986
caps['page_load_strategy'] = page_load_strategy
9087

9188
caps

rb/lib/selenium/webdriver/remote/capabilities.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ def chrome(opts = {})
8080

8181
def edge(opts = {})
8282
new({
83-
:browser_name => "edge",
84-
:platform => :windows
83+
:browser_name => "edge",
84+
:platform => :windows,
85+
:javascript_enabled => true
8586
}.merge(opts))
8687
end
8788

0 commit comments

Comments
 (0)