Checking on hidden class with jsoup
I am trying to extract a line from a html file for checking purposes... The problematic line is this: <div class="cli_product_message x-hidden hidden" style="display: none;"> </div> It shows in 2 different ways in different html pages, the way shown above or like this <div class="cli_product_message" </div> I want to do a simple thing, when there is the "hidden" class or the "style" attribute a method should return false, otherwise true. I've tried using jsoup to parse this html using select("div.cli_product_message").attr("class") Then I want to verify if the string obtained contains hidden or style, the problem is that, in both cases, the result string is cli_product_message x-hidden So I don't have nothing to differentiate the 2... I've tried using other jsoup methods, for example toString() but the result is the same... What can I do? Thanks
SpringMVC Storing Base64
In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections
How to use LDAP authentication for the Exchange Web Services connection in Java?
How to set JAVA_HOME in Mac permanently?
LIMIT 1 with CrudRepository
Difference between import java.util.* and java.util.XXXX [duplicate]
Error in function split.default
Extracting source code metadata from compiler
Hamcrest.Matchers: JSON Nested Array
Selectively allocate dimensions for multi-dimensional array at construction
Consume localhost webservice from remote application
Java conventions about primitive types [closed]
Problems with current thread
Disable a KeyTyped event based on its type
PropertyChange Listener for icons
Using JMS, how can I get the maximum message size for a particular destination?