title: Record Actions using Selenium
body: <p>I have a semi-vague question to ask about Selenium. I've discovered a few different ways to perform actions using the FirefoxDriver. What I need to do is repeat actions that a user performs on a web page (clicking a link, checking a checkbox, etc.). Is there any method or combination of methods that allows me to "record" the user's actions? Here is what I have so far to perform actions (you'll notice I've tried using the WebDriverBackedSelenium and Actions  classes to perform actions)</p>
  
  <pre><code>import java.util.List;
  
  import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriverBackedSelenium;
  import org.openqa.selenium.WebElement;
  import org.openqa.selenium.firefox.FirefoxDriver;
  import org.openqa.selenium.interactions.Actions;
  import org.openqa.selenium.interactions.Action;
  
  public class MyReplayer {
      public static void main(String[] args) throws Exception {
          // The Firefox driver supports javascript 
          FirefoxDriver driver = new FirefoxDriver();
  
          driver.get("http://www.cs.umd.edu");
  
          List&lt;WebElement&gt; elements = driver.findElements(By.tagName("a"));
          //WebDriverBackedSelenium driverBacked = new WebDriverBackedSelenium(driver,        "http://www.cs.umd.edu");
          Actions builder = new Actions(driver);    
          Action clickLink = builder.click(elements.get(100)).build();
          clickLink.perform();
          //driverBacked.click("document.getElementsByTagName('a')[100]");
       }
  }
  </code></pre>