WaitForElement - Don't wait

I am also facing the same problem as in this topic WaitForElement - does not work as required

I don’t understand why the wait function doesn’t wait according to the timeout set in the function(10 seconds). The wait function seems to just wait 1 second and then finish
I’m sure my path in findTestObject(…) is correct. Because I tried waiting in case the object already exists and the wait function found it.
If the object already exists and the wait function only works, then this function has no meaning anymore

Anyone who had the same problem as me and had a solution, let me know

Please create a sample Test Case that is runnable on other’s machine. The sample should reproduce your findings. Without a runnable sample code, it is difficulut to discuss productively.