12-02-2012, 02:05 AM
Hi ALL,
I'm new to QTP and i'm facing the following problem:
i want to Get some data from multi pages
Navigate to (page 1) Then Get Data Then Click next
Get (Page 2) Data Then Click next and so on ...
The problem that i'm saving the data of the first page in an array when i go to the next page the array of the first page is deleted, i want to continue on the first array. i want to declare a global array and make it dynamic so every time i get the data i add this data to the global array
below is the code:
Any help plz??
I'm new to QTP and i'm facing the following problem:
i want to Get some data from multi pages
Navigate to (page 1) Then Get Data Then Click next
Get (Page 2) Data Then Click next and so on ...
The problem that i'm saving the data of the first page in an array when i go to the next page the array of the first page is deleted, i want to continue on the first array. i want to declare a global array and make it dynamic so every time i get the data i add this data to the global array
below is the code:
Code:
Dim arr
If Browser("test").Page("page").Exist(1) Then
While Browser("test").Page("page").Link("Next").Exist(1)
arr= FuncGetData() 'Getdata in page to the array
Browser("test").Page("page").Link("Next").Click
Wend
Any help plz??