IRISQATeam
12 years agoContributor
Accessing a specified row in excel
I am new to TestComplete, I am able to access all the rows from the excel sheet by two ways
1. By Drive Method
Driver = DDT.ExcelDriver("Excel File Path","Sheet Name")
DDT.CurrentDriver.DriveMethod("Unit1.Test1")
2. By While Loop
Driver = DDT.ExcelDriver("Excel File Path","Sheet Name")
While Not DDT.CurrentDriver.EOF()
Test1
DDT.CurrentDriver.Next()
WEnd
See attached screenshot, if I need to access only second row, how can I access a specific row?
1. By Drive Method
Driver = DDT.ExcelDriver("Excel File Path","Sheet Name")
DDT.CurrentDriver.DriveMethod("Unit1.Test1")
2. By While Loop
Driver = DDT.ExcelDriver("Excel File Path","Sheet Name")
While Not DDT.CurrentDriver.EOF()
Test1
DDT.CurrentDriver.Next()
WEnd
See attached screenshot, if I need to access only second row, how can I access a specific row?