TearDownProducerTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=WSRP
clickAtAndWait link=Producers
store eval(selenium.isElementPresent('//strong/a')) producer1Present
gotoIf !${producer1Present} Producer1NotPresent
clickAt //strong/a Actions
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Delete
assertConfirmation Are you sure you want to delete this?
label Producer1NotPresent
store eval(selenium.isElementPresent('//strong/a')) producer2Present
gotoIf !${producer2Present} Producer2NotPresent
clickAt //strong/a Actions
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Delete
assertConfirmation Are you sure you want to delete this?
label Producer2NotPresent
store eval(selenium.isElementPresent('//strong/a')) producer3Present
gotoIf !${producer3Present} Producer3NotPresent
clickAt //strong/a Actions
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Delete
assertConfirmation Are you sure you want to delete this?
label Producer3NotPresent
store eval(selenium.isElementPresent('//strong/a')) producer4Present
gotoIf !${producer4Present} Producer4NotPresent
clickAt //strong/a Actions
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Delete
assertConfirmation Are you sure you want to delete this?
label Producer4NotPresent
store eval(selenium.isElementPresent('//strong/a')) producer5Present
gotoIf !${producer5Present} Producer5NotPresent
clickAt //strong/a Actions
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[2]/a Delete
assertConfirmation Are you sure you want to delete this?
label Producer5NotPresent