```
<div id="productcontainer" class="products-list" style="display: block;">
<a id="prd_Item_0" class="item-list-300x250">links</a>
<a id="prd_Item_1" class="item-list-300x250">links</a>
<a id="prd_Item_1" class="item-list-300x250">links</a>
<a id="prd_Item_1" class="item-list-300x250">links</a></div>

var ele=document.getElementById("productcontainer");
if(ele)
  {
    tags=ele.getElementsByTagName("a");
    for(i=0;i<tags.length;i++)
     {
      if(tags[i])
        {
         tags[i].click();
        }
     }
}

```

I want to do like above in nightwatch js, can anyone help me how to do it like above using nightwtch js.

Thanks in advance