try to use this
driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);
or implicit/explicit wait. don't use thread .sleep it makes project unstable.
Thanks for your reply.
Thats the problem, I am not able to apply the fluent wait because I am not sure what would be next page(object).
use this one there is no page object
driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);