title: Cypress IO- Writing a For Loop
body: <p>I have 15 buttons on a page. I need to test each button.</p>
  
  <p>I tried a simple for loop, like</p>
  
  <pre><code>for (var i = 1; i &lt; 15; i++) {
  
     cy.get("[=buttonid=" + i + "]").click()
  }
  </code></pre>
  
  <p>But Cypress didn't like this. How would I write for loops in Cypress?</p>