LoginPlugins2Test
setTimeout 180000
open /web/guest/home
waitForVisible link=Sign In
clickAtAndWait link=Sign In
waitForVisible _58_login
type _58_login test@liferay.com
type _58_password test
waitForVisible _58_rememberMeCheckbox
click _58_rememberMeCheckbox
waitForVisible //input[@value='Sign In']
clickAtAndWait //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 //div/div[4]/div/ul/li[2]/a/span[1]
clickAndWait //div/div[4]/div/ul/li[2]/a/span[1]