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

Answers were Sorted based on User's Feedback



I want different types of discriptive programming statments coded for different types of web-objec..

Answer / 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

I want different types of discriptive programming statments coded for different types of web-objec..

Answer / ram.polavarapu

->static descriptive scripting
->dynamic scripting
static scripting
------- --------
browser("creation time:=0").page("micclass:=page").webedit
("text:=").set"vgdgv"


dynamic scripting
-------- ---------
dim e
set e=descriptive.create
e("micclass").value="WebEdit"
set a=browser("").page("").childobjects(e)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What is iteration? How it is related to Test Results in QTP?

2 Answers  


How to handle dynamic objects in quicktest professional (qtp)?

0 Answers  


wht is the difference between action and functio?

3 Answers  


1)how to write test cases in test director? not go throuth requirments and plan but should be different way i need? 2)what is the mediator between qtp and application or project?

1 Answers  


What are the types of Object Repository’s in QTP?

2 Answers   Crea,


What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.

0 Answers   Value Labs,


What is the latest version of qtp?

0 Answers  


How to Display last item of a Combobox by using QTP?

10 Answers  


What are the major/ important methods, functions in QTP we use realtime testing

0 Answers  


How do u insert an object during runtime in qtp?

2 Answers  


how to parameterise a test with data base table or excel sheet?

1 Answers   FCG,


what is mercury.clipboard in qtp.where we can get this in qtp tool i.e tabs

1 Answers  


Categories