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

The second do while loop in this code. I need somebody to explain what it is actually doing in more simple terms
Building Java file at runtime & running JUnit test on that class file
Invoking Eclipse plugin from Java
Error while running a map-reduce job which reads elasticsearch
ActionBar issue: NPE
How to identify 4th occurance of a character using java regex
Estimate BigDecimal Calculation time
How to use session cache to fire actions on url using groovy/ java
Calendar giving wrong day of week
Recognizing underline and strike through attribute during iText pdf processing
Encrypt files in python and decrypt in android
Java Regex: check if a sentence contains only alphabet and numbers
Parse simple JSON array using JSONArray
Alternative to Java Enum
box2d : camera and body not synced
Why does hamcrest any(Myclass.class) requires casting

Categories

HOME
isabelle
google-api-php-client
yahoo-oauth
paw-app
twitter-bootstrap-4
fingerprint
gorm
qt-creator
pc
ef-migrations
pugjs
aurigma
excel-vba-mac
immutable.js
errorlevel
tibco-mdm
firebase-crash-reporting
h2db
smb
pepper
underflow
bootstrap-material-design
tooltipster
fopen
large-file-upload
nat
bower-install
android-ble
dynamics-crm-2013
occlusion
ssjs
impersonation
import-from-excel
qwt
jsch
outlook-2013
jquery-validate
hls.js
dropbox-php
feeds
account-kit
trash
markojs
bgp
livequery
rhino-servicebus
xpath-1.0
energy
javax.sound.midi
wso2cloud
google-places
ami
jscript.net
winddk
google-reader
responsive-slides
android-radiobutton
navigationservice
expected-exception
picturefill
centos5
eclipse-memory-analyzer
android-hardware
pendrive
inotifycollectionchanged
celltable
pyinotify
visitor-statistic
w3wp.exe
coda-slider
mozilla-prism
gin
memory-size
premature-optimization
pascal-fc
procedural-music
rtml

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