1 starts-with函数
例:xpath(‘//div[stars-with(@class,”test”)]’)
2 contains函数
例:xpath(‘//div[contains(@id,”test”)]’)
3 and
例:xpath(‘//div[contains(@id,”test”) and contains(@id,”title”)]’)
4 text()函数
例1:xpath(‘//div[contains(text(),”test”)]’)
例2:xpath(‘//div[@id=”“test]/text()’)