Unified Functional Testing Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR 13 - Type mismatch

Highlighted
Hadar308
Occasional Advisor

ERROR 13 - Type mismatch

Hi,

 

I have the following code :

set result = object.childObjects(dscr)

set obj = result(0)

 

In some cases I got on the second Error 13 and on the same object and description I don't get error.

If I ignore the error I have the child object in obj and I can make action like:

obj.highlight

 

What can cause this error ?

 

Thanks

1 REPLY
tomers
Regular Collector

Re: ERROR 13 - Type mismatch

start by checking that result.Count > 0, before attempting to use result(0)

 

Tomer.

//Add this to "OnDomLoad" event