java


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

Related Links

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

Categories

HOME
java
clips
asp.net-core
wso2
keycloak
cookies
server
pycharm
dictionary
smarty
fft
alfresco
rsync
maven-3
amazon-ecs
rubygems
flyway4
uber-api
node-notifier
medical
slurm
event-handling
hapi
ghc
libtiff
contextmenu
dbext
abi
csrf-protection
sylius
sox
realex-payments-api
telerik-reporting
captiveportal
microsoft-r
icloud-api
angular2-aot
xpages-ssjs
fish
poltergeist
intel-pin
saas
google-cloud-nl
tinymce-4
react-chartjs
google-rich-snippets
stormpath
xquery-3.0
oracle-fusion-middleware
create-table
catel
textmate
force-layout
xcode-extension
swift3.0.2
code-search-engine
temporary-files
tasker
broadcastreceiver
mapzen
eclipse-scout
s
slick-3.0
youcompleteme
multipeer-connectivity
theming
hls.js
powercli
lowpass-filter
sybase-asa
windows-mobile-6.5
iso8601
color-profile
cubes
time-and-attendance
medium.com
angular-cache
infix-notation
file-writing
underscore.js-templating
player
jwplayer7
holder.js
separator
prerequisites
feedback
libressl
processmodel
block-device
cdt
winddk
socketexception
onactivityresult
android-radiobutton
reactfx
mbr
fmod
prettify
gridfs
web2py-modules
sabredav
robotics-studio
bitsharp
rdoc
coderush
gdata-api
dsn
armcc
appconkit
nsmanagedobject
assembly-loading
ecl
locate
fluent-interface
digest-authentication
getresponsestream
nintendo-ds
swing-app-framework
temporal-database
aquaticprime
port-number

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App