| 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 |
-Copy and paste contacts- |
|
| echo |
-- Copy a contact |
|
| waitForElementPresent |
//div[@id='defaultjohn']/div |
|
| click |
//div[@id='defaultjohn']/div |
|
| click |
//input[@name='john'] |
|
| click |
//form[@id='UIContacts']/div[2]/a[6]/div |
|
| echo |
-- Patse Contact |
|
| click |
//div[@id='addressesjohn']/div |
|
| mouseOver |
//div[@title='Collected Addresses'] |
|
| contextMenu |
//div[@title='Collected Addresses'] |
|
| click |
link=Paste |
|
| click |
//div[@id='addressesjohn']/div |
|
| waitForElementPresent |
link=John Smith |
|
| echo |
-- Delete the copied contact |
|
| click |
//input[@value='4'] |
|
| click |
//form[@id='UIContacts']/div[2]/a[4]/div |
|
| assertConfirmation |
Are you sure you want to delete this contact ? |
|
| clickAndWait |
link=Logout |
|
| close |
|
|