I am using waitForText to wait for a text message that is displayed after clicking a link. But it times out even after a wait for 50000 ms. Normally it doesn't take that long for text message to be displayed after clicking the link. I can't reproduce this issue when i run the script through IDE. It occurs when i use java to run the testsuite. Any ideas?
May be your text doesn't match the one on the page, try using WaitForElementPresent ( copy this code from IDE) and istead of locator use the collowing
selenium.getText(the path to the element with text).contains("blah-blah")
Press any key to continue, or any other key to cancel.
<div id="notice" class="message">
<span>The resource you are trying to access doesn&#039;t exist. Please sign in first to access resource.</span>
And the selenium step:
<td>The resource you are trying to access doesn't exist. Please sign in first to access resource.</td>