String text = "findme";
Element data = doc.select(String.format("tr:contains(%s)", text)).first();
Jsoup :contains(string) correct usage?
-
12-07-2023 - |
Pregunta
I am very new to java and jsoup and cant figure one simple thing out, hope you guys can help.
This works:
Element data = doc.select("tr:contains(Findme)").first();
But how can i use string instead of static text? This wont work:
String IneedToFindThis = "Findme";
Element data = doc.select("tr:contains(IneedToFindThis)").first();
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow