for example one window is there, the window contains how
many edit box's i want script? i know the script but that is
not exact answer....
The script is like this ..........

set a=description.creation()
a("Native class")="WinEdit"
b=window("Flight Reservation").childobject(a).count
msgbox b

Answer Posted / saravanaraja

This Code is working Perfect:

Set desc=Description.Create()
desc("micclass").Value="WebEdit"
Set Edit=Browser("Title:=.*").Page("Title:=.*").ChildObjects
(desc)
msgbox Edit.Count

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

604


What are the properties you would use for identifying a browser and page when using descriptive programming?

622


After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans

1668


Will down time for server and content maintenance/upgrades be allowed? how much?

609


you are recording on "WINDOW 1", say it has a link if you click on that, that leads you to "WINDOW 2". If you do any manipulations on "WINDOW 2" that are automatically updated in to "WINDOW 1". But "WINDOW 1" is currently invisible. But the updations in "WINDOW 1" must also be recorded as a script in QTP. The best Example is if you update your resume in JOB STREET portal it actually happens in other window, but the previous window is automatically updated. Now does QTP help you in this types of situations? Any body can answer this question. please..... Siva

1488






Can you brief the hurdles you faced during Automation testing?

570


Can I change properties of a test object?

610


How do you configure QTP AND Test director?

1488


How can i check items sorted or not in a weblist ? Give me the script for this...

1570


How many add-ins comes by default with qtp?

531


What are the disadvantages of recording test cases in qtp?

590


how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up

3745


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

1601


What is the Difference between copy to action and call to action?

574


give me an example where u used good judgement and logic in solving a problem

3346