| open |
/portal/intranet/ |
|
| windowMaximize |
|
|
| echo |
-- Login |
|
| waitForElementPresent |
//b[contains(text(),'Sign in')] |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| echo |
-- Login |
|
| clickAndWait |
id=UIPortalLoginFormAction |
|
| echo |
-- Agenda |
|
| waitForElementPresent |
link=Agenda |
|
| clickAndWait |
link=Agenda |
|
| echo |
-- Add Event |
|
| waitForElementPresent |
link=Event |
|
| click |
link=Event |
|
| waitForElementPresent |
eventName |
|
| type |
eventName |
Test_CS09_Event |
| type |
//div[@class='FormContainer']//textarea[@id='description'] |
Test CS09 Event description |
| echo |
-- More Details |
|
| waitForElementPresent |
link=More Details |
|
| click |
link=More Details |
|
| echo |
-- Select Reminders tab |
|
| waitForElementPresent |
//div[text()='Reminders'] |
|
| click |
//div[text()='Reminders'] |
|
| echo |
-- Click Show a notification pop-up ?? |
|
| waitForElementPresent |
name=popupReminder |
|
| click |
name=popupReminder |
|
| echo |
-- Repeat |
|
| waitForElementPresent |
name=popupIsRepeat |
|
| click |
name=popupIsRepeat |
|
| echo |
-- Save |
|
| waitForElementPresent |
css=div.HorizontalLayout > div.UIAction > a.ActionButton.LightBlueStyle |
|
| click |
css=div.HorizontalLayout > div.UIAction > a.ActionButton.LightBlueStyle |
|
| echo |
-- Save and Send |
|
| waitForElementPresent |
link=Save and Send |
|
| click |
link=Save and Send |
|
| echo |
-- Check reminder message |
|
| echo |
: khong hieu cho nay` la nhu the nao ?????? |
|
| waitForElementPresent |
//div[@id='msgBox']//div[@class='MLPopupNotification'] |
|
| verifyElementPresent |
//div[@id='msgBox']//div[@class='MLPopupNotification'] |
|
| waitForTextPresent |
Test_CS09_Event |
|
| verifyTextPresent |
Test_CS09_Event |
|
| echo |
-- Search for and Delete Event |
|
| waitForElementPresent |
value |
|
| type |
value |
Test_CS09_Event |
| click |
//form[@id='UISearchForm']//div[@title='Search'] |
|
| waitForElementPresent |
//div[@class='UIListView SpliterResizableListArea']//tr[@class='UIListViewRow'] |
|
| click |
//div[@class='UIListView SpliterResizableListArea']//tr[@class='UIListViewRow'] |
|
| waitForElementPresent |
//table[@id='RowContainerDay']//div[@class='IconHolder DeleteEventIcon'] |
|
| click |
//table[@id='RowContainerDay']//div[@class='IconHolder DeleteEventIcon'] |
|
| assertConfirmation |
Are you sure want to delete? |
|
| echo |
-- Log out |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|