Consider there are objects in a webapp which are identified by QTP. Suppose you know only the logical name of a object(absolutely nothing else about it). Which approach will you take to find the "micClass" of the object(You can't use Object Spy, or can't add the object in repository)?

Answer Posted / lok nath

actually we ll use the descriptive programing because we know the logical name of the object so. suppose i am having web button and i know logical name then what we ll do.
set odsec = description .create
odsec.Add "micclass","WebButton"

Set str name=Browser("tittle:=*"). page("tittle:=*").childobject(odsec).GetRoProperty(name)
print str name

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you format a number in percetage format in vbscript?

787


about vb scripting programs this type of all question& answers

1910


What are the different types of loops available in the vbscript language?

741


How to add actions in driver script to run those actions in QTP?

1726


What is the difference between vbscript and vba?

836


Description.Create

2373


What is the difference between javascript and vbscript?

789


Explain the support of asp for vb script functionality?

845


How will you release the memory acquired by an array variable in vbscript?

997


filter the array values without using filter function?

1898


Mention what is variant in vbscript?

737


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

1941


how to increasing the numbers in a given text box please write a vb script

1979


hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?

1777


Which operator can be used to check if two numbers are equal or not in vbscript?

895