| open |
/portal/intranet/ |
|
| windowMaximize |
|
|
| echo |
-- Sign In |
|
| waitForElementPresent |
//b[contains(text(),'Sign in')] |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| echo |
-- Go to Email |
|
| waitForElementPresent |
css=a.ItemBar.Email |
|
| clickAndWait |
css=a.ItemBar.Email |
|
| echo |
-- Add an Contact |
|
| waitForElementPresent |
//div[contains(text(),'Contacts')] |
|
| click |
//div[contains(text(),'Contacts')] |
|
| waitForElementPresent |
//div[@class='IconHolder AddContact']/div[text()='Add'] |
|
| click |
//div[@class='IconHolder AddContact']/div[text()='Add'] |
|
| waitForElementPresent |
id=first-name |
|
| type |
id=first-name |
Test_44 |
| type |
id=last-name |
eXo_Contact |
| type |
nickName |
Contact_44 |
| type |
jobTitle |
eXo_Tester_44 |
| type |
id=email0 |
Test_44@gmail.com |
| click |
link=Save |
|
| echo |
-- Close |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| echo |
-- Open Contact form again. |
|
| waitForElementPresent |
//div[contains(text(),'Contacts')] |
|
| click |
//div[contains(text(),'Contacts')] |
|
| echo |
-- Verify contacts created |
|
| waitForElementPresent |
link=Test_44 eXo_Contact |
|
| click |
link=Test_44 eXo_Contact |
|
| waitForElementPresent |
link=Test_44@gmail.com |
|
| verifyElementPresent |
link=Test_44@gmail.com |
|
| echo |
-- Delete Contact |
|
| echo |
* CS-5506 |
|
| waitForElementPresent |
//div[@class='IconHolder DeleteContact']/div[text()='Delete'] |
|
| click |
//div[@class='IconHolder DeleteContact']/div[text()='Delete'] |
|
| assertConfirmation |
Are you sure you want to delete this contact ? |
|
| echo |
-- Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|