Using variables in Test Objects

There’s no way to simply reference a variable as a property on the Test Object so I can “find object by”?

For example:

text=[variable]