Let me recommend you using Selenide library.
It allows writing much more concise and readable tests. It can wait for presence of elements with much shorter syntax:
$("#elementId").shouldBe(visible);
Here is a sample project for testing Google search:
https://github.com/selenide-examples/google