| echo |
-- SNF_CS_69_Subscribe to remote calendar |
|
| open |
/csdemo/public/classic/ |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| type |
password |
gtn |
| waitForElementPresent |
id=UIPortalLoginFormAction |
|
| click |
id=UIPortalLoginFormAction |
|
| pause |
2000 |
|
| echo |
-- access the Agenda aplication |
|
| waitForElementPresent |
//div[9]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/a |
|
| click |
//div[9]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/a |
|
| echo |
-- right click and select remote calendar |
|
| waitForElementPresent |
//form[@id='UICalendars']/div[2]/div[1]/div[2] |
|
| click |
//form[@id='UICalendars']/div[2]/div[1]/div[2] |
|
| waitForElementPresent |
//div[@id='tmpMenuElement']/div/div[2]/div/div/div[3]/a |
|
| click |
//div[@id='tmpMenuElement']/div/div[2]/div/div/div[3]/a |
|
| echo |
-- enter data for Add remote calendar form |
|
| waitForElementPresent |
url |
|
| type |
url |
https://www.google.com/calendar/ical/en_gb.vietnamese%23holiday%40group.v.calendar.google.com/public/basic.ics |
| waitForElementPresent |
link=Next |
|
| click |
link=Next |
|
| echo |
---- type name |
|
| waitForElementPresent |
name |
|
| type |
name |
SNF_CS_69_RemoteCalendar |
| echo |
---- uncheck on Authentication |
|
| waitForElementPresent |
//input[@name='useAuthentication'] |
|
| click |
//input[@name='useAuthentication'] |
|
| echo |
---- Save form |
|
| waitForElementPresent |
//form[@id='UIRemoteCalendar']/div[2]/div/div/table/tbody/tr/td/a[2]/div/div/div |
|
| click |
//form[@id='UIRemoteCalendar']/div[2]/div/div/table/tbody/tr/td/a[2]/div/div/div |
|
| waitForElementPresent |
link=OK |
|
| click |
link=OK |
|
| pause |
500 |
|
| echo |
-- Verify data |
|
| verifyTextPresent |
SNF_CS_69_RemoteCalendar |
|
| echo |
-- check existed events of remote calendar |
|
| waitForElementPresent |
link=Month |
|
| click |
link=Month |
|
| waitForElementPresent |
//div[1]/table/tbody/tr/td[3]/div/div |
|
| click |
//div[1]/table/tbody/tr/td[3]/div/div |
|
| verifyTextPresent |
Labour Day |
|
| echo |
-- remove the remote calendar |
|
| waitForElementPresent |
//span[text()='SNF_CS_69_RemoteCalendar'] |
|
| mouseOver |
//span[text()='SNF_CS_69_RemoteCalendar'] |
|
| contextMenu |
//span[text()='SNF_CS_69_RemoteCalendar'] |
|
| waitForElementPresent |
link=Remove |
|
| click |
link=Remove |
|
| assertConfirmation |
The calendar and all its events and tasks will be deleted. Do you confirm? |
|
| verifyTextNotPresent |
SNF_CS_69_RemoteCalendar |
|
| pause |
1000 |
|
| clickAndWait |
link=Sign out |
|