TearDownConsumerTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=WSRP
clickAtAndWait link=Consumers
store eval(selenium.isElementPresent('//td[2]/ul/li/strong/span')) consumer1Present
gotoIf !${consumer1Present} Consumer1NotPresent
clickAt //td[2]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[4]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label Consumer1NotPresent
store eval(selenium.isElementPresent('//td[2]/ul/li/strong/span')) consumer2Present
gotoIf !${consumer2Present} Consumer2NotPresent
clickAt //td[2]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[4]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label Consumer2NotPresent
store eval(selenium.isElementPresent('//td[2]/ul/li/strong/span')) consumer3Present
gotoIf !${consumer3Present} Consumer3NotPresent
clickAt //td[2]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[4]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label Consumer3NotPresent
store eval(selenium.isElementPresent('//td[2]/ul/li/strong/span')) consumer4Present
gotoIf !${consumer4Present} Consumer4NotPresent
clickAt //td[2]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[4]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label Consumer4NotPresent
store eval(selenium.isElementPresent('//td[2]/ul/li/strong/span')) consumer5Present
gotoIf !${consumer5Present} Consumer5NotPresent
clickAt //td[2]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[4]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label Consumer5NotPresent