08-06-2008, 05:21 PM
Yes Prince, that is what i meant. I am having a set of values in the data table which i am calling through the script using the following statement:
By using this i am calling the values of the next next rows continously. If i use the same in the loop, the last value that will get set will be Back. So my QTP looks for this particular word Back instead of Save which i used it in the previous If condition. I can very well use
to set the value for Save. But the same will become too complex when there are suppose say 10 buttons in the next next row of data table. So i wanted an alternate way of doing that. Is it still possible to use If else and Select statements?
Please help.
Code:
If datatable.Value("English", dtGlobalSheet)="Save"
Then
Browser("Browser").Page("Page").WebButton("Save").Click
DataTable.SetNextRow
End If
If datatable.Value("English", dtGlobalSheet)="Back"
Then
Browser("Browser").Page("Page").WebButton("Back").Click
DataTable.SetNextRow
End If
By using this i am calling the values of the next next rows continously. If i use the same in the loop, the last value that will get set will be Back. So my QTP looks for this particular word Back instead of Save which i used it in the previous If condition. I can very well use
Code:
DataTable.SetPreviousRow
to set the value for Save. But the same will become too complex when there are suppose say 10 buttons in the next next row of data table. So i wanted an alternate way of doing that. Is it still possible to use If else and Select statements?
Please help.