标签:xpath定位 ends-with xpath中的ends-with() 多测师
xpath定位遇到如下问题:br/>//*[ends-with(@id,"多测师")]定位不到以"多测师"结尾的元素解决如下:
//*[ends-with(@id,"多测师")]
等价于
//input[substring(@id, string-length(@id) - string-length(‘多测师‘) +1) = ‘多测师‘]
标签:xpath定位 ends-with xpath中的ends-with() 多测师
原文地址:http://blog.51cto.com/icestick8586/2123176