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

Post New Answer

More QTP Interview Questions

What are the different types of recording modes?

0 Answers  


How to use regular expression in descriptive programming?

0 Answers  


What is the use of "Define new test object" in QTP 9.1 When should we use? Explain?

4 Answers  


I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?

0 Answers   Wipro,


How to return a value from a fn, if it has more than one value how to return

3 Answers   Verizon,






How to get the run time object property without using GetROProperty

4 Answers  


Can Any One Write How to Write the Script for Child Objects

4 Answers  


Among all the check points what is the most important checkpoint?

1 Answers  


How to define array in qtp?

0 Answers  


What is the difference in testing a client-server application and a web application?

0 Answers  


Hey friends i m facing a problem when i m running my script in qtp it waits for about 5-10 secs before starting execution why it is so can any one solve my problem .Previously it was running fine

1 Answers  


When I parameterize a script then for each iteration script is executed from begining to end. If I want to execute some middle steps multiple times using Parameterization (avoiding begining and end steps), what is the solution of this (e.g. total steps are 1 2 3 4 5 and i want 2 3 4 only(not 1 nd 5)

3 Answers  


Categories