内容定位//*[text()="内容"]
如果内容有空格只能使用contains函数://div[contains(text(), '内容')]
元素定位//*[@class="元素"]
:nth-child()的用法移步https://blog.csdn.net/cdgogo/article/details/109047819
//代表下面所有的元素
模糊定位/*/一层
/*//多层
xpath定位元素
于 2022-11-24 21:32:29 首次发布