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 the difference between the design-time and run-time data tables?

0 Answers  


How to data driven test for Win objects in QTP ?

0 Answers  


How you test the object which is dynamically changes its location?

7 Answers   Wipro,


Hello, I am facing problem to check textpoint for mercury application . I have inserted checkpoint to check flight summary for place of departure and arrival with datatable and script look like "Browser("Find a Flight: Mercury").Page("Book a Flight: Mercury").Check CheckPoint("Book a Flight: Mercury_4")" but while I am executing this script at last my check point gets fail and display Text Checkpoint: captured "" between Summary and 4/31/2008FLIGHT , expected "Acapulco" Match case: ON Exact match: OFF Ignore spaces: ON I think value from data table is not fatched so please guide me what I have to do to overcome this problem.. Thanks

0 Answers  


In QTP what is the difference between Step-in, Step-out, Step-over ?

3 Answers   CTS,






Is there any MS Access addin in QTP?

7 Answers  


How to find the name of the machine where you are running your automation scripts in qtp?

0 Answers  


Please tell me the steps to record the test in Analog recording mode in QTP version 9.2???

2 Answers  


why require regression testing?

2 Answers   TCS,


what are the challenges do we face while testing webbased applcations using the automation tool QTP or any?

4 Answers   BirlaSoft,


Explain in brief about the QTP Automation Object Model.

1 Answers  


write a test script in QTP to test the text that written in an image(i.e jpg)of a web page???

0 Answers  


Categories