| open |
/portal/public/default/ |
|
| windowMaximize |
|
|
| echo |
-- Add Action on Space Activites |
|
| clickAndWait |
link=exact:Acme: Social Intranet |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a |
|
| waitForElementPresent |
link=My Spaces |
|
| clickAndWait |
link=My Spaces |
|
| echo |
-- Add a new Space |
|
| waitForElementPresent |
link=Add New Space |
|
| click |
link=Add New Space |
|
| waitForElementPresent |
name |
|
| type |
name |
Space06 |
| type |
description |
This is description for Space_06 |
| click |
link=Create |
|
| pause |
10000 |
|
| echo |
-- Verify space created |
|
| waitForElementPresent |
link=Space06 |
|
| verifyElementPresent |
link=Space06 |
|
| click |
link=Space06 |
|
| waitForTextPresent |
Space06 was created |
|
| verifyTextPresent |
Space06 was created |
|
| echo |
-- Add Activites |
|
| pause |
1000 |
|
| waitForElementPresent |
composerInput |
|
| type |
composerInput |
This is activity for Space 06 |
| echo |
-- share link |
|
| waitForElementPresent |
//form[@id='UIComposer']/div[2]/div[2]/div/a |
|
| click |
//form[@id='UIComposer']/div[2]/div[2]/div/a |
|
| waitForElementPresent |
InputLink |
|
| type |
InputLink |
http://google.com |
| echo |
-- click attach button |
|
| waitForElementPresent |
AttachButton |
|
| click |
AttachButton |
|
| echo |
-- share all |
|
| pause |
3000 |
|
| waitForElementPresent |
ShareButton |
|
| click |
ShareButton |
|
| echo |
-- Verify activity is added |
|
| waitForTextPresent |
This is activity for Space 06 |
|
| verifyTextPresent |
This is activity for Space 06 |
|
| echo |
-- Comment for activity added |
|
| waitForElementPresent |
link=Comment |
|
| click |
link=Comment |
|
| waitForElementPresent |
//div[7]/textarea |
|
| type |
//div[7]/textarea |
This is Comment for Activity in Space 06 |
| click |
//div[7]/input |
|
| waitForTextPresent |
This is Comment for Activity in Space 06 |
|
| verifyTextPresent |
This is Comment for Activity in Space 06 |
|
| echo |
-- Like and Unlike Activity |
|
| verifyElementPresent |
link=Like |
|
| click |
link=Like |
|
| waitForTextPresent |
You like this. |
|
| verifyTextPresent |
You like this. |
|
| verifyElementPresent |
link=Unlike |
|
| click |
link=Unlike |
|
| waitForTextNotPresent |
You like this. |
|
| verifyTextNotPresent |
You like this. |
|
| echo |
-- Delete Space created |
|
| click |
link=My Spaces |
|
| waitForElementPresent |
//a[@title='Delete Space'] |
|
| click |
//a[@title='Delete Space'] |
|
| waitForConfirmation |
Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too. |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| close |
|
|