Error on mode headless


when I run my tests in headless mode. I have the error 'Unable to click on object ‘Object Repository/XXXX’; the Object Repository is not recognized.

Knowing that it works well in web version with chrome.

I add ‘wait for element present’ method but I still have this error.

Any help please!!!


I think that you can try WebUI.maximizeWindow(), otherwise I will ask my team if anyone faces it.

This won’t work with the headless mode, since there is no virtual display present from the driver point of view.
It should set the windows size instead, with and option like "--window-size=1920,1200"
By default, headless mode I think will set it to 800x600 which is very small for most of the use cases.

It works for me.
Thank you!