| open |
/portal/public/intranet |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/calendar |
|
| pause |
10000 |
|
| echo |
-Manage Event Category- |
|
| echo |
-- Add Event Category |
|
| waitForElementPresent |
//div[@class='AddCategoryIcon'] |
|
| click |
//div[@class='AddCategoryIcon'] |
|
| waitForElementPresent |
eventCategoryName |
|
| type |
eventCategoryName |
Test_SNF_CS05 |
| type |
//form[@id='UIEventCategoryForm']/div[2]/div/table/tbody/tr[2]/td[2]/textarea |
Test_SNF_CS05_Description |
| click |
link=Save |
|
| waitForTextPresent |
Test_SNF_CS05 |
|
| echo |
-- Edit Event Category |
|
| click |
//tr[7]/td[2]/div/img[1] |
|
| waitForElementPresent |
eventCategoryName |
Test_SNF_CS05 |
| verifyElementPresent |
eventCategoryName |
Test_SNF_CS05 |
| verifyElementPresent |
//form[@id='UIEventCategoryForm']/div[2]/div/table/tbody/tr[2]/td[2]/textarea |
Test_SNF_CS05_Description |
| type |
eventCategoryName |
Test_SNF_CS05_Edit |
| type |
//form[@id='UIEventCategoryForm']/div[2]/div/table/tbody/tr[2]/td[2]/textarea |
Test_SNF_CS05_Description_Edit |
| click |
link=Save |
|
| waitForTextPresent |
Test_SNF_CS05_Edit |
|
| echo |
-- Delete Event Category |
|
| click |
//tr[7]/td[2]/div/img[2] |
|
| assertConfirmation |
The category will be deleted. Do you confirm ? |
|
| waitForTextNotPresent |
Test_SNF_CS05_Edit |
|
| click |
link=Close |
|
| clickAndWait |
link=Logout |
|
| close |
|
|