02-03-2009, 11:30 AM
Hi
Pls capture the no of passengers selected in first page in to a variable(NoOfPassSelected)
Now in third page,below code can be used.
This will work for any no of Passengers selected.
Pls capture the no of passengers selected in first page in to a variable(NoOfPassSelected)
Now in third page,below code can be used.
Code:
For iLoop = 1 to NoOfPassSelected
Browser("title:=Book a Flight: Mercury Tours").Page("title:=Book a Flight: Mercury Tours").WebEdit("name:=Passfirst"&iLoop).Set = "Passfirst"&iLoop
Browser("title:=Book a Flight: Mercury Tours").Page("title:=Book a Flight: Mercury Tours").WebEdit("name:=Passlast"&iLoop).Set = "Passlast"&iLoop
Next