开发者

modifing xpath to find necessary element in it

开发者 https://www.devze.com 2023-02-04 12:00 出处:网络
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.

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

精彩评论

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