LoginPlugins2Test
setTimeout 180000
open /web/guest/home
waitForElementPresent link=Sign In
clickAndWait link=Sign In
type _58_login test@liferay.com
type _58_password test
click _58_rememberMeCheckbox
waitForVisible //input[@value='Sign In']
clickAndWait //input[@value='Sign In']
store eval(selenium.isElementPresent('//span/input')) iAgreePresent
gotoIf !${iAgreePresent} IAgreeNotPresent
waitForElementPresent //input[@value='I Agree']
clickAndWait //input[@value='I Agree']
label IAgreeNotPresent
waitForVisible reminderQueryAnswer
type reminderQueryAnswer Test
waitForVisible //input[@value='Save']
clickAndWait //input[@value='Save']
waitForElementPresent //li[1]/ul/li[2]/a[1]
clickAndWait //li[1]/ul/li[2]/a[1]