selectWindow TAB=1 randomly throws an error

I agree with @newuserkantu - in addition, here is another solution: What you can do this too catch the sporadic error and then rerun this part of the macro.

To do so, you can use the ${!current_tab_number} or
${!current_tab_number_relative} internal variables to check if you are on correct tab. If the tab failed to open, this tab number would be different than usual.

1 Like