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
Is VB Script Case sensitive or Case insensitive?
How can the spaces from the string be removed?
How to add actions in driver script to run those actions in QTP?
What is loose binding? Why is it not a good practice to use it?
What is the use of option explicit statement?
There are 5 web pages.write a script to click the button on 4th web page.
How can constants be declared in the vbscript language?
How to create a function in vbscript?
Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.
What's the difference between vbscript and vb.net?
Explain about tristate constants?
Explain the filter expression?
What is vbscript procedures?
Mention the rules for using option explicit statement?
How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz