Data not retreving when clicking on search button : please find the below scenario of mine and do the needful help.

the search button is in frames and I am connecting to the frames with the below code.

driver.switchTo().frame("autoCompleteDialogIF");

and I am able to go the frames section.
search button syntax:
<a href="javascript:findButtonAction();">Find</a>
Here in the frames section we have text box and when I enter the values in text box and perform search the data is not retrieving which matches with the text.

**Code used:**

WebElement elementclick = driver.findElement(By.xpath(".//*[@id='filterPanelFindButton']/a"));
JavascriptExecutor executor = (JavascriptExecutor)driver;
executor.executeScript("arguments[0].click();", elementclick);