ContributionsMost RecentMost LikesSolutionsRe: Error: Object not a collection Marsha_RIt only works when stepping through the code if you switch to the locals tab and expand the actual object that is causing the error. If you don't expand it, or are viewing the call stack, watch list or breakpoint tab it will still show the error. I know all the ways to get around any timing issues, I've tried them all and unfortunetely nothing works. I just need to put this down to the fact I'm using an older version of TestCompete and it's not going to work forever. Some Windows/third party update is bound to cause issues sooner or later, might be time to finally upgrade. Re: Error: Object not a collection TanyaYatskovskaCan you mark this as unresolved? Support won't look at it as I don't have a maintenance subscription. Re: Error: Object not a collection Thanks for all the suggestions, have now contacted support and will post an update if they can find out what is causing the issue. Re: Error: Object not a collection Still get the issue when running it as an admin, doesn't look like there is a proper solution, only workarounds. Re: Error: Object not a collection I've tried adding delays and using WaitWindow but I still get the error. I even get the error in the debugger when stepping through if I stay in the Call Stack tab, Ihave to actually switch to the Locals tab and view the objects in order to get by the errors. Re: Error: Object not a collection Thanks for the suggestion but no luck with that either. I've found that if I put a breakpoint on 'w = p["Window"]("#32770", "Font");' and step through it it allows you to get past the 'object not a collection error'. However, you will then get an 'Object doesn't support this method' error when trying to log textBoxes[i]["FullName"]. Again, if you step into this when debugging it will also get past this error. It seems that in order to get this to work on these two machines outside of debuggingI need to add the following lines: Still have no clue why I need to do this on these specific machines. Re: Error: Object not a collection It's literally that sample code copied and pasted into a new project.I know the code is fineas it runs on some machines, what I can't understand is whytheerror is shown on some of the others: function FindEditbuttons() { var p, w, textBoxes, i; // Obtain the Notepad process p = Sys["Process"]("notepad"); // Open the Font dialog p["Window"]("Notepad", "*")["MainMenu"]["Click"]("Format|Font..."); w = p["Window"]("#32770", "Font"); // Obtain all edit buttons in the Font dialog textBoxes = w["FindAll"]("WndClass", "Edit", 5)["toArray"](); // Log the search results if (textBoxes["length"] > 0) { for (i = 0; i < textBoxes["length"]; i++) Log["Message"]("FullName: " + textBoxes[i]["FullName"] + "\r\n" + "Text: " + textBoxes[i]["wText"]); Log["Message"]("Total number of found edit buttons: " + textBoxes["length"]); } else Log["Warning"]("No edit buttons found."); } Re: Error: Object not a collection Hi Robert, The error is occuring using the FindAll example from the page you linked. I've highlighted the line: Re: Error: Object not a collection Thanks for the suggestion, unfortunately our maintenance agreement has expired so 12.1 is the latest version I have access to. Error: Object not a collection When using the FindAll method I am getting the runtime error - Object not a collection. This only occurs on certain Windows 10 machines and only when using specific scripting languages. Out of the four machines I've tried it on, two will get the error when using C++Script, C#Script, JScript or VBScript. If using Python or JavaScript it will work. On the other two machines FindAll works correctly for all languages. This is done using a new project and using the FindAll example from the help file. Does anyone have an idea what could be causing this? All PC's are running: TestComplete 12.1 Windows 10 Pro, Version 1903, Build 18362.592 Solved