Salil, you will need to change your script to the following:
var tab_text = session.findById("wnd[0]/usr/tabsTAXI_TABSTRIP*/tabpT\\06").text;
if(tab_text !== "Billing plan"){
session.utils.changeFlavor ("0050569040F81EE69A8DA25D94091A59");
}
If there are any errors, kindly open the developer tools console and include the contents of the error.
Best regards
Kranthi
SAP Screen Personas Team
Message was edited by: Kranthi Kumar Muppala Changed the condition so, the switch happens if the tab's text is not 'Billing plan'. Change it to your requirement if different.