Recently I have started to get this annoying error
Type mismatch: 'wait'
I use wait statement in functions that in the libraries.
Do not ask me anything more, I get just this stupid error and I do not know why.
I look serious because I am serious.
i think, might be there is space before wait statment.
It may look like a silly thing but, can you try creating a new blank test and just add
wait 10 'statement to validate if this works out of your framework
Yeah it works with my framework, I am always using it. But the this problem sometimes occur and everytime I had to restart QTP or reboot my which really annoys me pals.
wait in VBS library?
VBS don't support any qtp reserve object ( untill not used with AOM) or any QTP utility.
Let me know if I understood correctly.
Vbscript allows to write QTP function in your .vbs file.
I frequently uses function like getcelldata,getRoproperty,GetRowWithCellText in my vbs file which all are qtp functions [img]/images/graemlins/smile.gif[/img]
If the Wait Statement work fine in seprate test, then there may be some issue with the function library.
Please double click on vbs file and get the exact line number on which the error is displayed.
check syntax, wait(time in sec) example: wait(10)
Check my reply on your other post.
There's nothing wrong with the wait statement.