Skip to content

Commit 7b42f86

Browse files
Fix 'webview2' browser name for Edge py options. (#9090)
Co-authored-by: David Burns <[email protected]>
1 parent 8b4e370 commit 7b42f86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

py/selenium/webdriver/edge/options.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def to_capabilities(self) -> dict:
5353
if self._use_chromium:
5454
caps = super(Options, self).to_capabilities()
5555
if self._use_webview:
56-
caps['browserName'] = 'WebView2'
56+
caps['browserName'] = 'webview2'
5757
else:
5858
caps['platform'] = 'windows'
5959

py/test/unit/selenium/webdriver/edge/edge_options_tests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ def test_use_webview():
7171
options.use_chromium = True
7272
options.use_webview = True
7373
caps = options.to_capabilities()
74-
assert caps['browserName'] == "WebView2"
74+
assert caps['browserName'] == "webview2"

0 commit comments

Comments
 (0)