As a newcomer to JavaScript, Selenium IDE, and web development, I am currently learning about a website that uses an AJAX application at . I am trying to utilize the WaitTextForPresent command to detect when a unique chat message appears, but I am unsure of where to apply the command. Can anyone provide some guidance?
[update]
<div id="logbox" class="logbox">
-many other <div id= >
<div class="logitem"></div>
<div class="logitem">
<div class="strangermsg">
<span class="msgsource"> Teman Kamu: </span>
F
</div>
</div>
</div>
I have attempted various approaches such as AssertForElement and AssertVisible, but I have not achieved satisfactory results. My primary issue lies in pinpointing the exact target for these commands.
The most promising command I have tried thus far is
<tr>
<td>assertText</td>
<td>css=div.strangermsg</td>
<td>F</td>
</tr>
And The Result:
[error] Actual value 'Teman Kamu: F?' did not match 'F'
While it is close to the desired outcome, I aim to isolate only the text message 'F' without the preceding span class 'Teman Kamu: ' (which translates to 'Stranger' in English).
Thank you