title: Actions class- Text gets entered at the address bar of the browser instead of Google searchbox
body: <p>I am trying to enter text in the google searchbox but the text gets entered on the address bar of the browser. The xpath that I have used in the code is of the searchbox on the google homepage. Following is the code that I executed :</p>
  
  <pre><code>package p1;
  import org.openqa.selenium.interactions.Actions;
  import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.firefox.FirefoxDriver;
  import org.openqa.selenium.WebElement;
  
  public class ClickLink 
  {
      static WebDriver driver;
      public static void main(String[] args)
      {
          try
          {
          driver = new FirefoxDriver();
          driver.manage().window().maximize();
          driver.get("https://www.google.co.in/");
          WebElement searchbox = driver.findElement(By.xpath(".//*[@id='sb_ifc0']//input"));
          Actions ob = new Actions(driver);
          ob.moveToElement(searchbox).doubleClick().sendKeys("Akash").build().perform();
          System.out.println("Text entered in Google search box !!");
          Thread.sleep(5000);
          driver.close();
          }
          catch(Exception e)
          {
              System.out.println("Exception occurred : "+e);
              driver.close();
          }
      }
  }
  </code></pre>
  
  <p>And here is a video showing the above code under execution : <a href="http://screencast.com/t/ab2lXBlufbX6" rel="nofollow">[link]</a></p>
  
  <p>Please let me know the reason as to why the code is not working as expected. Also note that I want to use the 'Actions' class for achieving this.</p>