| open |
/portal/public/acme/ |
|
| windowMaximize |
|
|
| echo |
-- Login |
|
| click |
link=Login |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Go to Sites Explorer |
|
| clickAndWait |
link=Sites Explorer |
|
| echo |
--Open driver pane |
|
| waitForElementPresent |
//div[@id='UISideBar']/div/div[1]/div[2]/div[1]/div/div/div/a/div |
|
| click |
//div[@id='UISideBar']/div/div[1]/div[2]/div[1]/div/div/div/a/div |
|
| echo |
--Open Private driver |
|
| waitForElementPresent |
link=Public |
|
| click |
link=Public |
|
| echo |
--Go to Detail View |
|
| waitForElementPresent |
//form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[1]/a |
|
| click |
//form[@id='UIAddressBar']/div[2]/table/tbody/tr/td[1]/a |
|
| pause |
3000 |
|
| echo |
-- Go to Action tab |
|
| waitForElementPresent |
link=Actions |
|
| click |
link=Actions |
|
| pause |
3000 |
|
| echo |
--Add Free layout webcontent |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| pause |
5000 |
|
| waitForElementPresent |
selectTemplate |
label=Free layout webcontent |
| select |
selectTemplate |
label=Free layout webcontent |
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_31 |
| type |
name |
Test_SNF_ECMS_31 |
| waitForElementPresent |
//td[contains(@id,'cke_contents_htmlData')]/iframe |
|
| selectFrame |
//td[contains(@id,'cke_contents_htmlData')]/iframe |
|
| typeKeys |
//html/body |
Manchester United |
| selectFrame |
relative=top |
|
| echo |
--Save as draft |
|
| waitForElementPresent |
//a[1]/div/div/div |
|
| click |
//a[1]/div/div/div |
|
| echo |
--Close the form |
|
| waitForElementPresent |
//a[2]/div/div/div |
|
| click |
//a[2]/div/div/div |
|
| pause |
3000 |
|
| echo |
--Edit Free layout webcontent |
|
| waitForElementPresent |
link=Test_SNF_ECMS_31 |
|
| click |
link=Test_SNF_ECMS_31 |
|
| waitForElementPresent |
link=Edit Document |
|
| click |
link=Edit Document |
|
| pause |
3000 |
|
| echo |
--Edit data |
|
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_31Edit |
| waitForElementPresent |
//td[contains(@id,'cke_contents_htmlData')]/iframe |
|
| selectFrame |
//td[contains(@id,'cke_contents_htmlData')]/iframe |
|
| typeKeys |
//html/body |
test |
| selectFrame |
relative=top |
|
| echo |
--Save as draft |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
2000 |
|
| echo |
--Close the form |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
3000 |
|
| echo |
--Delete Free layout webcontent |
|
| waitForElementPresent |
link=Test_SNF_ECMS_31Edit |
|
| mouseDownRight |
link=Test_SNF_ECMS_31Edit |
|
| waitForElementPresent |
//div[@class='MenuItem']/a[contains(text(),'Delete')] |
|
| click |
//div[@class='MenuItem']/a[contains(text(),'Delete')] |
|
| waitForElementPresent |
//div[@id='UIPopupWindow']/div/div[2]/div/div/div/div/div/div/div/div[2]/table/tbody/tr/td/div[1]/div/div/div/a |
|
| click |
//div[@id='UIPopupWindow']/div/div[2]/div/div/div/div/div/div/div/div[2]/table/tbody/tr/td/div[1]/div/div/div/a |
|
| pause |
5000 |
|
| verifyTextNotPresent |
Test_SNF_ECMS_31Edit |
|
| waitForTextNotPresent |
Test_SNF_ECMS_31Edit |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|