From 314db2086ef388faa1da3c1d55a7f61cb80166ff Mon Sep 17 00:00:00 2001 From: Vladimir Stajilov Date: Fri, 16 Dec 2022 12:00:12 +0200 Subject: [PATCH] Used options instead of {driver}_options --- scrapy_selenium/middlewares.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy_selenium/middlewares.py b/scrapy_selenium/middlewares.py index 201db2c..7b584ac 100644 --- a/scrapy_selenium/middlewares.py +++ b/scrapy_selenium/middlewares.py @@ -55,7 +55,7 @@ def __init__(self, driver_name, driver_executable_path, if driver_executable_path is not None: driver_kwargs = { 'executable_path': driver_executable_path, - f'{driver_name}_options': driver_options + f'options': driver_options } self.driver = driver_klass(**driver_kwargs) # remote driver