I encountered with very strange problem in qtp while
writing the script i written the code
window"regexpwndclass:=XLMAIN").window"regexpwndtitle:=Open"
).Exit
this code was working fine for about 10-15 times i executed
the script but after some time qtp started giving the error
with the same code the error is "Object doesnt support this
method or function window(...).window(..)" then i modified
the code with only window"regexpwndtitle:=Open").Exit
in place of
window"regexpwndclass:=XLMAIN").window"regexpwndtitle:=Open"
).Exit
now again its working fine i cannot understand what thing
is creating the problem if same code executed successfully
in starting for about 10 times then why it is giving the
error now can anyone give the reason .
No Answer is Posted For this Question
Be the First to Post Answer
What is the exact difference between QTP and RFT ?
What are the key points to create a framework in QTP for oracle forms?
What are the details steps to connect a remote mysql database in QTP
How can I use the value retrieved by OUTPUT VALUE check point as Input for other Actions?
hi friends i was tried to connect qtp with oracle database using provider.i got a error.so anyone can help me out by correct script
When to use shared and local object repository?
Hi ,Can any one pleas explain how to test splash objects using QTP?
How u perform exception handling in QTp,what is other name for ths
Tell me few important difference Between QTP and WinRunner?
Hi I able to record IE object but not able to record mozilla firefox 3 object using QTP 10. i don know wats the problem????
What is the difference between action & script?
To count the no of links present in the yahoo home page i have written the script like this 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 While running the script it showing error that object "yahoo"isnot found in the object repository. Is there any setting before running the script? if yes what is the steps for it.Im using QTP9.0