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
Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks
When are redim statement and preserve keyword used in the vbscript language?
how to set one column as primary key in QTP and fetch values accordingly
How will you get the smallest subscript of an array in vbscript?
What is the use of option explicit in vbscript?
What is the extension of the vbscript file?
How to get the length of the string by making use of the string function?
What are the properties of regexp object?
1. How do declare public variable in vb scripts?
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)
What purpose does ‘on error resume next’ serves?
How to open excel in vb script?
How will you get the last occurrence of one string within another string using vbscript?
filter the array values without using filter function?
What is the use of the date function in the vbscript language?