TearDownTest
waitForElementPresent link=WD Setup Test Page
clickAtAndWait link=WD Setup Test Page
store eval(selenium.isElementPresent('//span[3]/a/img')) WikiPortletPresent
gotoIf !${WikiPortletPresent} WikiPortletNotPresent
clickAtAndWait //img[@alt='Manage Wikis']
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //div[2]/ul/li[6]/a
clickAndWait //div[2]/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
store eval(selenium.isElementPresent('//td[4]/ul/li/strong/span')) WikiNodePresent
gotoIf !${WikiNodePresent} WikiNodeNotPresent
clickAt //td[4]/ul/li/strong/span
waitForElementPresent //div[2]/ul/li[6]/a
clickAndWait //div[2]/ul/li[6]/a
assertConfirmation Are you sure you want to delete this?
label WikiNodeNotPresent
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
label WikiPortletNotPresent
clickAtAndWait link=Wiki Display Test Page
store eval(selenium.isElementPresent('//span[3]/a/img')) WDPortletPresent
gotoIf !${WDPortletPresent} WDPortletNotPresent
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
label WDPortletNotPresent
clickAtAndWait //div[2]/ul/li[1]/a
clickAtAndWait link=Manage Pages
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li/ul/li[3]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li/ul/li[3]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?