| open |
/socialdemo/public/classic/ |
|
| windowMaximize |
|
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| waitForElementPresent |
link=Activities |
|
| click |
link=Activities |
|
| waitForElementPresent |
link=My Status |
|
| click |
link=My Status |
|
| pause |
1000 |
|
| echo |
-- Add Activites |
|
| type |
composerInput |
This is activity for User_Demo_24 |
| keyPress |
composerInput |
\13 |
| waitForElementPresent |
ShareButton |
|
| click |
ShareButton |
|
| echo |
-- Verify activity is added |
|
| waitForTextPresent |
This is activity for User_Demo_24 |
|
| verifyTextPresent |
This is activity for User_Demo_24 |
|
| pause |
500 |
|
| echo |
-- Comment for Activities |
|
| waitForElementPresent |
link=Comment |
|
| click |
link=Comment |
|
| verifyElementPresent |
document.forms[1].elements[1] |
|
| type |
document.forms[1].elements[1] |
This is Comment for Activity Demo |
| click |
document.forms[1].elements[2] |
|
| waitForTextPresent |
This is Comment for Activity Demo |
|
| verifyTextPresent |
This is Comment for Activity Demo |
|
| echo |
--Delete Comment-- |
|
| waitForElementPresent |
css=span.CloseCMContentHilight |
|
| click |
css=span.CloseCMContentHilight |
|
| assertConfirmation |
Are you sure to delete this comment? |
|
| waitForElementNotPresent |
This is Comment for Activity Demo |
|
| verifyTextNotPresent |
This is Comment for Activity Demo |
|
| echo |
-- Like and Unlike Activity |
|
| verifyElementPresent |
link=Like |
|
| click |
link=Like |
|
| verifyElementPresent |
link=Unlike |
|
| click |
link=Unlike |
|
| waitForTextNotPresent |
You like this. |
|
| verifyTextNotPresent |
You like this. |
|
| pause |
500 |
|
| 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_24 |
|
| verifyTextNotPresent |
This is activity for User_Demo_24 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|