Shorten Object repository Address

Hi Guys!

Is there a way to shorten a repetetive OR Address?
My Idea is like this:

*Add a parent object*
{MyHusky} = findTestObject(‘LookupTables/Dogs/Huskies’)

*then the script will look like something like this.

WebUI.waitForElementVisible({Myhusky}/Black’),5)

Thanks and Regards,
AJ

You can do this now:

def prefix = 'LookupTables/Dogs/Huskies'
WebUI.waitForElementVisible(findTestObject("${prefix}/lack"),5)
1 Like