| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| echo |
-- Add Action on Space Activites |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| echo |
--Log in |
|
| clickAndWait |
id=UIPortalLoginFormAction |
|
| waitForElementPresent |
link=My Spaces |
|
| clickAndWait |
link=My Spaces |
|
| echo |
-- Add a new Space |
|
| waitForElementPresent |
link=Add New Space |
|
| click |
link=Add New Space |
|
| waitForElementPresent |
displayName |
|
| type |
displayName |
Space06 |
| type |
description |
This is description for Space_06 |
| click |
link=Create |
|
| pause |
30000 |
|
| echo |
-- Verify space created |
|
| waitForElementPresent |
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 |
document.forms[2].elements[1] |
|
| type |
document.forms[2].elements[1] |
This is Comment for Activity in Space 06 |
| click |
document.forms[2].elements[2] |
|
| 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 |
-- Log out |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|