AddEventRepeatingYearlyDayTest
open /web/guest/home/
waitForElementPresent link=Calendar Test Page
clickAtAndWait link=Calendar Test Page
clickAtAndWait //input[@value='Add Event']
select _8_startDateMonth label=January
select _8_startDateDay label=1
select _8_startDateYear label=2014
type _8_title Yearly Day Repeating Event
clickAt //input[@name='_8_recurrenceType' and @value='6']
waitForElementPresent //input[@name='_8_yearlyType' and @value='1']
clickAt //input[@name='_8_yearlyType' and @value='1']
select _8_yearlyPos label=Second
select _8_yearlyDay1 label=Monday
select _8_yearlyMonth1 label=February
type _8_yearlyInterval1 1
clickAt //input[@name='_8_endDateType' and @value='2']
select _8_endDateMonth label=January
select _8_endDateDay label=1
select _8_endDateYear label=2016
clickAtAndWait //input[@value='Save']
assertTextPresent Your request processed successfully.
open /web/guest/home/
waitForElementPresent link=Calendar Test Page
clickAtAndWait link=Calendar Test Page
clickAtAndWait link=Events
clickAndWait link=Yearly Day Repeating Event
assertText //div[1]/h1/span Yearly Day Repeating Event
assertText //dl[@class='property-list']/dd[1] 1/1/14
assertText //dl[@class='property-list']/dd[2] 1/1/16
open /web/guest/home/
waitForElementPresent link=Calendar Test Page
clickAtAndWait link=Calendar Test Page
clickAtAndWait link=Events
pause 5000
clickAt //td[6]/ul/li/strong/a
waitForElementPresent //div[@class='lfr-component lfr-menu-list']/ul/li[1]/a
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[1]/a
assertSelectedLabel _8_startDateMonth January
assertSelectedLabel _8_startDateDay 1
assertSelectedLabel _8_startDateYear 2014
assertValue _8_title Yearly Day Repeating Event
assertChecked //input[@name='_8_recurrenceType' and @value='6']
waitForElementPresent //input[@name='_8_yearlyType' and @value='1']
assertChecked //input[@name='_8_yearlyType' and @value='1']
assertSelectedLabel _8_yearlyPos Second
assertSelectedLabel _8_yearlyDay1 Monday
assertSelectedLabel _8_yearlyMonth1 February
assertValue _8_yearlyInterval1 1
assertChecked //input[@name='_8_endDateType' and @value='2']
assertSelectedLabel _8_endDateMonth January
assertSelectedLabel _8_endDateDay 1
assertSelectedLabel _8_endDateYear 2016
open /web/guest/home/
waitForElementPresent link=Calendar Test Page
clickAtAndWait link=Calendar Test Page
clickAtAndWait link=Year
select //select label=2014
waitForElementPresent //a[contains(@href, 'javascript:_8_updateCalendar(1, 10, 2014);')]
clickAtAndWait //a[contains(@href, 'javascript:_8_updateCalendar(1, 10, 2014);')]
assertElementPresent link=Yearly Day Repeating Event
clickAtAndWait link=Year
selectAndWait //select label=2015
waitForElementPresent //a[contains(@href, 'javascript:_8_updateCalendar(1, 9, 2015);')]
clickAtAndWait //a[contains(@href, 'javascript:_8_updateCalendar(1, 9, 2015);')]
assertElementPresent link=Yearly Day Repeating Event
clickAtAndWait link=Year
select //select label=2016
waitForElementPresent //a[contains(@href, 'javascript:_8_updateCalendar(1, 9, 2016);')]
clickAtAndWait //a[contains(@href, 'javascript:_8_updateCalendar(1, 9, 2016);')]
assertElementNotPresent link=Yearly Day Repeating Event