1. Pls can anyone give me the descriptive programing
script to find the number of edit boxes in a login window
in flights reservation (windows application only not web).
2. Using descriptive programing, how do you handle
changing URLs. Pls anyone, very urgent

Answer Posted / hemakumar.m

1)Answer

Dim oEditDesc
Set oEditDesc=Description.Create()
oEditDesc("micclass").value="WinEdit"
a=Dialog("text:=Login").Childobject(oEditDesc).Count
Msgbox a

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does QTP record on Objects created on XWindows Environment?

1765


How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?

1596


How to create Reusable and Multiple Actions?

1811


What are the different properties of an web object

1515


how to convert 100 into hundred repees only and viceversa

1564






How to change the priorities of the recovery scenario properties?

686


Explain quicktest professional testing process?

636


Is it possible to switch between recording modes during a test creation?

680


Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?

660


Shall we add Local Repository to shared object repository,if yes,how we add

6132


what is the difference between data driver & data driven and driver script?

2234


when a test case is written how u test using qtp

1742


Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?

1675


can any body give the banking domain concepts/links

3719


How software tester can use constants and variables in scripts?

1778