TearDownTest
waitForElementPresent link=Blogs Tags Test Page
clickAtAndWait link=Blogs Tags Test Page
pause 5000
store eval(selenium.isElementPresent('//span[3]/a/img')) BlogsPortletPresent
gotoIf !${BlogsPortletPresent} BlogsPortletNotPresent
store eval(selenium.isElementPresent('link=Delete')) EntryAPresent
gotoIf !${EntryAPresent} EntryANotPresent
clickAtAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label EntryANotPresent
store eval(selenium.isElementPresent('link=Delete')) EntryBPresent
gotoIf !${EntryBPresent} EntryBNotPresent
clickAtAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label EntryBNotPresent
store eval(selenium.isElementPresent('link=Delete')) EntryCPresent
gotoIf !${EntryCPresent} EntryCNotPresent
clickAtAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label EntryCNotPresent
waitForElementPresent //img[@alt='Remove']
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
label BlogsPortletNotPresent
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
waitForElementPresent link=Tags
clickAtAndWait link=Tags
pause 5000
store eval(selenium.isElementPresent('//div[4]/ul/li/span/a')) Tag1Present
gotoIf !${Tag1Present} Tag1NotPresent
clickAt //div[4]/ul/li/span/a
pause 500
waitForElementPresent //input[@value='Delete']
clickAt //input[@value='Delete']
assertConfirmation Are you sure you want to delete this tag?
label Tag1NotPresent
pause 500
store eval(selenium.isElementPresent('//div[4]/ul/li/span/a')) Tag2Present
gotoIf !${Tag2Present} Tag2NotPresent
clickAt //div[4]/ul/li/span/a
pause 500
waitForElementPresent //input[@value='Delete']
clickAt //input[@value='Delete']
assertConfirmation Are you sure you want to delete this tag?
label Tag2NotPresent
pause 500
store eval(selenium.isElementPresent('//div[4]/ul/li/span/a')) Tag3Present
gotoIf !${Tag3Present} Tag3NotPresent
clickAt //div[4]/ul/li/span/a
pause 500
waitForElementPresent //input[@value='Delete']
clickAt //input[@value='Delete']
assertConfirmation Are you sure you want to delete this tag?
label Tag3NotPresent
pause 500
store eval(selenium.isElementPresent('//div[4]/ul/li/span/a')) Tag4Present
gotoIf !${Tag4Present} Tag4NotPresent
clickAt //div[4]/ul/li/span/a
pause 500
waitForElementPresent //input[@value='Delete']
clickAt //input[@value='Delete']
assertConfirmation Are you sure you want to delete this tag?
label Tag4NotPresent
store eval(selenium.isElementPresent('//div[4]/ul/li/span/a')) Tag5Present
gotoIf !${Tag5Present} Tag5NotPresent
clickAt //div[4]/ul/li/span/a
pause 500
waitForElementPresent //input[@value='Delete']
clickAt //input[@value='Delete']
assertConfirmation Are you sure you want to delete this tag?
label Tag5NotPresent