How to count no of edit boxes on the page?

Answer Posted / babu

Set oDesc = Description.Create()
oDesc("micclass").Value = "Webedit"
Set Lists=Browser("Login").Page("Application").ChildObjects
(oDesc)
NumberOfLists = Lists.Count()
msgbox NumberOfLists

By using above statements you can find the count for no of
edit boxes in a page.

Correct me if i am wrong.

Is This Answer Correct ?    25 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how did u use automating testing tools in ur job?

1471


How many number of actions possible in qtp?

591


I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2

1478


How to get popup error message.

1016


Explain advantages and disadvantages of ddf?

583






What is the default add-ins in qtp?

544


How would you directly trigger javascript in a test?

1459


The hybrid framework can be implemented for any application. Is it true?

575


How to check which add-ins are associated with a test in qtp?

570


how to test Web application using QTP software

1319


What is CMMP and CMMH?

680


can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?

1388


How you debug your script?

552


Explain types of output values?

549


I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }

1659