Skip to content

Commit bd5ca6c

Browse files
Fixed headless option not being passed to RemoteWebDriver constructor desired_capatibilities argument by ChromiumDriver. (#9208)
Co-authored-by: David Burns <[email protected]>
1 parent 95707f2 commit bd5ca6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py/selenium/webdriver/chromium/webdriver.py

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def __init__(self, browser_name, vendor_prefix,
7575
if desired_capabilities:
7676
for key, value in desired_capabilities.items():
7777
options.set_capability(key, value)
78+
else:
79+
desired_capabilities = options.to_capabilities()
7880

7981
if options._ignore_local_proxy:
8082
_ignore_proxy = options._ignore_local_proxy

0 commit comments

Comments
 (0)