I am using selenium java 3.141.59 and testng 6.14.3.
The test page may display like
<tbody>
<tr>
<td class="S_line1">
<strong class="W_f12">82</strong>
<span class="S_txt2">fans</span>
</td>
</tr>
</tbody>
or
<tbody>
<tr>
<td class="S_line1">
<a bpfilter="page_frame" class="t_link S_txt1" href="//xx.com/p/1003061291477752/follow?from=page_100306&wvr=6&mod=headfollow#place">
<strong class="W_f12">170</strong>
<span class="S_txt2">fans</span>
</a>
</td>
</tr>
</tbody>
If "fans" have a href link,then I will click "fans" link. If not I will skip this step and continue to do others.
ExpectedConditions.presenceOfElementLocated is not availabe to this situation, because it will throw exeception when not finding href link and stop the test.