I have a python script which uses Google Chrome to perform some tasks in Youtube Studio. The script works as expected when I disable options.add_argument('--headless'), but when I use it with the headless option it's unable to find some elements, so I decided to take an screenshot to see what was going on.
It looks like, for some reason, when I use the headless mode, the executed Chrome version is older.
I have also tried to change the user agent: options.add_argument("--user-agent=User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"), but it doesn't work.
How can I execute an updated version of Chrome using headless mode?
