Is Selenium Headless the Best Way to Run Automated Tests Without a GUI? or How Reliable is Selenium H

16 Replies, 1286 Views

Headless is a mixed bag. Speed? Slightly better. Stability? Worse.

Some sites use JS to detect headless mode and block you. Try adding `--disable-blink-features=AutomationControlled`.

For lazy loading, `window.scrollTo()` might help force content to load.

But tbh, if your script works in normal mode, just stick with it unless you *need* headless.

Messages In This Thread



Users browsing this thread: 1 Guest(s)