Forum Discussion

bdrummond's avatar
bdrummond
Contributor
7 years ago

TC thinks of popup menu on a text box.

Not long after I sorted an Object.Saves() method issue, I came across a strange issue where when a test is running in anything near my "titleTextBox" object TC comeback with an error of "Cannot obtai...
  • bdrummond's avatar
    bdrummond
    7 years ago

    Just had a GoToMeeting with TestComplete support staff - it seems that this is something to do with the App i was testing.

     

    Although - As i understand it, they will look at this and escalate it to their developer and will get back to me as soon as it's been looked at.

     

    In the meanwhile, a workaround is to create error handler built into the project.

     

    function GeneralEvents_OnLogError(Sender, LogParams)
    {
      //if TC throw the usual "Cannot obtain the popup menu on the title text box object
      if (LogParams.MessageText == "Cannot obtain the popup menu.")
      {
        //ignore the error and dont log it in Test Log.
        LogParams.Locked = true;
      }
    }

    Will be using this for a while, i think, as the error is not a show stopper.

     

    BD