简体   繁体   中英

JSoup can't find Element

Im trying to find an Element with JSoup (and the Parent of the Element should get deleted) but it's not working for some reason.

This is what im searching for = https://i.stack.imgur.com/G5rp1.png

And I tried

Elements test = doc.select(":containsOwn( Members)");
Elements test = doc.select(":contains( Members)");
Elements test = doc.select("div:containsOwn( Members)");
Elements test = doc.select("div:contains( Members)");

Any help is appreciated!

使用以下内容:

String test = doc.select(":contains(Members)").first().text();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM