Here you can find the source of getElementValue(Element wrapperElement, String cssQuery)
public static String getElementValue(Element wrapperElement, String cssQuery)
//package com.java2s; //License from project: Open Source License import org.jsoup.nodes.Element; public class Main { public static String getElementValue(Element wrapperElement, String cssQuery) { try {/*ww w .j a va2s . c om*/ Element elm = wrapperElement.select(cssQuery).first(); return elm.text(); } catch (Exception e) { e.printStackTrace(); return ""; } } }