scrapy-selenium icon indicating copy to clipboard operation
scrapy-selenium copied to clipboard

Selenium window size arguments not working

Open pitchourou opened this issue 5 years ago • 1 comments

Hi guys, thanks for the middleware

I have a problem with setting window size , I want to have mobile version of a website but setting user-agent is not enough, but it works when I use Selenium with set_window_size . Probblem is when I use scrapy-selenium there is no way to use set_window_size selenium command, I tried setting arguments on the settings.py but not working:

SELENIUM_DRIVER_ARGUMENTS=['-window-size=375x667', '-headless']

Any idea how to fix that

pitchourou avatar Jan 05 '19 17:01 pitchourou

--window-size=375,667

cherijs avatar Aug 04 '20 20:08 cherijs