I want read content of a list tag under the ul tag. But I'm not able to read using the below code. : <p>URL: <a href="https://www.amazon.in/s/ref=sr_pg_2?rh=n%3A1571271031%2Cn%3A%211571272031%2Cn%3A1968024031%2Cn%3A1968093031%2Cp_n_pct-off-with-tax%3A70-%2Cp_98%3A10440597031&amp;page=2&amp;bbn=1968093031&amp;ie=UTF8&amp;qid=1501915937&amp;lo=apparel" rel="nofollow noreferrer">https://www.amazon.in/s/ref=sr_pg_2?rh=n%3A1571271031%2Cn%3A%211571272031%2Cn%3A1968024031%2Cn%3A1968093031%2Cp_n_pct-off-with-tax%3A70-%2Cp_98%3A10440597031&amp;page=2&amp;bbn=1968093031&amp;ie=UTF8&amp;qid=1501915937&amp;lo=apparel</a> </p>

<p>Code is listed as Fallows:</p>

<pre><code>try{

    //WebElement e1 = driver.findElement(By.cssSelector("#atfResults &gt; ul"));
    WebElement e1 = driver.findElement(By.id("s-results-list-atf"));
    System.out.println(e1);

    List&lt;WebElement&gt; links = e1.findElements(By.cssSelector("#atfResults &gt; ul"));;
    for (int i = 1; i &lt; links.size(); i++)
    {
        System.out.println(links.get(i).getText());
    }
    }
    catch(Exception e){
        System.out.println(e.getMessage());
    }
}
</code></pre>

<p>Please let me know if any one get solution.</p>
