TearDownWikiNodeTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Wiki
store eval(selenium.isElementPresent('//tr[4]/td[4]/ul/li/strong/a')) wikiNode1Last
gotoIf !${wikiNode1Last} WikiNode1NotLast
clickAt //td[4]/ul/li/strong/a Actions
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
assertText //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
assertConfirmation Are you sure you want to delete this?
store eval(selenium.isElementPresent('//tr[4]/td[4]/ul/li/strong/a')) wikiNode2Last
gotoIf !${wikiNode2Last} WikiNode2NotLast
clickAt //td[4]/ul/li/strong/a Actions
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
assertText //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
assertConfirmation Are you sure you want to delete this?
store eval(selenium.isElementPresent('//tr[4]/td[4]/ul/li/strong/a')) wikiNode3Last
gotoIf !${wikiNode3Last} WikiNode3NotLast
clickAt //td[4]/ul/li/strong/a Actions
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
assertText //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
assertConfirmation Are you sure you want to delete this?
store eval(selenium.isElementPresent('//tr[4]/td[4]/ul/li/strong/a')) wikiNode4Last
gotoIf !${wikiNode4Last} WikiNode4NotLast
clickAt //td[4]/ul/li/strong/a Actions
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
assertText //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
assertConfirmation Are you sure you want to delete this?
label WikiNode4NotLast
label WikiNode3NotLast
label WikiNode2NotLast
label WikiNode1NotLast
clickAt //td[4]/ul/li/strong/a Actions
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
assertText //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a Delete
assertConfirmation Are you sure you want to delete this?