Quote:
Originally Posted by kcar181
|
The problem is the XPath for the row. What you have identifies the full list. What you need is to identify each book in the list. If you look at the source for the list, each book looks like:
Code:
<div class="awardslisting">
<div class="gallery">
<a href="novel.asp?id=698" class="trophy trophy2" onMouseOver="return overlib('Total Award Nominations: 2', WIDTH, '200', RIGHT)" onMouseOut="nd();"></a>
<a href="novel.asp?id=698" class="trophyx trophyx1" onMouseOver="return overlib('Total Book List Inclusions: 1', WIDTH, '200', RIGHT)" onMouseOut="nd();"></a>
<a href="novel.asp?ID=698"><img src="covers_md/pp_theamber.jpg" border="0" alt="The Amber Spyglass" /><!-- If winner then <span class="gold"></span> else if nom then <span class="silver"></span> end if --></a>
</div>
<p class="title"><a href="novel.asp?ID=698">THE AMBER SPYGLASS</a></p>
<p class="author"><a href="author.asp?ID=694">Philip Pullman</a></p>
</div>
Each book is within the div with class "awardslisting". So, the following should work:
Code:
//div[@class="awardslisting"]
Your XPaths for the title and author are correct.