| open |
/csdemo |
|
| windowMaximize |
|
|
| echo |
-Manage Filter- |
|
| waitForElementPresent |
//div[@class='LoginButton'] |
|
| click |
//div[@class='LoginButton'] |
|
| waitForElementPresent |
username |
|
| type |
username |
mary |
| type |
password |
gtn |
| click |
xpath=//div[@id='UIPortalLoginFormAction']//a |
|
| waitForElementPresent |
link=Mail |
|
| click |
link=Mail |
|
| echo |
-- Create new filter |
|
| waitForElementPresent |
//div[6]/div |
|
| click |
//div[6]/div |
|
| click |
link=Click here to add a new filter |
|
| waitForElementPresent |
filter-name |
|
| type |
filter-name |
eXo_Test |
| type |
filter-from |
eXo_Test |
| select |
folder |
label=Sent |
| click |
link=Save |
|
| waitForElementPresent |
//div[@class='SelectedItem'] |
eXo_Test |
| click |
//a/div/div/div |
|
| echo |
-- Verify filtered messages -- |
|
| click |
link=Sent |
|
| waitForElementPresent |
link=eXo_Test |
|
| verifyElementPresent |
link=eXo_Test |
|
| echo |
-- Edit filter |
|
| click |
//div[@id='MailWorkingWorkspace']/div[1]/div/div/div/div/div/div[6]/div |
|
| waitForElementPresent |
link=Abort |
|
| click |
link=Abort |
|
| click |
//form[@id='UIMessageFilter']/div[2]/div[1]/div[1]/div[1]/a[2]/div |
|
| waitForElementPresent |
filter-name |
|
| type |
filter-name |
eXo_Test_Edited |
| select |
folder |
label=Inbox |
| click |
//form[@id='UIAddMessageFilter']/div[2]/div/div/div/div[3]/table/tbody/tr/td/div[1]/div/div/div |
|
| echo |
-- Verify edit filter-- |
|
| click |
//form[@id='UIMessageFilter']/div[2]/div[2]/table/tbody/tr/td/a/div/div/div |
|
| waitForElementPresent |
link=Inbox |
|
| click |
link=Inbox |
|
| waitForElementPresent |
link=eXo_Test |
|
| verifyElementPresent |
link=eXo_Test |
|
| echo |
-- Delete filter -- |
|
| click |
//div[@id='MailWorkingWorkspace']/div[1]//div[6]/div |
|
| waitForElementPresent |
//div[1]/div[1]/div[1]/a[1]/div |
|
| click |
//div[1]/div[1]/div[1]/a[1]/div |
|
| waitForElementNotPresent |
link=eXo_Test_Edited |
|
| click |
link=Sign out |
|
| close |
|
|