| open |
/csdemo |
|
| windowMaximize |
|
|
| echo |
-Manage Event Category- |
|
| echo |
-- Login |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| pause |
5000 |
|
| echo |
-- Add Event Category |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| 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=Sign out |
|
| close |
|
|