Close window index 1

Hi,

I have a test case where it clicks a link, does some stuff in a pop-up window and then is meant to close that window (index 1) and switch back to the main window (index 0). Whenever it closes window with index 1 and goes to proceed, it then fails an says “no such window: target window already closed”.

Is this a bug?

Not sure what you’re doing but the APIs you’re talking about work just fine.

Rather than make us guess what you’re doing, post your code. Thanks.

1 Like