HtmlUnit IList elements
===

I am using NHtmlUnit (.net wrapper for HtmlUnit) and having problems access the elements within an IList<object>.  Here is what I have so far.

    // return DIVs for listing results
    public static IList<object> getListingResultsDiv(HtmlPage page, string mlsNum)
    {            
    // get div container for all listing(s) found
    HtmlElement divResults = page.GetHtmlElementById("SRPTextLink");

    // gets div element for each listing found
    IList<object> divListings = divResults.GetByXPath("//div[" + containsClass("resultsItem") + "]");
            
    return divListings;

    }

For testing purposes I placed the following loop in my view to see what is returned.

    @for (int i = 0; i < divListings.Count(); i++)
    {        
        @divListings[i]        
        <br /><br />
    }

Here is the result of the loop.

    HtmlDivision[<div class="resultsItem property dListData new" listingid="543114488">]

    HtmlDivision[<div class="resultsItem property dListData " listingid="545922903">]

    HtmlDivision[<div class="resultsItem property dListData showcase priceReduced" listingid="546610222">]

Which is correct but I am trying to acquire elements (div and ul) within the IList above.

The elements that I need are ...

    <div class="thumbnail"></div>
    <ul class="summary {$hasBrandBox}">
    <li class="price"><em>sample text here</em></li>
    <li class="beds_baths_sqft_acres"><span class="beds_baths">sample text here</span>
    <span class="sqft">sample text here</span></li>
    <li class="propertyType">sample text here</li>
    <li class="brokerby">sample text here</li>

I only need the thumbnail, price and property type.

Any help would be appreciated.

Thanks,
Shawn
</ul>

