Fixes TypeError: __init__() got an unexpected keyword argument 'firefox_options'#101
Fixes TypeError: __init__() got an unexpected keyword argument 'firefox_options'#101abhinav-bhardwaj wants to merge 2 commits intoclemfromspace:developfrom
Conversation
|
I want to use options (for example, '-headless'), but now they are ignored. |
Did you try the latest code update that I have committed? |
|
Thanks for this, works like a charm after the file change. |
Yes, now it works. Thanks. |
|
While waiting on this to be merged ... which version of selenium & scrapy-selenium don't have this issue? thanks |
|
so, problem is in selenium version: the browser option parameter firefox_options was deprecated in Selenium 3.8.0 If you use newest version: i tested the package today - the problem is in place. |
|
Hello! Any chance for this to get merged? |
|
@clemfromspace any idea when this will be merged and updated? |
|
This PR should be merged as soon as possible. it is critical. ^ ^ |
|
@abhinav-bhardwaj can you please review and merge this? |
@samlexxy actually I'm not the maintainer of this repo, so I can't merge. Though other people can review and approve this but they also can't merge. |
perhaps @clemfromspace will be kind enough to look into this |
|
self.driver = driver_klass(**driver_kwargs) |
you'll need to edit your scrapy_selenium middle file.. follow this link https://github.com/clemfromspace/scrapy-selenium/pull/101/files |
Fixes #100
Tested on
Selenium Version - 4.0.0
scrapy-selenium version - 0.0.7
Scrapy version - 2.5.1
Python version - 3.8
OS - Ubuntu 20.04.2 LTS