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

1. How do declare public variable in vb scripts?

1577


What are class events?

581


Which date function is used in the vbscript language to find the difference between the 2 dates?

589


What purpose does ‘on error resume next’ serves?

547


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.

1738






Mention what are the rules to name variable in vbscript?

538


How will you convert a string to lower case string using vbscript?

555


What are the special sub-types in vbscript?

548


How to open a file. What is the perpose of true and false mode there?

607


Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository

1792


How to take whole text output from screen of Bitmap Application.

1870


Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

2589


Which function is used to perform string comparison?

564


How will you get the largest subscript of an array in vbscript?

603


What is the use of option explicit statement?

583