Create Tasks And Check In Calendar
setTimeout 45000
open index.php/accounts/default/create
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Account
type Account_name Test Account ${randomSuffix}
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='AccountDetailsPortletView']/div/div/div/table/tbody/tr[1]/td Test Account ${randomSuffix}
click //div[@id='AccountDetailsAndRelationsView']/div[2]/div/ul[2]/li[2]/div[1]/div/div/div/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type Task_name Task Created On ${month}/${date}/${year}
click //div[@id='TaskModalEditView']/div/div/form/div[3]/div/div/a[1]/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent //body/div[5]/div[1]/a/span
click //body/div[5]/div[1]/a/span
click //a[@id='header-calendar-link']
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='CombinedCalendarView']/div/h1 Calendar
click //div[@id='my-calendars-list']/ul/li[3]/label
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //div[@id='my-calendars-list']/ul/li[2]/label
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Task Created On ${month}/${date}/${year}
open index.php/accounts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Create
verifyTextPresent Advanced
type AccountsSearchForm_anyMixedAttributes Test Account ${randomSuffix}
keyUp AccountsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a Test Account ${randomSuffix}
verifyTextPresent Test Account ${randomSuffix}
clickAndWait link=Test Account ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Test Account ${randomSuffix}
click //div[@id='AccountDetailsAndRelationsView']/div[2]/div/ul[2]/li[2]/div[1]/div/div/div/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Task
type Task_name Task Completed On ${month}/${date}/${year}
click link=More Details
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
select Task_status_value Completed
click //div[@id='TaskModalEditView']/div/div/form/div[3]/div/div/a[1]/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent //body/div[5]/div[1]/a/span
click //body/div[5]/div[1]/a/span
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //a[@id='header-calendar-link']
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='CombinedCalendarView']/div/h1 Calendar
click //div[@id='my-calendars-list']/ul/li[2]/ul/li/ul/li[1]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent SavedCalendar_startAttributeName_value
select SavedCalendar_startAttributeName_value label=Completed On
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Task Completed On ${month}/${date}/${year}
open index.php/accounts/default
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
verifyTextPresent Create
verifyTextPresent Advanced
type AccountsSearchForm_anyMixedAttributes Test Account ${randomSuffix}
keyUp AccountsSearchForm_anyMixedAttributes \10
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='list-view']/div[2]/table/tbody/tr[1]/td[3]/a Test Account ${randomSuffix}
verifyTextPresent Test Account ${randomSuffix}
clickAndWait link=Test Account ${randomSuffix}
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Test Account ${randomSuffix}
click //div[@id='AccountDetailsAndRelationsView']/div[2]/div/ul[2]/li[2]/div[1]/div/div/div/a/span
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Create Task
type Task_name Task Due On ${month}/${date}/${year}
click link=More Details
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
type Task_dueDateTime ${month}/${date}/${year} ${time}
click //div[@id='TaskModalEditView']/div/div/form/div[3]/div/div/a[1]/span[3]
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //body/div[5]/div[1]/a/span
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
click //a[@id='header-calendar-link']
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForText //div[@id='CombinedCalendarView']/div/h1 Calendar
click //div[@id='my-calendars-list']/ul/li[2]/ul/li/ul/li[1]/a
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForElementPresent SavedCalendar_startAttributeName_value
select SavedCalendar_startAttributeName_value label=Due On
clickAndWait save
waitForPageToLoad
waitForCondition selenium.browserbot.getCurrentWindow().jQuery.active == 0 30000
waitForTextPresent Task Due On ${month}/${date}/${year}