TearDownIGImageTest
open /web/guest/home/
waitForVisible link=Image Gallery Test Page Image Gallery Test Page
clickAtAndWait link=Image Gallery Test Page Image Gallery Test Page
store eval(selenium.isElementPresent('//div[2]/a/img')) igImage1Present
gotoIf !${igImage1Present} IGImage1NotPresent
clickAt //div[2]/a/img IG Image
waitForVisible //img[@alt='Delete'] Delete
clickAndWait //img[@alt='Delete'] Delete
assertConfirmation Are you sure you want to delete this?
label IGImage1NotPresent
store eval(selenium.isElementPresent('//div[2]/a/img')) igImage2Present
gotoIf !${igImage2Present} IGImage2NotPresent
clickAt //div[2]/a/img IG Image
waitForVisible //img[@alt='Delete'] Delete
clickAndWait //img[@alt='Delete'] Delete
assertConfirmation Are you sure you want to delete this?
label IGImage2NotPresent
store eval(selenium.isElementPresent('//div[2]/a/img')) igImage3Present
gotoIf !${igImage3Present} IGImage3NotPresent
clickAt //div[2]/a/img IG Image
waitForVisible //img[@alt='Delete'] Delete
clickAndWait //img[@alt='Delete'] Delete
assertConfirmation Are you sure you want to delete this?
label IGImage3NotPresent
store eval(selenium.isElementPresent('//div[2]/a/img')) igImage4Present
gotoIf !${igImage4Present} IGImage4NotPresent
clickAt //div[2]/a/img IG Image
waitForVisible //img[@alt='Delete'] Delete
clickAndWait //img[@alt='Delete'] Delete
assertConfirmation Are you sure you want to delete this?
label IGImage4NotPresent
store eval(selenium.isElementPresent('//div[2]/a/img')) igImage5Present
gotoIf !${igImage5Present} IGImage5NotPresent
clickAt //div[2]/a/img IG Image
waitForVisible //img[@alt='Delete'] Delete
clickAndWait //img[@alt='Delete'] Delete
assertConfirmation Are you sure you want to delete this?
label IGImage5NotPresent