If you are using Selenium Webdriver, you have to use setTimeout(long milliseconds)
When working on Selenium, you have to use:
<tr>
<td>setTimeout</td>
<td>30000</td>
<td>Wait 30 seconds for the page</td>
</tr>
Also, take a look at waitForPageToLoad(timeout)
<tr>
<td>click</td>
<td>Your XPath</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td>Wait 30 seconds</td>
</tr>