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)?
Answers were Sorted based on User's Feedback
Answer / 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 |
If without using object repository and object spy for identify the object then first i will record the test script(application)
| Is This Answer Correct ? | 0 Yes | 2 No |
How many types of operators are available in the vbscript language?
Whenever I use Wscript.Echo Qtp raising Run time error as 'Object required for Wscript' How I can create object for Wscript
write generic functions for webapplication?like generic function for webedit generic function for webbutton generic function for links
what is descriptive programming in QTP and what is environment variable in QTP? where we store and what is its use?
What is the difference between javascript and vbscript?
There are 5 web pages.write a script to click the button on 4th web page.
how to write code: to check whether the window of an Application Under Test exist or not . plz give with example
How to Import data from a file (file is on the desktop) to the data table
can u test the application without add-in?
What are the differences between Visual Basic, VBA and VBScript? When would it be appropriate to use one as opposed to another?
why variable name should not exceed 255 characters?
What are the 2 ways to pass a value to the function?