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

Explain the constants in vbscript?

0 Answers  


how to find the textfile in the folder and copy file from one folder to another folder useing parameterigation in QTP

1 Answers   Accenture,


Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

0 Answers  


What is wrong with the following code: <%afname="header.asp"%><!?#include file ="<%=afname%>"?>

1 Answers  


How can I write HTML text to the window in VB Script?

2 Answers  






Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.

0 Answers  


What is parametrization ?

9 Answers  


Which operator can be used to do an xor operation in vbscript?

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  


Hello All, In QTP 9.2 for Mozilla Firefox, there is webelement in my application, I tried to click on that using decsriptive programming, but it does not work. and for this i tried this code too: Set obj = CreateObject ("Mercury.DeviceReplay") absx = Browser("").Page("").WebElement(".").GetROProperty ("abs_x") absy = Browser("").Page("").WebElement(".").GetROProperty ("abs_y") obj.MouseMove absx, absy obj.MouseClick absx, absy, 0 But it is not clicked. Can anyone help me out for this problem. Thnx in Advance

1 Answers  


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

0 Answers  


Hi, Anybody could tell me What is the script for Reverse of Given number. Ex:236--632. Thanks in Advance..

10 Answers   Amazon, CSC,


Categories