XML : Please help me with xpath and selenium

For example I have

How can I choose this one? Because every time, when I click next page, count of li stays the same, but class="pagination_active" can vary from item to item. I want to choose next Li item after class="pagination_active". How can I do this with xpath?

      <div id="search-pagination-wrapper" class="content-item">  <ol id="1453679100917_11352" class="zsg-pagination">  <li id="1453679100917_11351">  <li id="1453679100917_11350">  <li id="1453679100917_11349">  <li id="1453679100917_11348" class="pagination_active">  <a id="1453679100917_11347">6</a>  </li>  <li id="1453679100917_11346">  <li id="1453679100917_11345">  <li class="pagination-ellipsis">  <li>  <li class="pagination-next">  </ol>  </div>    

Please help me.

No comments:

Post a Comment