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

what is event handling?

0 Answers  


Explain the constants in vbscript?

0 Answers  


how to automatically update the sql server2005 database records when insert in vb6?

0 Answers  


How to delete a cookie using vbscript?

0 Answers  


what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

0 Answers   Estuate,






how to find number of characters(letter a) in the sentence Rain Rain Go away

4 Answers  


int a=4857 i need output as 7584.without using any inbuild function?

6 Answers   Aspire,


i have developed the below QTP script to count the no of items available in the web list "Select a product" in www.bankrate.com and also want to print what are the items??? can any one help me to rectify the below script??? SystemUtil.Run "iexplore.exe","www.bankrate.com" a=Browser("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").page("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").Weblist("name:=select").GetTOProperty("items count") msgbox a Dim List() ReDim List(a-1) For i = 1 To a List(i-1)=Browser("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").page ("title:=Mortgage Rates Credit Cards Refinance Home CD Rates by Bankrate.com").Weblist("name:=select").GetItem(i) Print List(i-1) Next

1 Answers  


What if you do not specify anything when you call a procedure?

0 Answers  


What is a class in CSS?

1 Answers  


How to get the background color of a weblist?

3 Answers   Accenture,


How to assign a numeric value to a variable?

0 Answers  


Categories