title: selenium formatter modification (Export to webdriver backed java)
body: <p>I'm having some trouble understanding how the formatter works for Selenium IDE. I don't want to write a formatter from scratch, I want to modify the existing code which turns selenese into webdriver backed java. Normally I would sit down with the Javascript code and try to figure out how it works, but I am a little stuck.</p>
  
  <p>Here is a typical formatter:</p>
  
  <pre><code>function parse(testcase, source){}
  function format(testcase,name){
      var Javaprogram = ""
      for each command in testcase{
          switch command.command
          case something:
              Javaprogram += "driver.something(" + command.target + (command.value!=""?");":","+command.value+");")
          ...
  </code></pre>
  
  <p>I can't find this logic anywhere in the Java formatter, there isn't even a format function, just a "formatComment" and "formatSuite". which leads me to believe this is being done under the hood, but reverse engineering it would take time that I really don't have.</p>
  
  <p>Does anyone Know how this works? Does anyone have a link to a tutorial on modifying the existing formatters? Either is fine. I will keep looking for answers to this and link them in comments if I find them. Clearly people have done and are capable of doing this.</p>