Xpath returns null Web Scraping
<p>I am performing web scraping and I have tried all possible combinations but XPath is returning <code>null</code> value.</p>

<p>I have removed square brackets and have added <code>//</code> for it but it returns <code>null</code> each time.
These are the actual XPath and I have attached the formatted one that I am using in my code.</p>

<pre><code>//*[@id="agent_list_wrapper"]/div[2]/div[2]/div/div[1]/a
//*[@id="agent_list_wrapper"]/div[2]/div[2]/div/div[3]
</code></pre>

<p>Below is my code.</p>

<pre><code>private async Task&lt;List&lt;NameAndphone&gt;&gt; WebDateFromPage(int pagenum)
{
    string url = "http://www.realtor.com/realestateagents/New-York_NY/photo-1";

    if (pagenum != 0)
        url = "http://www.realtor.com/realestateagents/New-York_NY/photo-1/pg-" + pagenum.ToString();

    var doc = await Task.Factory.StartNew(() =&gt; web.Load(url));
    var name = doc.DocumentNode.SelectNodes("//*[@id=\"agent_list_wrapper\"]//div//div//div/div//a");
    var phone = doc.DocumentNode.SelectNodes("//*[@id=\"agent_list_wrapper\"]//div//div//div//div");
    if (name == null || phone == null)
        return new List&lt;NameAndPhone&gt;();

    var names = name.Select(node =&gt; node.InnerText);
    var phones = phone.Select(node =&gt; node.InnerText);

    return names.Zip(phones, (name, phone) =&gt; new NameAndPhone() { Name = name, Phone = phone }).ToList();
}
</code></pre>