Get HTML information using JSOUP

Hi everyone,

I´m trying to get this information of the HTML:

To do that I´m using this code:

String bundle =".context-product-placement-data .cli_product_message").first().text();

Works fine, but the problem is that the div is hidden, and if that happens I don’t want to store the data. Is there a way to know if the div is hidden or not? I have tried checking after with this path:

String bundle =".context-product-placement-data .x-hidden").first().text();

But it doesn’t return me any information.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.