Skip to content

Commit 2c071c8

Browse files
[py] Fix type hint on chrome option method (#9840)
A list of strings is also allowed to be passed here https://sites.google.com/a/chromium.org/chromedriver/capabilities Co-authored-by: David Burns <david.burns@theautomatedtester.co.uk>
1 parent 41dfb46 commit 2c071c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/chromium/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def experimental_options(self) -> dict:
121121
"""
122122
return self._experimental_options
123123

124-
def add_experimental_option(self, name: str, value: Union[str, int, dict]):
124+
def add_experimental_option(self, name: str, value: Union[str, int, dict, List[str]]):
125125
"""
126126
Adds an experimental option which is passed to chromium.
127127

0 commit comments

Comments
 (0)