CopyPagePageTest
open /web/guest/home/
waitForElementPresent link=Manage Pages Test Page
clickAndWait link=Manage Pages Test Page
assertText //li[2]/span/a Manage Pages Test Page
assertElementNotPresent //section[@id='portlet_58']/header/h1 Sign In
assertElementNotPresent //section[@id='portlet_47']/header/h1 Hello World
assertTextNotPresent Sign In
assertTextNotPresent Hello World
clickAtAndWait //div/div[3]/div/ul/li[1]/a
waitForText //div/div[3]/a Liferay
store eval(selenium.isElementPresent('//li/ul/li[1]/div/div[3]/a')) welcomePresent
gotoIf ${welcomePresent} WelcomePresent
clickAt //li/div/div[1]
label WelcomePresent
waitForVisible //li[1]/ul/li/div/div[3]/a
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/span/span/a Page
select _88_type label=Portlet
assertText _88_copyLayoutId - Welcome - Manage Pages Test Page
select _88_copyLayoutId label=regexp:-\sWelcome
clickAtAndWait //input[@value='Save']
assertText //section/div/div/div/div Your request processed successfully.
open /web/guest/home/
waitForElementPresent link=Manage Pages Test Page
clickAtAndWait link=Manage Pages Test Page
assertText //li[2]/span/a Manage Pages Test Page
assertText //section[@id='portlet_58']/header/h1 Sign In
assertText //section[@id='portlet_47']/header/h1 Hello World