SavePageTypeWebContentTest
open /web/guest/home/
waitForElementPresent link=Control Panel
clickAtAndWait link=Control Panel
clickAtAndWait link=Web Content
storeText //td[2]/a articleID
open /web/guest/home/
waitForVisible link=Manage Pages Test Page
clickAtAndWait link=Manage Pages Test Page
clickAt main-content
clickAt navigation
clickAt dockbar
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[2]/div/div[3]/a
clickAtAndWait //li[2]/div/div[3]/a
clickAtAndWait //li[@id='_88_tabs3pageTabsId']/span/span/a Page
waitForText _88_type Portlet Panel Embedded Web Content URL Link to Page
select _88_type label=Web Content
waitForVisible TypeSettingsProperties--article-id--
type TypeSettingsProperties--article-id-- ${articleID}
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 //p This is a test Web Content