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?
1 Like
If you can click it by clicking outsite, try clicking another element.
Or you can trigger using I.executeScript() to inject javascript on browser.
Thank you. I executescipt is working well now. Thank you for the hint.
1 Like