Unable to locate a specific element using Xpath -
i've created xpath expression locate value of "genre:" in case "drama". but, running script "genre:". how rectify expression locate "drama"?
i've tried with:
//div[@class="mdif"]//li/b/text()
elements within value is:
<div class="mdif"> <ul> <li><b>genre:</b>drama</li> <li><b>quality:</b>1080p</li> <li><b>screen:</b>1920x1080</li> <li><b>size:</b>1.67g</li> <li><b>rating:</b>6.1/10</li> <li><b>peers:</b>17</li> <li><b>seeds:</b>0</li> </ul> <a href="/movie/55000/download-lake-mungo-2008-1080p-mp4-yify-torrent.html" class="small button orange" target="_blank" title="download lake mungo (2008) 1080p yify torrent">download</a>
a little more accurate xpath accepted answer (works when genre
isn't in first li
, return text() intended)...
//div[@class="mdif"]//li[b='genre:']/text()
Comments
Post a Comment