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

How comfortable are you in VB scripting?

2 Answers  


What is a recovery scenario?

0 Answers  


I have a tool bar where 5 different buttons are placed, but these buttons are not traceable hence i have created a virtual object on save button of this toolbar. Now pls tell me how to use this virtual object while write script.

0 Answers   IBM,


How to build scripts that access data from external sources?

0 Answers  


How to execute a VBS file without using Execute File statement?

3 Answers   iGate,


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,


draw the qtp frame work?

0 Answers  


how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!

0 Answers   TCS,


What is the entry criteria and exit criteria for your test automation

2 Answers   HP, Virtusa,


Why VB scripts are used in QTP and TSL in Winrunner, is there any advantage of using VB Scripts

2 Answers  


How do u do batch testing in WR & is it possible to do in QTP, if so explain?

4 Answers  


Hi, I am new into the field of testing and I need to know how can I begin automating the testing of Mainframe applications using QTP. Can anyone help me?

0 Answers  


Categories