Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Script - Doubt regarding moving the control to a specified line
#6
Solved: 10 Years, 9 Months, 2 Weeks ago
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:
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.
Reply


Messages In This Thread
RE: QTP Script - Doubt regarding moving the control to a specified line - by natrajr83 - 08-06-2008, 05:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Fifth word from every thousand line in notepad files. sallu.iet@gmail.com 0 850 01-17-2020, 09:58 AM
Last Post: sallu.iet@gmail.com
  Grab multiple line data from log file haziqwebs 0 1,708 10-19-2016, 01:28 PM
Last Post: haziqwebs
  Driver Script to control child scripts sumanhyd 1 2,984 07-26-2016, 07:06 PM
Last Post: Ankesh
  Automate BMC Control M applications using QTP Saranyaciet2 0 2,639 05-22-2015, 09:43 AM
Last Post: Saranyaciet2
  doubt on webedit ramuvasavi 1 1,762 03-10-2014, 12:35 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)