I am trying to get all the li or ul by following code:

```
List <WebElement> we = ffDriver.findElement(By.xpath("//*[@id='sf-menu']/li/a/b"));

```

but I am facing error `Add cast to List <WebElements>` when add cast to webelements error pears that can not cast.

How can I assign all the elements of ul to the List ? in the below css for selenium webdriver with java

```
<ul id="sf-menu">

<li class="current">
    <a id="menu_admin_viewAdminModule" class="firstLevelMenu" href="/symfony/web/index.php/admin/viewAdminModule">
        <b>

            Administración

        </b>
    </a>
    <ul></ul>
    <!--

     second level 

    -->
</li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>

```