Skip to content

Commit

Permalink
Fix capabilties to support macOS platform (#7980)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Lobanov authored Jan 30, 2020
1 parent 21246c9 commit b51810e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions javascript/webdriver/capabilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ webdriver.Capabilities.ie = function() {
*/
webdriver.Capabilities.edge = function() {
return new webdriver.Capabilities().
set(webdriver.Capability.BROWSER_NAME, webdriver.Browser.EDGE).
set(webdriver.Capability.PLATFORM, 'WINDOWS');
set(webdriver.Capability.BROWSER_NAME, webdriver.Browser.EDGE);
};


Expand Down
2 changes: 1 addition & 1 deletion py/selenium/webdriver/common/desired_capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class DesiredCapabilities(object):
EDGE = {
"browserName": "MicrosoftEdge",
"version": "",
"platform": "WINDOWS"
"platform": "ANY"
}

CHROME = {
Expand Down

0 comments on commit b51810e

Please sign in to comment.