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



Consider there are objects in a webapp which are identified by QTP. Suppose you know only the logica..

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

Consider there are objects in a webapp which are identified by QTP. Suppose you know only the logica..

Answer / cnu_thatavarthi

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

Post New Answer

More VB Script Interview Questions

in qtp we ve datatable look like excel ,if we want to extract data from excel which saved in my documet how can i get that in datatable using vb script

2 Answers  


Explain the extension .hta?

0 Answers  


write a vbscript for traffic signal

1 Answers  


How are comments handled in the vbscript language?

0 Answers  


write a vb script code to display the vbscript word by word (i e 1st it should display v then b and up to t )

1 Answers  






Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder

0 Answers   IBM,


how to find greatest of n numbers!

3 Answers   Syscon,


Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar

0 Answers  


accept an email id & validate it .email id should not exceed 25 characters the mail id should contain 3 characters excluding domain name,@ and .(dot) the last 3 characters of the domain should be net,com or org

2 Answers  


Explain few date functions in vbscript?

0 Answers  


generic function for webedit box for web application

1 Answers  


There are 5 web pages.write a script to click the button on 4th web page.

0 Answers   Accenture,


Categories