Skip to content

Commit 7ac8ba7

Browse files
authored
Merge pull request #1 from abhinav-bhardwaj/develop
Fixes TypeError: __init__() got an unexpected keyword argument 'firefox_options'
2 parents 2e557f6 + 841b106 commit 7ac8ba7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scrapy_selenium/middlewares.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,14 @@ def __init__(self, driver_name, driver_executable_path,
4747
driver_options.add_argument(argument)
4848

4949
driver_kwargs = {
50-
'executable_path': driver_executable_path,
51-
f'{driver_name}_options': driver_options
50+
'executable_path': driver_executable_path
5251
}
5352

5453
# locally installed driver
5554
if driver_executable_path is not None:
5655
driver_kwargs = {
5756
'executable_path': driver_executable_path,
58-
f'{driver_name}_options': driver_options
57+
f'options': driver_options
5958
}
6059
self.driver = driver_klass(**driver_kwargs)
6160
# remote driver

0 commit comments

Comments
 (0)