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
var page = (HtmlPage) webClient.getPage(requestSettings);
var jsoupdoc = Jsoup.parse(page.asXml());
var elements = jsoupdoc.select("html body div main div table tbody tr");
Hi, just found you service while having a look at all the new users of HtmlUnit.
I think there is no need to
convert the page back to xml
parse the stuff again using jsoup
This wastes a lot of resources. You can use css selectors with the HtmlPage also.
Hi, just found you service while having a look at all the new users of HtmlUnit.
I think there is no need to
This wastes a lot of resources. You can use css selectors with the HtmlPage also.
Please have a look at this example: https://www.htmlunit.org/gettingStarted.html#CSS_Selectors
And if it does not work for you please drop me a note (or open an issue) and i will try to solve that.
Thanks for using HtmlUnit.
RBRi
The text was updated successfully, but these errors were encountered: