| open |
/csdemo |
|
| windowMaximize |
|
|
| echo |
-Manage Address Book- |
|
| echo |
-- Login |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| type |
password |
gtn |
| click |
//a[contains(@onclick,'login')] |
|
| echo |
-- Add Address Book |
|
| waitForElementPresent |
link=Contacts |
|
| click |
link=Contacts |
|
| waitForElementPresent |
link=Address Book |
|
| clickAt |
link=Address Book |
|
| pause |
10000 |
|
| waitForElementPresent |
categoryName |
|
| type |
categoryName |
Address_Book_Smoke03 |
| type |
description |
Address_Book_Smoke03_description |
| click |
link=Save |
|
| echo |
-- Verify Address book created |
|
| waitForElementPresent |
xpath=//div[@class='PersonalAddress']//div[@title='Address_Book_Smoke03'] |
|
| verifyElementPresent |
xpath=//div[@class='PersonalAddress']//div[@title='Address_Book_Smoke03'] |
|
| waitForElementPresent |
link=Contact |
|
| click |
link=Contact |
|
| waitForElementPresent |
firstName |
|
| type |
firstName |
Smoke_03 |
| type |
lastName |
eXo_Contact |
| type |
nickName |
Contact_Smoke_03 |
| type |
jobTitle |
eXo_Tester_Smoke_03 |
| type |
multiEmail0 |
Smoke_03@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=Smoke_03 eXo_Contact |
|
| verifyElementPresent |
link=Smoke_03 eXo_Contact |
|
| waitForElementPresent |
link=Smoke_03@gmail.com |
|
| verifyElementPresent |
link=Smoke_03@gmail.com |
|
| echo |
-- Delete Contact Are you sure you want to delete this contact ? |
|
| waitForElementPresent |
//tr[2]/td[1]/input |
|
| click |
//tr[2]/td[1]/input |
|
| click |
//form[@id='UIContacts']/div[2]/a[4]/div |
|
| assertConfirmation |
Are you sure to delete this contact? |
|
| echo |
-- Delete Address Book |
|
| mouseOver |
xpath=//div[@class='PersonalAddress']//div[@title='Address_Book_Smoke03'] |
|
| contextMenu |
xpath=//div[@class='PersonalAddress']//div[@title='Address_Book_Smoke03'] |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| assertConfirmation |
Are you sure to delete this address book? |
|
| clickAndWait |
link=Sign out |
|
| waitForElementPresent |
link=Sign in |
|