| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| echo |
-- Manage Activites |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| waitForElementPresent |
link=Activity Streams |
|
| clickAndWait |
link=Activity Streams |
|
| echo |
-- Add Activites |
|
| type |
composerInput |
This is activity for User_Demo_23 |
| keyPress |
composerInput |
\13 |
| echo |
-- share link |
|
| waitForElementPresent |
css=a.UILinkActivityComposer |
|
| click |
css=a.UILinkActivityComposer |
|
| echo |
-- enter link |
|
| waitForElementPresent |
InputLink |
|
| type |
InputLink |
http://google.com |
| echo |
-- click attach button |
|
| waitForElementPresent |
AttachButton |
|
| click |
AttachButton |
|
| echo |
-- share all |
|
| waitForElementPresent |
ShareButton |
|
| click |
ShareButton |
|
| echo |
-- Verify activity is added |
|
| waitForTextPresent |
This is activity for User_Demo_23 |
|
| verifyTextPresent |
This is activity for User_Demo_23 |
|
| verifyElementPresent |
link=Google |
|
| verifyTextPresent |
Source : http://google.com |
|
| echo |
--Delete User Activity |
|
| waitForElementPresent |
//h5/span |
|
| click |
//h5/span |
|
| assertConfirmation |
Are you sure to delete this activity? |
|
| waitForTextNotPresent |
This is activity for User_Demo_23 |
|
| verifyTextNotPresent |
This is activity for User_Demo_23 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|