| open |
/portal/public/intranet |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| click |
//div[2]/div[2]/div[1]/div/div/div[1] |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/contact |
|
| pause |
10000 |
|
| echo |
-Tag Contacts- |
|
| echo |
-- Add an Contact |
|
| waitForElementPresent |
link=Contact |
|
| click |
link=Contact |
|
| waitForElementPresent |
firstName |
|
| type |
firstName |
Test_48 |
| type |
lastName |
eXo_Contact |
| type |
nickName |
Contact_48 |
| type |
jobTitle |
eXo_Tester_48 |
| type |
multiEmail0 |
Test_48@gmail.com |
| click |
link=Save |
|
| echo |
-- Verify contacts created |
|
| waitForElementPresent |
xpath=//div[@class='PersonalAddress']//div[@title='My Contacts'] |
|
| click |
xpath=//div[@class='PersonalAddress']//div[@title='My Contacts'] |
|
| waitForElementPresent |
link=Test_48 eXo_Contact |
|
| verifyElementPresent |
link=Test_48 eXo_Contact |
|
| waitForElementPresent |
link=Test_48@gmail.com |
|
| verifyElementPresent |
link=Test_48@gmail.com |
|
| echo |
-- Set tag for Contact |
|
| click |
//tr[2]/td[1]/input |
|
| click |
//div[2]/a[2]/div |
|
| waitForElementPresent |
tagName |
|
| type |
tagName |
Tag_Contact_48 |
| click |
//form[@id='UITagForm']/div[2]/div/div/table/tbody/tr/td/div[1]/div/div/div/a |
|
| echo |
-- Verify Tag added |
|
| waitForElementPresent |
link=Tag_Contact_48 |
|
| click |
link=Tag_Contact_48 |
|
| waitForElementPresent |
link=Test_48 eXo_Contact |
|
| verifyElementPresent |
link=Test_48 eXo_Contact |
|
| echo |
-- Delete Contact |
|
| click |
//div[2]/a[4]/div |
|
| assertConfirmation |
Are you sure you want to delete this contact ? |
|
| waitForElementNotPresent |
link=Test_48 eXo_Contact |
|
| verifyElementNotPresent |
link=Test_48 eXo_Contact |
|
| echo |
-- Delete tag |
|
| mouseOver |
link=Tag_Contact_48 |
|
| contextMenu |
link=Tag_Contact_48 |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| waitForElementNotPresent |
link=Tag_Contact_48 |
|
| verifyElementNotPresent |
link=Tag_Contact_48 |
|
| assertConfirmation |
Are you sure you want to delete this tag ? |
|
| clickAndWait |
link=Logout |
|
| close |
|
|