Can you advise me, please, is there any way to modify the following xpath so that the only picture name us.gif can be found.
//img[co开发者_C百科ntains(@src,
'http://cache.global.com/cache/1102A/images/flags/icon/us.gif')]
If you want to check whether an attribute holds exactly one constant value, you can do it this way:
//img[@src='us.gif']
精彩评论