Need to click on sub option of dropdown menu in OWA
<p>My test script are developed using Java with Selenium webdriver api. There is 1 particular scenario where I need to click on a sub option loaded from a dropdown menu but I am not able to do that. Following are the test steps and the screenshot for the particular problem.</p>

<p>-Launch Microsoft Outlook Web App (OWA) and login</p>

<p>-On main screen I need to enter some text in Search Field</p>

<p>-Click the drop down next to it</p>

<p>-Select "<strong>This Folder</strong>" from the options loaded
(<a href="http://tinypic.com/r/2rh5rwg/9" rel="nofollow">Screenshot</a>)</p>

<p>I dont see any frameid so not using any. Dropdown works fine but failing to click on suboption.</p>

<p>Adding the code which I am using for click this</p>

<pre><code>public static final By searchDropDown_locator= By.xpath(".//*[@id='divSScp']");
public static final By thisFolderText_locator= By.xpath("(.//*[@id='spnT' and text()='This Folder'])[2]");


public void clickSearchDropDown()
{
    WebElement searchIcon= websitedriver.findElement(searchDropDown_locator);
    searchIcon.click(); 
}

public void clickThisFolder()
{
    WebElement searchIcon= websitedriver.findElement(thisFolderText_locator);
    searchIcon.click(); 
}
</code></pre>

<p>I am calling both these functions in my script file.</p>

<p>What could be the solution here.</p>