You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support for logic operation and/or/() in attribute selector.
@TestpublicvoidtestLogicOperation() {
Documentdocument = Jsoup.parse(html);
Stringresult = Xsoup.select(document, "//*[@id=te or @id=test]/text()").get();
assertEquals("aaa", result);
result = Xsoup.select(document, "//*[@id=te and @id=test]/text()").get();
assertNull(result);
result = Xsoup.select(document, "//*[(@id=te or @id=test) and @id=test]/text()").get();
assertEquals("aaa", result);
result = Xsoup.select(document, "//*[@id=te or (@id=test and @id=test)]/text()").get();
assertEquals("aaa", result);
}
The text was updated successfully, but these errors were encountered:
Support for logic operation
and
/or
/()
in attribute selector.The text was updated successfully, but these errors were encountered: