How to count bulk of text boxes in a webpage

Answer Posted / vamcit

'To calculate no. of Text/Edit Boxes

Browser("Browser").Navigate "http://www.rediff.com/"
Browser("Welcome to rediff.com").Page("Welcome to
rediff.com").Sync
Set webtext=Description.Create()
webtext("micclass").Value="WebEdit"
x=Browser("Browser").Page("Welcome to
Rediff.com").ChildObjects(webtext).count
msgbox x

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is parameterizing?

827


What is the purpose of set_window command?

918


Could you anyone share me the path to download the automation tools which are having trial license version?

1856


How do you find an object in an gui map.

959


What is the use of gui map and what happens when gui map file get loaded?

915


hi this is uday iam trying for testing job with 3+ yrs of exp if u have qtp faqs materil plz send me thanks in advance

1818


What is a checkpoint and what are different types of checkpoints?

905


How to to get the information from the status bar without doing any activity/click on the hyperlink?

786


How to have winrunner insert yesterdays date into a field in the application?

808


how can you explain your Real Estate Project in front of interviewer..? please step by step......

1357


What do you verify with the sync point for object/window bitmap and what command it generates, explain syntax?

802


what is qtp licence

1783


What are the two modes of recording?

805


How enviornment veriable can be included into my script. I want to include some information into my Excel file using Test run in WR. like User name of system? waht is function to be used? Please clarify.....

1953


What are the different modes of recording in winrunner?

847