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
How can you fetch the value of a cookie?
What are the uses of vb script?
Which date function is used in the vbscript language to find the difference between the 2 dates?
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
What is the extension of the vbscript file?
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
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.
Which operator can be used to do an xor operation in vbscript?
I need to get some data from data base and store this
(retrieved) data in a excel sheet using VB script in QTP9.0
I have created connection for data base
I have created as excels sheet by using
Set XL=CreateObject("Excel.Application")
XLworksheet.cells(1,1).value= rs.fields.item("<
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
Mention what is variant in vbscript?
What are the disadvantages of vbscript?
How can you create an object in vbscript?
What is the technology used by vb script?
What are the valid scopes of a variable in vbscript?