Skip to content

Commit 497cde3

Browse files
committed
[py] remove non-w3c compliant parameters from default capabilities
1 parent 13114e1 commit 497cde3

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

py/selenium/webdriver/common/desired_capabilities.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,32 +55,24 @@ class DesiredCapabilities(object):
5555

5656
INTERNETEXPLORER = {
5757
"browserName": "internet explorer",
58-
"version": "",
59-
"platform": "WINDOWS",
58+
"platformName": "WINDOWS",
6059
}
6160

6261
EDGE = {
6362
"browserName": "MicrosoftEdge",
64-
"version": "",
65-
"platform": "ANY"
6663
}
6764

6865
CHROME = {
6966
"browserName": "chrome",
70-
"version": "",
71-
"platform": "ANY",
7267
}
7368

7469
OPERA = {
7570
"browserName": "opera",
76-
"version": "",
77-
"platform": "ANY",
7871
}
7972

8073
SAFARI = {
8174
"browserName": "safari",
82-
"version": "",
83-
"platform": "MAC",
75+
"platformName": "MAC",
8476
}
8577

8678
HTMLUNIT = {

py/test/unit/selenium/webdriver/remote/new_session_tests.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ def test_always_match_if_2_of_the_same_options():
8787
"alwaysMatch": {
8888
"browserName": "chrome",
8989
"pageLoadStrategy": "normal",
90-
"platform": "ANY",
91-
"version": ""
9290
},
9391
"firstMatch": [
9492
{"goog:chromeOptions": {"args": ["foo"], "extensions": []}},
@@ -109,8 +107,6 @@ def test_first_match_when_2_different_option_types():
109107
"alwaysMatch": {"pageLoadStrategy": "normal"},
110108
"firstMatch": [
111109
{"browserName": "chrome",
112-
"platform": "ANY",
113-
"version": "",
114110
"goog:chromeOptions": {"extensions": [], "args": []}},
115111
{"browserName": "firefox",
116112
"acceptInsecureCerts": True,

0 commit comments

Comments
 (0)