TearDownWikiNodeTest
open /web/guest/home/
waitForElementPresent link=Wiki Test Page
clickAtAndWait link=Wiki Test Page
clickAtAndWait //img[@alt='Manage Wikis']
store eval(selenium.isPartialText('//td[1]/a','Main')) main1FirstNode
gotoIf ${main1FirstNode} Main1FirstNode
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label Main1FirstNode
store eval(selenium.isPartialText('//td[1]/a','Main')) main2FirstNode
gotoIf ${main2FirstNode} Main2FirstNode
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label Main2FirstNode
store eval(selenium.isPartialText('//td[1]/a','Main')) main3FirstNode
gotoIf ${main3FirstNode} Main3FirstNode
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label Main3FirstNode
store eval(selenium.isPartialText('//td[1]/a','Main')) main4FirstNode
gotoIf ${main4FirstNode} Main4FirstNode
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label Main4FirstNode
store eval(selenium.isPartialText('//td[1]/a','Main')) main5FirstNode
gotoIf ${main5FirstNode} Main5FirstNode
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label Main5FirstNode
store eval(selenium.isElementPresent('//tr[4]/td[4]/ul/li/strong/span')) wikiNode1Present
gotoIf !${wikiNode1Present} WikiNode1NotPresent
clickAt //tr[4]/td[4]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label WikiNode1NotPresent
store eval(selenium.isElementPresent('//tr[4]/td[4]/ul/li/strong/span')) wikiNode2Present
gotoIf !${wikiNode2Present} WikiNode2NotPresent
clickAt //tr[4]/td[4]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label WikiNode2NotPresent
store eval(selenium.isElementPresent('//tr[4]/td[4]/ul/li/strong/span')) wikiNode3Present
gotoIf !${wikiNode3Present} WikiNode3NotPresent
clickAt //tr[4]/td[4]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label WikiNode3NotPresent
store eval(selenium.isElementPresent('//tr[4]/td[4]/ul/li/strong/span')) wikiNode4Present
gotoIf !${wikiNode4Present} WikiNode4NotPresent
clickAt //tr[4]/td[4]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label WikiNode4NotPresent
store eval(selenium.isElementPresent('//tr[4]/td[4]/ul/li/strong/span')) wikiNode5Present
gotoIf !${wikiNode5Present} WikiNode5NotPresent
clickAt //tr[4]/td[4]/ul/li/strong/span
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label WikiNode5NotPresent