java - How to get the element by class? htmlunit -


i using htmlunit webpage data. , want data <div class>. can't find method find class. how data?

here webpage source:

 <div class="content-detail">                 <ul class="detail-list limited-detail">                     <li>                         <div class="content-sub-title">2gogogo limited </div>                             <div class="info-list">                                 <span>tel:</span>                                 <p>+111 1111 2222</p>                             </div>                                                         <div class="info-list">                                 <span>fax:</span>                                 <p>+111 1111 3333</p>                             </div>                                                                                   <div class="info-list">                                 <span>e-mail</span>                                 <p><a href="mailto:elaine.lee@2gotrade.com">gogogo@2gogogo.com</a></p>                             </div>                                                         <div class="info-list">                                 <span>company website</span>                                 <p><a href="http://www.gogogo.com" target="_blank">http://www.2gotrade.com</a></p>                             </div>                                                         <div class="info-list">                                 <span>address</span>                                 <p>company address</p>                             </div>                                                           <div class="info-    list">                                    <span>introduction</span>                                    <p> are.... </p>                             </div>                                                                             </li>                 </ul>             </div> 

how company detail on source? lot.


Comments