Here is my text response
<p class="equipment-left">
<span id="p_lt_zoneContent_pageplaceholder_p_lt_ctl02_TireSearchResults_lblOriginalFrontEquipmentHeader">Original Equipment-Front: </span>
<span class="equipment-num">
<a id="p_lt_zoneContent_pageplaceholder_p_lt_ctl02_TireSearchResults_hypOriginalFrontEquipment" href="javascript:__doPostBack('p$lt$zoneContent$pageplaceholder$p$lt$ctl02$TireSearchResults$hypOriginalFrontEquipment','')"></a></span></p>
<p class="equipment-right">
<span id="p_lt_zoneContent_pageplaceholder_p_lt_ctl02_TireSearchResults_lblOriginalFrontEquipmentCount">**We found <strong>@Count</strong> result(s) that fit your vehicle.</span>**
</p>
</div>
<div id="p_lt_zoneContent_pageplaceholder_p_lt_ctl02_TireSearchResults_divOriginalRearEquipment" class="equipment" style="display:none;">
<p class="equipment-left">
<span id="p_lt_zoneContent_pageplaceholder_p_lt_ctl02_TireSearchResults_lblOriginalRearEquipmentHeader">Original Equipment-Rear: </span>
<span class="equipment-num">
<a id="p_lt_zoneContent_pageplaceholder_p_lt_ctl02_TireSearchResults_hypOriginalRearEquipment" href="javascript:__doPostBack('p$lt$zoneContent$pageplaceholder$p$lt$ctl02$TireSearchResults$hypOriginalRearEquipment','')"></a></span></p>
And here is my Assertion screenshot
Basically I am trying to assert that if the response contains the text "We found @Count result(s) that fit your vehicle." then fail that request but somehow it is always getting passed.
I tried with Text Response, Response Message and Document(text) option but it is not working with any of the option.
Am I missing something? Please suggest. Thanks.