3
votes

I have a problem with Selenium IDE's command - waitForTextPresent.

<tr>
<td>waitForTextPresent</td>
<td>*saved successfully</td>
<td></td>
</tr>

I had a couple of tests which are using this command. All tests worked fine, but now, during executing this command web application freeze, after while Firefox crashed, whole Firefox freezed and i received from Selenium IDE timeout exception after a while. So my question is, why is it happening? I didn't change tests or selenium settings.

One time I received error: A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue. Script: chrome://selenium-ide/content/…nium-core/scripts/htmlutils.js:679

Windows 7 Firefox 38.0.5 Selenium IDE: 2.8.0 I am using couple of add-ons related to Selenium (e.g.: Sel Block).

2

2 Answers

3
votes

waitForTextPresent is a deprecated command, try using just waitForText with a CSS locator as the target, and the '*saved successfully' bit as the value.

0
votes

Update:

You can use XPath for detecting the contained text as well For example:

waitForElementPresent | //*[@id="objectid" and contains(text(),"Text You Want")]

Older solution with waitForText:

You have to use WaitFortext

waitForText | Locator | Textpattern

for example

waitForText | //* | *saved successfully

asterisk can be used on beginning, middle or end of the text pattern