Any one knows about descriptive programming to identify
objects in a page?
Kindly drop me mail
prasanna.sabat@gmail.com

Answers were Sorted based on User's Feedback



Any one knows about descriptive programming to identify objects in a page? Kindly drop me mail p..

Answer / madhusudana

hi friends this is madhusudan

we can achieve D.P in two ways

* static way
* dynamic way

static type means we can directly write the properties and value of the test objects in script.
example script

browser("title:=Ranford home page").page("title:=Ranford home page").exist

like this

dynamic means we have to create the description object to the test objects by fixing the set of properties and values and that description object we can use in script directly.

example

dim br,pg

set Br("propety").value="value"
set pg("property").vlue="value"
Browser(br).page.Exist

these are the two types of D.P

Is This Answer Correct ?    0 Yes 0 No

Any one knows about descriptive programming to identify objects in a page? Kindly drop me mail p..

Answer / murali raju

Hi .. I am murali from blore..

in my company this way to we write descriptive
programming...

if u have an internet and qtp 8.2 or 9 run the below script
in ur machine..

Browser("title:=Welcome to Gmail").Page("title:=Welcome to
Gmail").WebEdit
("type:=text","name:=Email").Set "prasanna.sabat"
Browser("title:=Welcome to Gmail").Page("title:=Welcome to
Gmail").WebEdit
("type:=password","name:=passwd").set "urpwd"
Browser("title:=Welcome to Gmail").Page("title:=Welcome to
Gmail").WebButton("type:=submit","name:=Sign in").click

did u understand the abvoe code...?

otherwise call to me..

09845135495
bangalore...

Is This Answer Correct ?    0 Yes 1 No

Any one knows about descriptive programming to identify objects in a page? Kindly drop me mail p..

Answer / ycy

BY DP
Dim obj_ChkDesc

Set obj_ChkDesc=Description.Create
obj_ChkDesc(?html tag?).value = ?INPUT?
obj_ChkDesc(?type?).value = ?checkbox?

Dim allCheckboxes, singleCheckBox

Set allCheckboxes = Browse(?Browser?).Page
(?Page?).ChildObjects(obj_ChkDesc)

For each singleCheckBox in allCheckboxes

singleCheckBox.Set ?ON?

Next

Go to help section in QTP and see for other objects like
webEdit, webtable, webelement.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

How to load object properties to object repository through scripting.give one example

7 Answers   IBM,


what is Supplemental Objects ?

0 Answers  


some times we write user define functions.where we write main and sub program,how,where to insert the functions in qtp?

2 Answers   GE,


why you have standardized functions? plzzz guys with real time exp. do answer

0 Answers  


how many script you will wright in a year ? i told it's depends on the proj..and 'n.no of ... but he forced me to tell some num. or avg .....how many i suppose to tell..??and do a favor per day how many script don't thing it's repeated question or common ...help me post a ans...thanks for advance

1 Answers   HCL,






What is a Web Table?

5 Answers   Kanbay,


We have opened three browser such as Facebook,Gmail,Amazon,I want to generate the script of Login of Amazon application, but while adding the object such as edit box(user id,password) in OR is not added.Could you please resolve my issue

1 Answers   IBM,


suppose there r 10 action in a test i want to execute action 5 to 10 how would i do that

2 Answers  


how can we retrieve ten rows from the data table using loop concept?

3 Answers  


h u call the function

6 Answers   Wipro,


Reverse a string keeping the words in the string as it is. E.G. "Quick Test Professional" O/P "Professional Test Quick"

5 Answers   Cap Gemini,


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

0 Answers  


Categories