How do you parameterize object locators in TestComplete
I am using data driven test methods. Some of the links in our web app are titles of works and include the title string in the link locator, How can I parameterize the locator to use the data string...
To set the locator property, I used the following. %SearchResultsTitleLocator%
NOTE: you do not use the "Project.Variables." prefix when referencing the variable here. It is expecting this to be a project variable. Adding the prefix will cause a runtime error. Also, you have to enclose the variable name with "%".
Now when I run my test, I can select the list element by the title name and get the specific Item that I am looking for.