In my test I need to close/hide a layered window/popup. In my case it is a sidemenu. This do not contain any “close” button so I have to close it by code. In common usage I can close/hide the layer by click somewhere outside the layer. But how to do this with codeceptJS? Is there a “ghost” click possible? Or can I hide elements with it?
If you can click it by clicking outsite, try clicking another element.
Thank you. I executescipt is working well now. Thank you for the hint.