| 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 |
mary |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/portal/private/intranet/contact |
|
| pause |
10000 |
|
| echo |
-Manage Address Book- |
|
| echo |
-- Add Address Book |
|
| waitForElementPresent |
//a[@title='Add an Address book'] |
|
| click |
//a[@title='Add an Address book'] |
|
| waitForElementPresent |
categoryName |
|
| type |
categoryName |
Address_Book_41 |
| type |
description |
Address_Book_41_description |
| click |
link=Save |
|
| echo |
-- Verify Address book created |
|
| waitForElementPresent |
xpath=//div[@class='PersonalAddress']//div[@title='Address_Book_41'] |
|
| verifyElementPresent |
xpath=//div[@class='PersonalAddress']//div[@title='Address_Book_41'] |
|
| echo |
-- Edit the added address book |
|
| mouseOver |
xpath=//div[@class='PersonalAddress']//div[@title='Address_Book_41'] |
|
| contextMenu |
xpath=//div[@class='PersonalAddress']//div[@title='Address_Book_41'] |
|
| waitForElementPresent |
link=Edit |
|
| click |
link=Edit |
|
| echo |
-- Verify edited value |
|
| waitForElementPresent |
//input[@value='Address_Book_41'] |
|
| waitForElementPresent |
categoryName |
|
| type |
categoryName |
Address_Book_41_Edited |
| type |
description |
Address_Book_41_description_Edited |
| click |
link=Save |
|
| waitForElementPresent |
xpath=//div[@class='PersonalAddress']//div[@title='Address_Book_41_Edited'] |
|
| echo |
-- Delete Address Book |
|
| mouseOver |
xpath=//div[@class='PersonalAddress']//div[@title='Address_Book_41_Edited'] |
|
| contextMenu |
xpath=//div[@class='PersonalAddress']//div[@title='Address_Book_41_Edited'] |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| assertConfirmation |
This address book will be deleted. Do you confirm? |
|
| clickAndWait |
link=Logout |
|
| close |
|
|