unable to select from ui li elements in selenium java
<p>I am Automating add to card process of "<a href="http://www.fnp.com/the-sweet-surprises-genpr-143431-e.html" rel="nofollow">http://www.fnp.com/the-sweet-surprises-genpr-143431-e.html</a>" website. I am writing a code Using TestNG  Structure . I got Stuck in task where I got stuck in "Shipping Option" Box. 
I am getting null value in console. 
Below is my testNG Program</p>

<pre><code>    package script;

    import java.util.Iterator;
    import java.util.List;
    import java.util.concurrent.TimeUnit;
    import org.junit.Test;
    import org.openqa.selenium.By;
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.WebElement;
    import org.openqa.selenium.firefox.FirefoxDriver;
    import org.openqa.selenium.support.ui.Select;

    import pom.Homepage_POM;

    public class mis {
            public static WebDriver driver;
        public static void main(String a[])
        {
            driver = new FirefoxDriver();
            driver.manage().window().maximize();
            driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
                  driver.get("http://www.fnp.com/the-sweet-surprises-genpr-143431-e.html");

 driver.findElement(By.id("tagsf2")).sendKeys("Gandhinagar");
     String xp = "//ul/li/a[@class='ui-corner-all']";
                    List&lt;WebElement&gt; allList = driver.findElements(By.xpath(xp));
                    int count = allList.size();
                                    for (int i = 0; i &lt; count ; i++) 
                    {
                        String name = allList.get(i).getText();
                        //System.out.println(name);
                        if(name.contains("Gandhinagar"))
                        {
                            allList.get(i).click();
                            break;
                        }

                } 
                    List&lt;WebElement&gt; allElements = driver.findElements(By.xpath("//div[@id='ddShipingModep1_container']/ul/li")); 
            for (int i = 0; i &lt; allElements.size() ; i++) 
                        {
                                String name2 = allElements.get(i).getText();
                            System.out.println(name2);
                             if(name2.contains("Standard Delivery [  Rs. 0 ]"))
                                {
                                    allElements.get(i).click();
                                    break;
                                }
</code></pre>

<p>Below is HTML code</p>

<pre><code>&lt;div class="textbox"&gt;
&lt;div id="plsenter" style="display:none"&gt;Only standard delivery available for Mother's Day&lt;/div&gt;
&lt;div id="anand" class="pro_detail_form_inn flot-right"&gt;
&lt;label&gt;2. Shipping option&lt;/label&gt;
&lt;input id="ddShipingModep1_input" class="selectbox" type="text" autocomplete="off" readonly="readonly"/&gt;
&lt;div id="ddShipingModep1_container" class="selectbox-wrapper" style="display: none; width: 274px;"&gt;
&lt;ul&gt;
&lt;li id="ddShipingModep1_input_option1" class=""&gt;Select Shipping Mode&lt;/li&gt;
&lt;li id="ddShipingModep1_input_SHMD-10" class=""&gt;Standard Delivery [  Rs. 0 ]&lt;/li&gt;
&lt;li id="ddShipingModep1_input_SHMD-768" class="selected"&gt;Fix Time Delivery [  Rs. 200 ]&lt;/li&gt;
&lt;li id="ddShipingModep1_input_SHMD-781"&gt;Midnight Delivery [  Rs. 250 ]&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;select id="ddShipingModep1" class="inp_pop_quick_view" onchange="changeShipmentTime()" name="Items" style="display: none;"&gt;
&lt;input id="valentineDisabled" type="hidden" value="false"/&gt;
&lt;input id="isValentinerose" type="hidden" value="false"/&gt;
&lt;/div&gt;
</code></pre>