| echo |
-- Log in |
|
| open |
/ecmdemo/public/acme/ |
|
| windowMaximize |
|
|
| waitForElementPresent |
link=Login |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Newsletter Manager |
|
| waitForElementPresent |
//a[@href= '/ecmdemo/groups/:platform:web-contributors/newslettermanager'] |
|
| clickAndWait |
//a[@href= '/ecmdemo/groups/:platform:web-contributors/newslettermanager'] |
|
| echo |
-- New Category |
|
| waitForElementPresent |
link=New Category |
|
| click |
link=New Category |
|
| waitForElementPresent |
CategoryName |
|
| type |
CategoryName |
NewCategory |
| type |
CategoryTitle |
NewCategory |
| waitForElementPresent |
//img[@alt='Select user'] |
|
| click |
//img[@alt='Select user'] |
|
| pause |
5000 |
|
| waitForElementPresent |
//table[@id='UIListUsers']//img[contains(@onclick,"root")] |
|
| click |
//table[@id='UIListUsers']//img[contains(@onclick,"root")] |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
5000 |
|
| echo |
-- Edit category |
|
| waitForElementPresent |
link=NewCategory |
|
| click |
link=NewCategory |
|
| waitForElementPresent |
UISubscriptionsCheckAll |
|
| click |
UISubscriptionsCheckAll |
|
| waitForElementPresent |
//div[@id='UISubscriptions']//a[text()="Administration"] |
|
| click |
//div[@id='UISubscriptions']//a[text()="Administration"] |
|
| waitForElementPresent |
link=Edit Category |
|
| click |
link=Edit Category |
|
| pause |
5000 |
|
| waitForElementPresent |
CategoryDescription |
|
| type |
CategoryDescription |
aaa |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
5000 |
|
| echo |
-- Delete Category |
|
| waitForElementPresent |
//div[@id='UISubscriptions']//a[text()="Administration"] |
|
| click |
//div[@id='UISubscriptions']//a[text()="Administration"] |
|
| waitForElementPresent |
link=Delete Category |
|
| click |
link=Delete Category |
|
| assertConfirmation |
Are you sure you want to delete this category ? |
|
| waitForTextNotPresent |
NewCategory |
|
| verifyTextNotPresent |
NewCategory |
|
| echo |
-- Log out |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|