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
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 |
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 |
What is wrong with the following code: <%afname="header.asp"%><!?#include file ="<%=afname%>"?>
how to add the shared repository file to the script file while running the script manuall
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 )
Is VBscript case-sensitive?
I want to count the total no of links present in yahoo home page. The script like Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo!India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing But while running the script it is fail (the object not present in the object repository).How to overcome please tell me the detail steps...for QTP9.30
Mention what is the technology used by vb script?
accept a string & display whether a is present or not
How to remove the spaces in a string Ex: "this is apple"
Which date function is used in the vbscript language to find the difference between the 2 dates?
input values to accept 2 numbers & print the product, difference and sum using switch case
Hi I don't have any idea on VBscript. can any one point me to a good web site to learn VBscript. Regards lina
did any one attended interview in applabs if you had gone through plz tell me the procedure