I have the below code. What I actually want to do is enter a string in text field and click on enter. Then search results should be displayed.

But here on 'element.sendKeys(Keys.ENTER);' application logs out. I checked with URLs. URLs should be same after searching.But it changes here.
This code works for Chrome and IE. Issue only with Firefox only.I checked the element type to confirm the clicking. It was text box only.

```
public static void pressEnterKey(WebDriver driver,WebElement element){
    System.out.println("Current URL1" + driver.getCurrentUrl());
    WebElementType elementType = WebElementHelper.findElementType(element);         
    System.out.println("Element Type = " + elementType);
    element.sendKeys(Keys.ENTER);
    System.out.println("Current URL2" + driver.getCurrentUrl());
}

```