Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一个链接<>链接文本<>
如何使用 Find.BySelector 和使用链接文本来识别它,就像我们在 selenium 中所做的那样......
//a [包含 (text(),'linktext')]
要按确切文本查找链接:
myIE.Link(Find.ByText("my literal link text")).Click();
要通过“包含”文本查找链接,一种方法是执行与上述相同的操作,但具有Find.ByText(new Regex......());
Find.ByText(new Regex......());