Is there is any method instead of Thread.sleep()?

When my webpage is faced error on run-timeout error while navigating or clicking element,that time to solve my error i use Thread.sleep().But my Senior Architect says using Thread.sleep() method is wrong way try to use Smart Loading method.

Is there is any method to use loading the page instead of Thread.sleep() method?

Yes that’s right. Please don’t use that wait in real automation test execution due to it’s just a workaround solution and will fail your test execution any time.

You can use ‘Wait For Page Load’ keyword in this case