How to define multiple objects in one screen
Hello, we are building a test script for one Web based application screen where one specific column values need to check. By using object spy I have defined first row objects and refering same in script code. But to test all rows in column, I need to define same number of objects.
Is there any way if I can change first row object parameters during runtime so it can refer other rows data ?
Any suggestion will be helpful.
What type of table is this? If we're talking standard table classes (WebTable, WbfTable), consider using GetCellData and iterate through each of the rows based on the returned RowCount.
Otherwise if you're doing something with random WebElements (say, each element for Row 1 represents each column value), you could add an index property (ordinal identifier) to each and use .SetTOProperty on the index property to update the index would loosely represents your current row. I don't recommend this method, but it can work.