TearDownWikiNodeTest
open /web/guest/home/
waitForElementPresent link=Wiki Test Page
clickAtAndWait link=Wiki Test Page
clickAtAndWait link=Configuration
clickAtAndWait link=Display Settings
store eval(selenium.isPartialText('_86_availableVisibleNodes','Main')) mainHidden
gotoIf !${mainHidden} MainNotHidden
addSelection _86_availableVisibleNodes label=Main
clickAt //div/table/tbody/tr/td[2]/a[2]/img
pause 5000
label MainNotHidden
clickAtAndWait //input[@value='Save']
open /web/guest/home/
waitForElementPresent link=Wiki Test Page
clickAtAndWait link=Wiki Test Page
store eval(selenium.isElementPresent('//td[1]/span/a/img')) manageWikiPresent
gotoIf !${manageWikiPresent} ManageWikiNotPresent
clickAtAndWait //img[@alt='Manage Wikis']
store eval(selenium.isPartialText('//tr[3]/td[1]','Main')) firstWikiNode1NotMain
gotoIf ${firstWikiNode1NotMain} FirstWikiNode1NotMain
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 FirstWikiNode1NotMain
store eval(selenium.isPartialText('//tr[3]/td[1]','Main')) firstWikiNode2NotMain
gotoIf ${firstWikiNode2NotMain} FirstWikiNode2NotMain
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 FirstWikiNode2NotMain
store eval(selenium.isPartialText('//tr[3]/td[1]','Main')) firstWikiNode3NotMain
gotoIf ${firstWikiNode3NotMain} FirstWikiNode3NotMain
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 FirstWikiNode3NotMain
store eval(selenium.isPartialText('//tr[3]/td[1]','Main')) firstWikiNode4NotMain
gotoIf ${firstWikiNode4NotMain} FirstWikiNode4NotMain
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 FirstWikiNode4NotMain
store eval(selenium.isPartialText('//tr[3]/td[1]','Main')) firstWikiNode5NotMain
gotoIf ${firstWikiNode5NotMain} FirstWikiNode5NotMain
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 FirstWikiNode5NotMain
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
label ManageWikiNotPresent