Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to calculate total no of Edit box
#3
Solved: 11 Years, 4 Months, 4 Weeks ago
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.

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
This will work for any no of Passengers selected.
Reply


Messages In This Thread
RE: How to calculate total no of Edit box - by VENKATAREDDY_M - 02-03-2009, 11:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to set value in application web edit box tanuj dewangan 4 3,772 07-29-2016, 03:58 PM
Last Post: harshadevadas
  This code does not give total no of links present on page plz help it returns 0 excellentpawan 8 5,721 01-17-2015, 07:49 PM
Last Post: yogi4tech
  Edit Recovery Scenario skegler 0 3,302 03-05-2014, 10:40 PM
Last Post: skegler
  Not able to edit existing scripts in QTP 11 prit deo 1 4,086 02-14-2014, 11:20 PM
Last Post: supputuri
  I want to count total no of links in a page and click one by one excellentpawan 9 7,335 07-23-2013, 11:51 AM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 2 Guest(s)