Close tab and return to previous window

If one window is open and above that one popup tab is open after closing tab. how to return to previous first window ?

Can you post a screenshot of this situation?

If one window is open and above that one popup tab is open after closing tab


I want to return to previous first window and click on Excel button but this action not perform because not connected to that previous window. Also I try iframe, frame, and tab documentation to resolve this issue.

@Plankton give reply to above screenshot.

This is not really a new browser tab, but more of an popup window, or? If it would be a browser tab, you could just use selectWindow | TAB=CLOSE.

So to automate this popup window, I recommend to use desktop automation feature auf Ui.Vision - it helps also with web automation sometimes :wink:

In your macro, add:

  • XDesktopautomation | true
  • Xclick | ok
  • XDesktopautomation | false