04-18-2013, 07:02 AM
Interesting. I sense you are very interested to learn, and so, I am gonna do one better for you
Here is a better way to approach a table,
1. Find out the total number of rows
2. Find out the total number of columns
3. Use a loop to iterate the entire table and fetch the data.
I know it sounds stupid with 3 steps, but here is what i meant,
This is only a structural representation. Although, i could write the answer out, i would encourage you to pick the clues i gave and find what you need
Good luck !!
"Give a fish to a man and you feed him for a day, Teach a man to fish and you feed him for Life !!!"
Here is a better way to approach a table,
1. Find out the total number of rows
2. Find out the total number of columns
3. Use a loop to iterate the entire table and fetch the data.
I know it sounds stupid with 3 steps, but here is what i meant,
Code:
For i = 0 to Rowcount
For j = 0 to ColumnCount
Text = Browser("Find a Flight: Mercury").Page("Book a Flight: Mercury").WebTable("First Name:").GetCellData(i, j)
Next
Next
This is only a structural representation. Although, i could write the answer out, i would encourage you to pick the clues i gave and find what you need
Good luck !!
"Give a fish to a man and you feed him for a day, Teach a man to fish and you feed him for Life !!!"
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.