01-30-2009, 06:05 PM
|
How to calculate total no of Edit box
|
|
01-30-2009, 08:00 PM
Hi,
Use the "childobjects" method & retrieve the collection of "Edit" boxes & then find out the count of that collection .... you can calculate easily......
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. 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
02-03-2009, 07:38 PM
Hi,
Add the object in OR...dont forget to add name property for it... Code: counter=0
While Browser("Book a Flight: Mercury").Page("Book a Flight: Mercury").WebEdit("passFirst0").Exist(2)
counter = counter + 1
Browser("Book a Flight: Mercury").Page("Book a Flight: Mercury").WebEdit("passFirst0").SetTOProperty "name","passFirst"&counter
Wend
MsgBox counter
02-04-2009, 03:27 PM
Hello Prafulla,
I didn't get you, Why are you changing the value in OR? I mean what is the need? already application providing passFirst0,passFirst1...etc., We need just no. of Edit boxes with this names... I hope no need to use SetToProperty here... Please explain your code.... Thanks & regards, Baba Fakruddin.D baba.fakru@gmail.com
02-04-2009, 03:53 PM
Hi bfakruddin
u r rt..already application providing passFirst0,passFirst1.. n i m using the same...if u r using OR then tht solution s useful.. |
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Not able to set value in application web edit box | tanuj dewangan | 4 | 4,627 |
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 | 6,993 |
01-17-2015, 07:49 PM Last Post: yogi4tech |
|
| Edit Recovery Scenario | skegler | 0 | 3,615 |
03-05-2014, 10:40 PM Last Post: skegler |
|
| Not able to edit existing scripts in QTP 11 | prit deo | 1 | 4,503 |
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 | 8,692 |
07-23-2013, 11:51 AM Last Post: Ankur |
|
Users browsing this thread: 1 Guest(s)

