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
How to use RSA and public key encryption between a client (holding the encrypted text) and a server (holding the private key)?
Transaction on two tables at the same time in two different databases
Intellij console not printing logs while debugging java application
Extract int from stream in Java
Processing, bullet position for firing
Error:(44) No resource identifier found for attribute 'fab_labelStyle' in package 'abtech.waiteriano.com.waitrer'
Adding a maven library into Netbeans Web Project
Menu Bar, Color, and Image not adding to frame
How to change response http header in get request by spring RestTemplate?
Is there any way to check user session once authenticated on navigating HTML pages in Spring MVC?
Using JavaMail with SSL and TLS
Password encryption in Spring MVC
Store boolean using sharedpreferences in android [duplicate]
Javacc How can i make a variable accessible to scanner and parser
I want to convert httpresponse to json object
Display bill total, Java public void display() error