How to get the second set of values in li using xpath -


<div id="test"><div class="contains"><ul class = "value"><li> 1 </li><li> 2 </li><li> 3 </li></ul></div></div>  <div id="test"><div class="contains"><ul class = "value"><li> 1 </li><li> 3 </li><li> 6 </li></ul></div></div> 

please me...

here need select value second list of li. attributes div id , class of same. im unable select

if you're sure second list of li, more acurately lis in ul 2nd , can select these [2] select 2nd div id=test (by way, 2 elements should not share ids...)

./div[@id="test"][2]/div[@class="contains"]/ul[@class="value"]/li 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -