AddNewSamplePortletDataTest
waitForElementPresent link=Sign Out
clickAndWait link=Sign Out
open http://localhost:8080/web/guest/home
waitForElementPresent _58_login
type _58_login test@liferay.com
type _58_password test
clickAndWait //input[@value='Sign In']
waitForElementPresent link=Joe Bloggs
clickAndWait //div[@id='banner']/div/div/ul/li[8]/ul/li[6]/ul/li[2]/a[1]
clickAndWait link=View Staged Page
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
click link=Add Application
waitForElementPresent //div[@id='CMS-Journal']/p/a
click //div[@id='CMS-Journal']/p/a
waitForElementPresent //div[@id='Collaboration-Blogs']/p/a
click //div[@id='Collaboration-Blogs']/p/a
waitForElementPresent //div[@id='CMS-AssetPublisher']/p/a
click //div[@id='CMS-AssetPublisher']/p/a
waitForElementPresent //div[@id='Polls-Polls']/p/a
click //div[@id='Polls-Polls']/p/a
waitForElementPresent //input[@value='Add Question']
clickAndWait //input[@value='Add Question']
waitForElementPresent _25_title
type _25_title Superman or Batman?!
type _25_description Who could be the best superhero of them all?
type _25_choiceDescriptiona Superman
type _25_choiceDescriptionb Batman
waitForElementPresent //input[@value='Save']
clickAndWait //input[@value='Save']
clickAndWait link=exact:Superman or Batman?!
click //input[@name='_25_choiceId' and @value='10911']
click //input[@value='Vote']
waitForTextPresent Your request processed successfully.
clickAndWait link=Return to Full Page
waitForElementPresent link=1
assertElementPresent //div[starts-with(@id,'portlet-wrapper-101')]/div[1]/span
clickAndWait //div[starts-with(@id, 'portlet-wrapper-101')]/div[1]/div[1]/nobr[2]/a
waitForElementPresent link=Display Settings
selectAndWait _86_selectionStyle label=Manual
selectAndWait _86_assetType label=Blogs Entry
waitForElementPresent link=Third Test Entry
clickAndWait link=Third Test Entry
waitForTextPresent You have successfully updated the setup.
click link=Display Settings
waitForElementPresent link=Return to Full Page
clickAndWait link=Return to Full Page
assertElementPresent link=Third Test Entry
waitForElementPresent //div[@id='portlet-small-icon-bar_33']/nobr[2]/a/img
clickAndWait //div[@id='portlet-small-icon-bar_33']/nobr[2]/a/img
select _86_pageDelta label=1
clickAndWait //input[@value='Save']
waitForTextPresent You have successfully updated the setup.
clickAndWait link=Return to Full Page
assertElementPresent link=Test Entry
assertElementNotPresent link=Second Test Entry
waitForElementPresent //input[@value='Add Article']
clickAndWait //input[@value='Add Article']
waitForElementPresent _15_title
typeKeys _15_title Article to be Published
type _15_title Article to be Published
pause 5000
waitForElementPresent _15_editor
waitForElementPresent FCKeditor1___Frame
waitForElementPresent //textarea
selectFrame //iframe[@id="_15_editor"]
selectFrame //iframe[@id="FCKeditor1___Frame"]
selectFrame //iframe
typeKeys //body This article needs to be published. Toda!
type //body This article needs to be published. Today!
selectFrame relative=top
type _15_description Please publish me!
select _15_type label=Test
clickAndWait //input[@value='Save and Approve']
clickAndWait link=Articles
waitForElementPresent link=Article to be Published
clickAndWait link=Return to Full Page