From 2c071c84c26aee9799e368a78dfafd1422f98350 Mon Sep 17 00:00:00 2001 From: Alex <72409387+fergushev@users.noreply.github.com> Date: Mon, 20 Sep 2021 09:55:11 -0600 Subject: [PATCH] [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 --- py/selenium/webdriver/chromium/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/selenium/webdriver/chromium/options.py b/py/selenium/webdriver/chromium/options.py index 12c7be135d99e..3edf2655462aa 100644 --- a/py/selenium/webdriver/chromium/options.py +++ b/py/selenium/webdriver/chromium/options.py @@ -121,7 +121,7 @@ def experimental_options(self) -> dict: """ return self._experimental_options - def add_experimental_option(self, name: str, value: Union[str, int, dict]): + def add_experimental_option(self, name: str, value: Union[str, int, dict, List[str]]): """ Adds an experimental option which is passed to chromium.