Go to the next tab if the current one is not asking for a username and password

You can use verify Element Exits to check for the password box.

If it is not there, ${statusOK} becomes FALSE. Then you can use IF | ${statusOK} = "false" to open the next tab.