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

In a web site, Protocal has been changed http: to https: what is your approach?

2 Answers  


What is keyword view and Expert view in QTP?

1 Answers   Crea,


How can we upload pdf files in qtp?

1 Answers   Syntel, TCS,


what is Synchronization point in QTP?Can anybody give a perfect example on it Thanks in advance

5 Answers  


How will you compare keyword and expert view?

0 Answers  






If some requirements r changed during the testing process ,then how can u handle this in frame work?

1 Answers  


What is a runtime datatable ?

2 Answers   Ordain Solutions,


HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...

0 Answers  


What exactly is the difference among all the three recording modes.

5 Answers   Accenture,


How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined

0 Answers   Livetek,


What is the Dynamic Scenario in QTP? And also anybody give the example for this?

3 Answers  


how you test broken link using the automated tool QTP ?

4 Answers   Oracle,


Categories