I want different types of discriptive programming statments
coded for different types of web-objects?Give syntax and
example?

Answer Posted / srikanth

We can do 2types.
i)By creating properites through Description.create
ii) By passing properties through string arguments

i) Dim obj_desc
set obj_desc= Description.create()
obj_desc("class").value="webedit"
obj_desc("name").value="userid"
obj_desc("html tag").value= "input"
obj_desc("visible").value="True"
Browser("browser").Page("page").Webedit
("userid").set "srikanth"

ii) Browser("name:=Welcome to Gmail").Page("name:=Welcome
to Gmail").WebEdit("attachedText:=Userid").set "srikanth"

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is QTP and the use of QTP in TD?

602


Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.

2893


can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.

5105


Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?

589


HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.

1630






how to find that tools work well with your existing system?

1403


How to use output values in qtp ?

556


What is the registration process and examination fees?

553


What is the process of synchronizing qtp and aut?

568


how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?

1312


What is a checkpoint? How many check points are there in qtp?

530


Mention what are the different types of recording modes in qtp? Which will be used when?

563


Explain runtime dynamic settings?

2026


what you mean by artifact,milestone...

1497


Do you know how to connect database? Can you tell me the procedures?

551