rentapp
store 1 A
while ${A}<N
open rental_applications/${A}
clickAndWait id=print_rental_application_link
storeElementPresent id=no_screening_reports isPresent
gotoIf ${isPresent} == true noscreens
storeEval this.browserbot.findElement('//*[@id=\'screenings\']/div/ul/li/div[2]/a') url
open ${url}
waitForElementPresent id=credit-report
captureEntirePageScreenshot ${A}.png
label noscreens
storeEval new Number(storedVars['A'])+1 A
endWhile