//input[not(@id=‘123‘)] 找id不为123的input
//span[substring(@name,3,5)=‘xxxxx‘] name属性第3个字符开始的5个字符是xxxxx的
//span[sbustring-before(@class,"-")="spanclass1"] class属性中-字符前面的字符是spanclass1
//span[sbustring-after(@class,"-")="spanclass1"] class属性中-字符后面的字符是spanclass1
//div[div[@id=‘xxx‘]] 依靠子节点定位
原文:https://www.cnblogs.com/jianxiaochong/p/14857813.html