TearDownTest
open /web/guest/home/
waitForElementPresent link=Enterprise Admin Test Page
clickAtAndWait link=Enterprise Admin Test Page
clickAtAndWait link=Users
clickAtAndWait link=Password Policies
type _79_name Test
clickAtAndWait //input[@value='Search Password Policies']
store eval(selenium.isElementPresent('//strong/span')) passwordPolicy1Present
gotoIf !${passwordPolicy1Present} PasswordPolicy1NotPresent
clickAt //strong/span
waitForElementPresent //div[2]/ul/li[4]/a
clickAndWait //div[2]/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label PasswordPolicy1NotPresent
store eval(selenium.isElementPresent('//strong/span')) passwordPolicy2Present
gotoIf !${passwordPolicy2Present} PasswordPolicy2NotPresent
clickAt //strong/span
waitForElementPresent //div[2]/ul/li[4]/a
clickAndWait //div[2]/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label PasswordPolicy2NotPresent
store eval(selenium.isElementPresent('//strong/span')) passwordPolicy3Present
gotoIf !${passwordPolicy3Present} PasswordPolicy3NotPresent
clickAt //strong/span
waitForElementPresent //div[2]/ul/li[4]/a
clickAndWait //div[2]/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label PasswordPolicy3NotPresent
store eval(selenium.isElementPresent('//strong/span')) passwordPolicy4Present
gotoIf !${passwordPolicy4Present} PasswordPolicy4NotPresent
clickAt //strong/span
waitForElementPresent //div[2]/ul/li[4]/a
clickAndWait //div[2]/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label PasswordPolicy4NotPresent
store eval(selenium.isElementPresent('//strong/span')) passwordPolicy5Present
gotoIf !${passwordPolicy5Present} PasswordPolicy5NotPresent
clickAt //strong/span
waitForElementPresent //div[2]/ul/li[4]/a
clickAndWait //div[2]/ul/li[4]/a
assertConfirmation Are you sure you want to delete this?
label PasswordPolicy5NotPresent
open /web/guest/home/
waitForElementPresent link=Manage Pages
clickAtAndWait link=Manage Pages
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page1Present
gotoIf !${page1Present} Page1NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page1NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page2Present
gotoIf !${page2Present} Page2NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page2NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page3Present
gotoIf !${page3Present} Page3NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page3NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page4Present
gotoIf !${page4Present} Page4NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page4NotPresent
store eval(selenium.isElementPresent('//div/ul/li[2]/ul/li[2]/a/span')) page5Present
gotoIf !${page5Present} Page5NotPresent
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li[2]/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
label Page5NotPresent