SavePageTypeLinkToPageTest
open /web/guest/home/
waitForVisible link=Manage Pages Test Page
clickAtAndWait link=Manage Pages Test Page
clickAtAndWait //div/div[3]/div/ul/li[1]/a
waitForText //div/div[3]/a Guest
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[2]/div/div[3]/a
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //ul[2]/li[1]/span/span/a
waitForText _88_type Portlet Panel Embedded Web Content URL Link to Page
select _88_type label=Link to Page
waitForVisible TypeSettingsProperties--linkToLayoutId--
assertText TypeSettingsProperties--linkToLayoutId-- - Welcome - Manage Pages Test Page
select TypeSettingsProperties--linkToLayoutId-- label=regexp:-\sWelcome
clickAndWait //input[@value='Save']
open /web/guest/home/
waitForElementPresent link=Manage Pages Test Page
clickAtAndWait link=Manage Pages Test Page
assertText //nav/ul/li[2]/span/a Welcome
assertText //section[@id='portlet_58']/header/h1 Sign In
assertText //section[@id='portlet_47']/header/h1 Hello World