cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft JScrip runtime error "Object not a collection"

SOLVED
Occasional Contributor

Microsoft JScrip runtime error "Object not a collection"

I use test script to test my Desktop application written in Winform c#.
I started to get Microsoft JScrip runtime error "Object not a collection" when try to find an object using TestComplete Find method.

The test scrips have not been changed for a while and suddenly this error started on so many different objects.

The only thing change on my PC I can think of is that I have .Net 4.7.1 installed, previously was 4.6.2

1 ACCEPTED SOLUTION

Accepted Solutions
Community Manager

Re: Microsoft JScrip runtime error "Object not a collection"

Hi @SZ_1,

 

Will it help if you add some delay before calling Find?

delay(500);
---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
2 REPLIES 2
Highlighted
Occasional Contributor

Re: Microsoft JScrip runtime error "Object not a collection"

I have attached the image of the error.

I should mention that if a put a break point at the Find statement and step over it, there would be no runtime error mentioned above. The error occurred if a ran the scripts without break point at the Find statement.

Community Manager

Re: Microsoft JScrip runtime error "Object not a collection"

Hi @SZ_1,

 

Will it help if you add some delay before calling Find?

delay(500);
---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors