| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| echo |
-ActionsDashboardpage- |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| waitForElementPresent |
link=Dashboard |
|
| clickAndWait |
link=Dashboard |
|
| echo |
--Add gadgets into dashboard page |
|
| waitForElementPresent |
link=Add Gadgets |
|
| click |
link=Add Gadgets |
|
| pause |
200 |
|
| echo |
--Choose "root" node |
|
| echo |
--By url |
|
| waitForElementPresent |
xpath=//input[@id='url'] |
|
| type |
xpath=//input[@id='url'] |
http://www.google.com/ig/modules/datetime.xml |
| waitForElementPresent |
xpath=//img[@class='AddNewNodeIcon'] |
|
| click |
xpath=//img[@class='AddNewNodeIcon'] |
|
| pause |
500 |
|
| verifyElementPresent |
xpath=//div[@class='GadgetTitle'] |
|
| echo |
-- Close Dashboard Workspace-- |
|
| waitForElementPresent |
//div[2]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/a |
|
| click |
//div[2]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/a |
|
| echo |
--Delete gadget-- |
|
| waitForElementPresent |
css=span.CloseGadget.IconControl |
|
| click |
css=span.CloseGadget.IconControl |
|
| assertConfirmation |
Are you sure to delete this gadget? |
|
| pause |
1000 |
|
| echo |
--By drag and drop |
|
| waitForElementPresent |
link=Add Gadgets |
|
| click |
link=Add Gadgets |
|
| waitForElementPresent |
xpath=//div[@class='UIDashboardContainer']/div/div/div[2] |
|
| waitForElementPresent |
xpath=//div[@class='GadgetTitle' and @title='Calculator'] |
|
| dragAndDropToObject |
xpath=//div[@class='GadgetTitle' and @title='Calculator'] |
xpath=//div[@class='UIDashboardContainer'] |
| pause |
1000 |
|
| echo |
-- Close Dashboard Workspace-- |
|
| waitForElementPresent |
//div[2]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/a |
|
| click |
//div[2]/div/div/div/div/div/div/div/div/div/div/div/div/div/div/a |
|
| waitForElementPresent |
xpath=//div[@class='UIDashboardContainer']/div/div/div[3] |
|
| echo |
-- Delete Drag and drop Gadget |
|
| waitForElementPresent |
css=span.CloseGadget.IconControl |
|
| click |
css=span.CloseGadget.IconControl |
|
| waitForConfirmation |
Are you sure to delete this gadget? |
|
| verifyTextPresent |
Drag your gadgets here. |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|