Skip to Main Content

General Development Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Scripts are failing intermittently with TabManager_getCurrentTab Error: undefined

User_AA1TDAug 19 2019 — edited Aug 19 2019

Hi,

While doing automation of our products we found a issue that tab tab index of application is keep changing so Openscript tem provided us tabmanger function mentioned below. but now scripts are failing intermittently with error saying 'TabManager_getCurrentTab Error: undefined'. can you please help us to resolve this issue as it is affecting our automation.

Function:

private static String[] TabManager_functions = new String[]{

"function TabManager_getCurrentTab(){",

"  retV = [];",

"  try{",

"    var regId=getCurrentlyActiveRegion();",

"    var comp = AdfPage.PAGE.findComponent(regId);",

"    if(comp){",

"    retV[0] =  comp.getAbsoluteLocator();",

"     }",

"     else{",

"         throw new Error(\"Cannot find region by id: \" + regId);",

"     }",

"    return retV;",

"  }catch(err){",

"     marshalResult.setError(retV, err.description);",

"  }",

"  return retV;",

"}",

"",

"function isGetCurrentTabPresent(){",

"  var ret = (typeof getCurrentlyActiveRegion==\"function\");",

"   return ret;",

"}",

    };

Comments

Post Details

Added on Aug 19 2019
0 comments
244 views