开发者

modifing xpath to find necessary element in it

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']
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜