How to solve time out error in selenium webdriver with java?
<p>My Html </p>

<pre><code>&lt;form id="load_form" class="ajaxsubmit" method="post" action="ajax.php"&gt;
&lt;input type="hidden" value="register" name="action"&gt;
&lt;h3&gt;Registration Form&lt;/h3&gt;
&lt;img id="loader" width="20" height="20" style="display:none;" src="images/loader.gif"&gt;
&lt;p id="alert"&gt;&lt;/p&gt;
&lt;fieldset&gt;
&lt;fieldset&gt;
&lt;fieldset&gt;
&lt;fieldset&gt;
&lt;fieldset&gt;
&lt;fieldset&gt;
&lt;label&gt;Username:&lt;/label&gt;
&lt;input type="text" required="" name="username"&gt;
&lt;/fieldset&gt;
</code></pre>

<p>My Java Code</p>

<pre><code>WebDriverWait wait = new WebDriverWait(driver,30);
WebElement element = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//input[@name='username']")));
element.sendKeys("john");
</code></pre>

<p>Getting Below Error</p>

<blockquote>
  <p>Exception in thread "main" org.openqa.selenium.TimeoutException: Timed
  out after 30 seconds waiting for visibility of element located by
  By.xpath: //input[@name='username'] Build info: version: '2.53.0',
  revision: '35ae25b', time: '2016-03-15 17:01:03'</p>
</blockquote>

<p>Any Help? I have already tried by increasing wait but doesn't work</p>