How to find Total no of Text Fields in the Page..Anybody
please answer me..Thanks in Advance

Answers were Sorted based on User's Feedback



How to find Total no of Text Fields in the Page..Anybody please answer me..Thanks in Advance..

Answer / babu

Hi,

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

by using this, you can able to get the number of text
fields in the page.

Is This Answer Correct ?    11 Yes 1 No

How to find Total no of Text Fields in the Page..Anybody please answer me..Thanks in Advance..

Answer / yogi

set a = description.create
a("micclass").value = "webedit"
set ch_obj = browser("").page("").childobjects(a)
msgbox ch_obj.count

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

what is syncurnisation point? what is the use of this in real time environment? plz explain?

6 Answers   AppLabs,


What test cases can you automate using QTP?

0 Answers  


how to test one edit box using dotnet addin for Web Applications? write script?

2 Answers   NTT Data,


Scripts for Ascending order in qtp.

3 Answers  


how to identify the objects if application consists of objects that have same properties.

4 Answers  






what is localisation testing and globalisation testing? what is the difference between them?

1 Answers   CDC Software,


how much space occupies in object respository by default?

5 Answers   VSoft,


. My application is updating the user information in the application. Every time it is Adding on record in my application and Validating the information like “Record has added successfully”. Which Check point I have to put in this situation? Why?

5 Answers   Polaris,


can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com

0 Answers  


How can you Open a Notepad and How can you write the test Resuts in Notepad by Using QTP?

3 Answers  


i want to learn testing tools what i have to know before.iam fresher i dnt know any this..which langagues i have to before testing.

2 Answers   Wipro,


is we can import the object repository from external source. if it so then how?

5 Answers  


Categories