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
1. How do declare public variable in vb scripts?
What are class events?
Which date function is used in the vbscript language to find the difference between the 2 dates?
What purpose does ‘on error resume next’ serves?
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.
Mention what are the rules to name variable in vbscript?
How will you convert a string to lower case string using vbscript?
What are the special sub-types in vbscript?
How to open a file. What is the perpose of true and false mode there?
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
How to take whole text output from screen of Bitmap Application.
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
Which function is used to perform string comparison?
How will you get the largest subscript of an array in vbscript?
What is the use of option explicit statement?