I suppose you're talking about something like Google offers autocomplete. Your test will look something like this.
- Download page
- Enter a value using typeAndWait so that the Ajax event occurs.
- Compare the result with a block of text
The call will be like this:
open(/)
typeAndWait(textId,a)
verifyText(css=div
Hope that helps
source
share