Issue with clicking on button using JavaScript

Default window size in headless mode is 800x600, so that might be the reason for the other-element-would-receive-click.

You can set the size here:

1 Like