What protocol are you using to do this ? If you use TruClient then you can use
- Drag ‘Evaluate Javascript code’ from action's toolbox
- In the arguments section of above add the following code -
var searchKey = (document.body.textContent).split("SearchKey");
- Get the count value using searchKey.length
For other protocols you can find similar functions like
web_reg_find("Text=searchKey", "SaveCount=searchKey_count", LAST );
searchKey_count should have number of occurances. If you want to look in some part of search area then include TextPfx and TextSfx attributes as appropriate. As long as string shows up in response of the request in your generation logs then it doesn't matter if its hidden or not or has any other attributes. Please keep in mind that you are working at protocol layer and not UI.
Thanks!