TearDownShoppingCategoryTest
open /web/guest/home/
waitForElementPresent link=Shopping Test Page
clickAtAndWait link=Shopping Test Page
clickAtAndWait link=Categories
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/a')) shoppingCategory1Present
gotoIf !${shoppingCategory1Present} ShoppingCategory1NotPresent
click //td[4]/ul/li/strong/a
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label ShoppingCategory1NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/a')) shoppingCategory2Present
gotoIf !${shoppingCategory2Present} ShoppingCategory2NotPresent
click //td[4]/ul/li/strong/a
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label ShoppingCategory2NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/a')) shoppingCategory3Present
gotoIf !${shoppingCategory3Present} ShoppingCategory3NotPresent
click //td[4]/ul/li/strong/a
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label ShoppingCategory3NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/a')) shoppingCategory4Present
gotoIf !${shoppingCategory4Present} ShoppingCategory4NotPresent
click //td[4]/ul/li/strong/a
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label ShoppingCategory4NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/a')) shoppingCategory5Present
gotoIf !${shoppingCategory5Present} ShoppingCategory5NotPresent
click //td[4]/ul/li/strong/a
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[3]/a
assertConfirmation Are you sure you want to delete this?
label ShoppingCategory5NotPresent