| open |
/csdemo |
|
| windowMaximize |
|
|
| echo |
-Switch View Contacts- |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| echo |
-- Add an Contact |
|
| waitForElementPresent |
link=Contacts |
|
| click |
link=Contacts |
|
| waitForElementPresent |
link=Contact |
|
| click |
link=Contact |
|
| waitForElementPresent |
firstName |
|
| type |
firstName |
Test_47 |
| type |
lastName |
eXo_Contact |
| type |
nickName |
Contact_47 |
| type |
jobTitle |
eXo_Tester_47 |
| type |
multiEmail0 |
Test_47@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_47 eXo_Contact |
|
| verifyElementPresent |
link=Test_47 eXo_Contact |
|
| waitForElementPresent |
link=Test_47@gmail.com |
|
| verifyElementPresent |
link=Test_47@gmail.com |
|
| echo |
-- Change to VCards view Contact |
|
| waitForElementPresent |
xpath=//div[@class='DownArrow1Icon'] |
|
| click |
xpath=//div[@class='DownArrow1Icon'] |
|
| waitForElementPresent |
link=VCards |
|
| click |
link=VCards |
|
| echo |
-- Verify VCards view displayed |
|
| waitForElementPresent |
link=Test_47@gmail.com |
|
| verifyElementPresent |
link=Test_47@gmail.com |
|
| pause |
3000 |
|
| echo |
-- Delete Contact |
|
| click |
//div[7]/div[1]/div |
|
| click |
link=List |
|
| waitForElementPresent |
link=Test_47@gmail.com |
|
| mouseOver |
link=Test_47@gmail.com |
|
| waitForElementPresent |
//tr[2]/td[1]/input |
|
| click |
//tr[2]/td[1]/input |
|
| click |
//div[2]/a[4]/div |
|
| assertConfirmation |
Are you sure you want to delete this contact ? |
|
| click |
link=Sign out |
|
| close |
|
|