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

Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)

1652


any body can you help me what is the script to automate an comand promt

2202


How may types of defects identify application or your currently working application?pls give me answer..

1725


can u please explain what is the exact difference between qtp8.2 and 9.0

1896


How to get Traceability matrix from TD?

923


Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?

3173


hai, i completed my b.tech in 2010 with 62.3%. i having knowledge on manual testing and Qtp. i want Relavent experience in testing.watever may be d salary i dont bother..I just want to gain knowledge. i dont have good communication skills.

1622


What is the diff between image and bitmap check point?

767


what is error and fault in terms of software quality?

1669


What are the disadvantages of recording test cases in qtp?

804


Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.

2616


how did u use automating testing tools in ur job?

1672


Tell me one scenario, the complex functionality you have automated in your project?

1717


explain abt dyanamic changing object with example?

2086


Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,

1557