So I'm trying some stuff out with selenium and I really want it to be quick.
So my thought is that running it with headless chrome would make my script faster.
First is that assumption correct, or does it not matter if i run my script with a headless driver?
Anyways I still want to get it to work to run headless, but I somehow can't, I tried different things and most suggested that it would work as said here in the October update
How to configure ChromeDriver to initiate Chrome browser in Headless mode through Selenium?
But when I try that, I get weird console output and it still doesn't seem to work.
Any tipps appreciated.
Best Answer
To run chrome-headless just add
--headless
viachrome_options.add_argument
, i.e.:Try using chrome options like
--disable-extensions
or--disable-gpu
and benchmark it, but I wouldn't count with much improvement.References: headless-chrome