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

who will create the object?

1481


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

545


how to write validation function for date in vb script

2140


How do i automate a website www.flyashx.com without having any test cases witin a week time.

1449


Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar

1961






When to use function procedures and what are its characteristics?

547


Which data type/types are supported by vbscript language and what are their specialties?

592


Which function is used to perform string comparison?

559


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

1783


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

1660


give me any information abou vb script books learn quckly

1657


Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.

1617


Explain about the functionality of vb script?

567


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3269


How can you destroy an object in vbscript?

639