Not able to find a UI button after recording a test and proving it prior to system restart.
My company builds a user interface for CNC cutting machines and I'm currently building an automated test for our software. While recording the test we enter a password to unlock a hidden button to run a process, I programmed the test to enter the password and click the button so the process will run. This will work as I'm creating the test and will pass every time, once I restart the control for the morning or run the test on a separate system using Test Execute. After a restart or testing on another system, I get "cannot find the object error". This happens every time and I have read through many of the questions here and have seen some similar issues but they have not pointed me in the right direction.
This sounds very much like a timing issue.
Something to keep in mind: TestComplete attempts to execute commands, operations, actions, as quickly as possible. If that button does not "exist" in memory soon enough, when TC attempts to click on it, you'll get that message. You should do tests for "Exists" before attempting to click on the button.
https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/checking-existence.html