Click in headless mode not supported?

I have a simple sequence, where i open a headless browser (Chrome), and then run certain operations. But click activity (UI Automation/Application/Click) gives me this error:
A browser started by WebDriver in headless mode does not support this kind of operation.

Is it really true that we cannot click a button in headless mode?

As i can see from docs (About the WebDriver Protocol) a click should also work fine…

Welcome to the forum

Headless automation cannot function with some activities which use hardware events (such as Click or Type Into ) in their default state. They must be configured to use the SimulateClick, SimulateType , or SimulateHover properties, or the Send Window Messages property.

taken from:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.