Go to list of links in a table and than take screenshots of each

I am trying to iterate through a table of links from the NYC DOB and take screenshots of each of the link results. I have looked through the forum and pulled together some scrappy results. I was wondering if anybody could help me with this. This is the page that I need to open links at http://a810-bisweb.nyc.gov/bisweb/ElevatorDevicesForRecordServlet?requestid=2&allbin=1089722&passrecordnumber=40034

Here is what I have so far
“Name”: “test”,
“CreationDate”: “2019-4-13”,
“Commands”: [
{
“Command”: “open”,
“Target”: “http://a810-bisweb.nyc.gov/bisweb/bispi00.jsp”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=/html/body/div[2]”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “name=houseno”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “name=houseno”,
“Value”: “555”
},
{
“Command”: “type”,
“Target”: “name=street”,
“Value”: “10th avenue”
},
{
“Command”: “click”,
“Target”: “id=boro1”,
“Value”: “”
},
{
“Command”: “select”,
“Target”: “id=boro1”,
“Value”: “label=Manhattan”
},
{
“Command”: “clickAndWait”,
“Target”: “name=go2”,
“Value”: “”
},
{
“Command”: “verifyText”,
“Target”: “xpath=/html/body/center/table[5]/tbody/tr[3]/td[1]/b”,
“Value”: “Cross Street(s):”
},
{
“Command”: “captureEntirePageScreenshot”,
“Target”: “Property Profile”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=/html/body/center/table[5]/tbody/tr[6]/td[1]”,
“Value”: “”
},
{
“Command”: “clickAndWait”,
“Target”: “xpath=/html/body/center/table[3]/tbody/tr[2]/td[4]/a”,
“Value”: “”
},
{
“Command”: “store”,
“Target”: “${!clipboard}”,
“Value”: “myTaskSearch”
},
{
“Command”: “store”,
“Target”: “0”,
“Value”: “myrow”
},
{
“Command”: “store”,
“Target”: “fast”,
“Value”: “!replayspeed”
},
{
“Command”: “label”,
“Target”: “myLoop_TaskSearch”,
“Value”: “”
},
{
“Command”: “storeEval”,
“Target”: “${myrow}+1”,
“Value”: “myrow”
},
{
“Command”: “storeText”,
“Target”: “/html/body/center/table[3]/tbody/tr[${myrow}+1]/td[2]”,
“Value”: “myTaskFound”
},
{
“Command”: “gotoIf”,
“Target”: “"\"${myTaskSearch}\"!=\"${myTaskFound}\"”,
“Value”: “myLoop_TaskSearch”
},
{
“Command”: “echo”,
“Target”: “/html/body/center/table[3]/tbody/tr[${myrow}]/td[7]”,
“Value”: “”
},
{
“Command”: “”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “”,
“Value”: “”
}
]
}

Thanks!

  1. Use a loop
  2. Open the link in a new tab
  3. Use selectWindow Command and TAB=1 in Target to select the newly opened tab
  4. Take screenshot
  5. Close the tab using selectWindow Command and TAB=CLOSE in Target
  6. Use selectWindow Command and TAB=0 to select the primary tab containing the table