Answer the question
In order to leave comments, you need to log in
Headless mode does not work in selenium python. What to do?
I have a code with selenium and it works perfectly, but when I turn on headless mode: how do I get an error:options.headless = True
[0915/204252.947:INFO:CONSOLE(4245)] "LegacyDataMixin will be applied to all legacy elements.
Set `_legacyUndefinedCheck: true` on element class to enable.", source: https://www.youtube.com/s/desktop/0d39de7f/jsbin/desktop_polymer.vflset/desktop_polymer.js (4245)
[0915/204253.389:INFO:CONSOLE(0)] "Refused to display 'https://accounts.google.com/' in a frame because it set 'X-Frame-Options' to 'deny'.", source: chrome-error://chromewebdata/ (0)
[0915/204257.441:INFO:CONSOLE(4245)] "LegacyDataMixin will be applied to all legacy elements.
Set `_legacyUndefinedCheck: true` on element class to enable.", source: https://www.youtube.com/s/desktop/0d39de7f/jsbin/desktop_polymer.vflset/desktop_polymer.js (4245)
[0915/204301.731:INFO:CONSOLE(0)] "The resource https://i.ytimg.com/generate_204 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.", source: https://www.youtube.com/ (0)
[0915/204307.304:ERROR:web_contents_delegate.cc(226)] WebContentsDelegate::CheckMediaAccessPermission: Not supported.
[0915/204307.304:ERROR:web_contents_delegate.cc(226)] WebContentsDelegate::CheckMediaAccessPermission: Not supported.
Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="placeholder-area"]"}
(Session info: headless chrome=93.0.4577.63)
Answer the question
In order to leave comments, you need to log in
Message: no such element: Unable to locate element:
Message: No such element: Cannot find element:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question