title: End to end Testing / Run Selenium IDE .json file using webdriver node.js
body: <p>I have installed <code>Selenium extension</code> of google Chrome <a href="https://chrome.google.com/webstore/detail/selenium-ide/mooikfkahbdckldjjndioackbalphokd" rel="nofollow noreferrer">Selenium IDE</a>, so I can record my tests and save the test file as <code>.side</code> wich is a <code>json</code> file. It contains </p>
  
  <p><code>{id , command , target , value}</code> .</p>
  
  <pre><code>{     "id": "70a08bcc-b351-4ec6-b64d-f833f09adfa2",
        "name": "Untitled Project",
        "url": "http://example.io",
        "tests": [
          {
            "id": "0b5184ff-4873-459b-b55b-77d56ebf5f6e",
            "name": "Untitled",
            "commands": [
              {
                "id": "35b40ae7-1ada-46d9-8c65-d8faaf1af753",
                "command": "open",
                "target": "/",
                "value": ""
              },
              {
                "id": "0e0bd8b3-4301-4ac6-8cd6-4b01fa94f68d",
                "command": "type",
                "target": "name=login",
                "value": "test@tets.io"
              },
              {
                "id": "078da69d-eec3-44b8-b793-53b401a18ac4",
                "command": "clickAt",
                "target": "//div[@id='cloud-ui']/div/div[3]/div/button/span",
                "value": "24,17"
              }...
  </code></pre>
  
  <p>I would like to know if there is solution to run the test file automatically using <code>JavaScript</code>, for example a plugin that reads the file and execute the commands ? </p>
  
  <p>If no, what about create my own JavaScript function that fetch the json objects <code>{id , command , target , value}</code>  and execute the commands ?</p>
  
  <p>for exemple : </p>
  
  <pre><code>   {
        "id": "512a84b8-c3b0-4cb6-88b4-025d28502f1f",
        "command": "clickAt",
        "target": "css=li.active &gt; a",
        "value": "18,62"
      }
  </code></pre>
  
  <p>we can run it using <code>selenium-webdriver</code> <br></p>
  
  <pre><code>  driver.findElement(By.css("li &gt; a &gt; span")).click();
  </code></pre>