Forum Discussion

royd's avatar
royd
Regular Contributor
8 years ago

Handling different values of the same object attribute, in two areas of the application?

Using TestComplete 12.3, JScript.   The menu panel of our application "idStr" (id) value are different in two areas of our application ("mainMenuInner" and "navMenuInner" repectively). Is there a w...
  • AlexKaras's avatar
    8 years ago

    Hi Dave,

     

    Two more options:

    a) Wildcards: e.g. var mainMenu = page.Find("idStr", "*MenuInner", 10, 1000);

    b) Regular expressions: e.g. var mainMenu = page.Find("idStr", "regexp: (mainMenuInner)|(navMenuInner)", 10, 1000);