TestComplete waits for object before using it for the first time
Hi all, I've got this snippet of code:
Aliases.browser.pageSecuritydetails.formSecurityDetails.passwordbox2TheAnswerIsAnswer.WaitProperty("Enabled", true, 500);
When running this code, TestComplete will "wait for object" for about 20 seconds as if it can't find the object and then run the first line, after that it will run the rest of the lines fine and always find the object. This always happens no matter what the first line is, anything that uses this object will want to wait first.
I've tried refreshing the namemap and/or the object hierarchy before hand using the below lines and it will still do this wait before even doing those
Does anyone have any idea how I could stop this happening? This script is run before all our tests and its significantly slowing things down
I've attached the full script
Thank you all 🙂