How to calculate total no of Edit box - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: How to calculate total no of Edit box (/Thread-How-to-calculate-total-no-of-Edit-box) |
How to calculate total no of Edit box - sudhirzpatil - 01-30-2009 Hi i am testing following web site. http://newtours.demoaut.com username-tutorial password - tutorial here on the first page if we select 2 passangers, by clicking on continue go the second and third page. Here on the third page under 'Passenger' frame two Edit box appears for 2 passengers as we select 2 pasenger on first page. If we select 3 passanger, then on third page 3 edit boxes appear as we select 3 on first page. I want varify this for. Means want to calculate edit box. Thanks in advance. RE: How to calculate total no of Edit box - sreekanth chilam - 01-30-2009 Hi, Use the "childobjects" method & retrieve the collection of "Edit" boxes & then find out the count of that collection .... you can calculate easily...... RE: How to calculate total no of Edit box - VENKATAREDDY_M - 02-03-2009 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 RE: How to calculate total no of Edit box - Prafulla - 02-03-2009 Hi, Add the object in OR...dont forget to add name property for it... Code: counter=0 RE: How to calculate total no of Edit box - bfakruddin - 02-04-2009 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 RE: How to calculate total no of Edit box - Prafulla - 02-04-2009 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.. |