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

if numbers are always changing write a script for that

1 Answers   Nous,


If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?

0 Answers   Ordain Solutions,


What is Version control?

3 Answers  


How to use actions in qtp ?

0 Answers  


IF there are seven browsers with same name open. I want to close one particular browser thru QTP. how can i do this?

3 Answers   Polaris,


How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?

0 Answers  


How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?

0 Answers  


User defined function in QTP

2 Answers   Lehman Brothers,


how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel

0 Answers  


How to export data present in Datatable to an ".xls" file?

1 Answers   Crea,


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.

0 Answers  


When we use 'ERR' object to handle the exceptions in the script, do we need to include any statement in the beginning of the script..??

2 Answers   DST Global Solutions,


Categories