EditConfigAddAndSave
setTimeout 45000
store javascript{Math.floor(Math.random()*11000)} randomSuffix
open index.php
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
clickAndWait //div[@id='MenuView']/ul/li[1]/a/span
click //div[@id='HomeDashboardView']/div[2]/ul[1]/li[3]/div[1]/div/ul/li/ul/li[1]/a
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Edit Portlet
waitForElementPresent //html/body/div[5]/div[2]/div/div/div/form/div[1]/table/tbody/tr/td/input
type //html/body/div[5]/div[2]/div/div/div/form/div[1]/table/tbody/tr/td/input Test Title ${randomSuffix}
click save
waitForTextPresent Test Title ${randomSuffix}
click AddPortletLink
waitForElementPresent //div[@id='HomeDashboardPortletSelectionView']/ul/li[2]/div/a/span
click //div[@id='HomeDashboardPortletSelectionView']/ul/li[2]/div/a/span
waitForPageToLoad
waitForTextPresent Dashboard