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...
Both of your replies have been helpful but not the complete answer.
In the "Edit Name Mapping Item" window, I want to create a selector that will pull a string value from a data source as shown in the attached screenshot.
The highlighted selector works the best but only when the text value matches.
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.