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']
clickAt //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('link=selenium1 liferay1')) Tag1Present
gotoIf !${Tag1Present} Tag1NotPresent
clickAt link=selenium1 liferay1
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('link=selenium2 liferay2')) Tag2Present
gotoIf !${Tag2Present} Tag2NotPresent
clickAt link=selenium2 liferay2
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('link=selenium3 liferay3')) Tag3Present
gotoIf !${Tag3Present} Tag3NotPresent
clickAt link=selenium3 liferay3
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('link=selenium4 liferay4')) Tag4Present
gotoIf !${Tag4Present} Tag4NotPresent
clickAt link=selenium4 liferay4
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('link=sélénium1 liféray1')) Tag5Present
gotoIf !${Tag5Present} Tag5NotPresent
clickAt link=sélénium1 liféray1
pause 500
waitForElementPresent //input[@value='Delete']
clickAt //input[@value='Delete']
assertConfirmation Are you sure you want to delete this tag?
label Tag5NotPresent
pause 500
waitForElementPresent link=Back to My Community
clickAtAndWait link=Back to My Community
waitForElementPresent link=Home
clickAtAndWait link=Home
clickAtAndWait link=Manage Pages
waitForVisible //div[@id='_88_layoutsTreeOutput']/ul/li/ul/li[3]/a/span
clickAtAndWait //div[@id='_88_layoutsTreeOutput']/ul/li/ul/li[3]/a/span
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/a
clickAtAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAtAndWait link=Return to Full Page