0

在我的specflow验收测试中,我需要通过给定的类名找到最后一个元素,我尝试使用HtmlFindExpression但无法找出正确的表达式。

            Element element = WebBrowser.CurrentBrowser.WaitForElement(new HTMLFindExpression("class=case-note-text"),5000, true)
            string value = element.InnerText;
            StringAssert.AreEqualIgnoringCase("Testing", value, string.Format("abc"));
4

0 回答 0