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
clickAtAndWait //img[@alt='Manage Wikis']
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) wikiNode1Present
gotoIf !${wikiNode1Present} wikiNode1NotPresent
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 wikiNode1NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) wikiNode2Present
gotoIf !${wikiNode2Present} wikiNode2NotPresent
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 wikiNode2NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) wikiNode3Present
gotoIf !${wikiNode3Present} wikiNode3NotPresent
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 wikiNode3NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) wikiNode4Present
gotoIf !${wikiNode4Present} wikiNode4NotPresent
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 wikiNode4NotPresent
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) wikiNode5Present
gotoIf !${wikiNode5Present} wikiNode5NotPresent
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 wikiNode5NotPresent