Data Driven Loop with Image Link Variables from Excel
I currently have a Data Driven Loop set up to run through a variety of different variables from an Excel file. I have a step in the loop test that requires clicking an image object to go to the next step. Right now I have one image object hard-coded in the Keyword Test but the selected image object needs to change based on the scenario for each separate row of the Excel sheet.
Is it possible to enter something in a column on the Excel sheet for the desired image object so TestComplete knows which image object I want to select?
The object names are very long: Aliases.firefox.pageMeterSele.formAppform.panelRowWrapper.panelRow.panelRowContainerFull.panelConstrain.imageMeterplus2Jpg
I figured out a way to accomplish my task without using the FindChild method by using a series of nested If...Then statements.
The logic looks like this:
If... [spreadsheet lists this word]
then... click this object.
Else
If... [spreadsheet lists this other word]
then... click this other object...
Else
return