📅  最后修改于: 2022-03-11 14:55:22.931000             🧑  作者: Mango
The only locator that works with text is xpath.
Matching exact text : //tag[.=‘text’]
Matching partial text : //tag[contains(text(), ’text’)]