I'm trying to execute a code that scrolls down an inner div to a certain element. That just works if:
Options().headless = False
But as you guys know, that isn't good to the performance of the whole thing.
The code that do the scroll is:
element = driver1.find_element_by_xpath(reference)
driver1.execute_script("arguments[0].scrollIntoView();", element)
How can I do something like that, but with the headless equals to True?