| open |
/portal/public/default/ |
|
| windowMaximize |
|
|
| clickAndWait |
link=Visit the Acme Website |
|
| echo |
-- Log in |
|
| click |
link=Login |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Site Explorer |
|
| clickAndWait |
//a[@href='/portal/private/acme/siteExplorer'] |
|
| echo |
--Open driver pane |
|
| waitForElementPresent |
//div[@title='Show Drives'] |
|
| click |
//div[@title='Show Drives'] |
|
| echo |
--Open Private driver |
|
| waitForElementPresent |
link=Private |
|
| click |
link=Private |
|
| echo |
-Go to Admin View |
|
| waitForElementPresent |
//a[@title='Admin View'] |
|
| click |
//a[@title='Admin View'] |
|
| echo |
-- Go to Action tab |
|
| waitForElementPresent |
link=Actions |
|
| click |
link=Actions |
|
| echo |
--Create a Article document |
|
| waitForElementPresent |
link=Add Document |
|
| click |
link=Add Document |
|
| waitForElementPresent |
title |
|
| type |
title |
Test_SNF_ECMS_45 |
| type |
name |
Test_SNF_ECMS_45 |
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe |
|
| type |
//html/body |
Thap len rung ro mot troi may. Ngat ngay nang trong tinh yeu |
| selectFrame |
relative=top |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| type |
//html/body |
Vet nang chieu buong muon mang. Anh nho em nguoi yeu oi |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save as Draft |
|
| click |
link=Save as Draft |
|
| pause |
3000 |
|
| waitForElementPresent |
link=Close |
|
| click |
link=Close |
|
| pause |
3000 |
|
| echo |
-- Go to Collaboration Tab |
|
| waitForElementPresent |
link=Collaboration |
|
| click |
link=Collaboration |
|
| echo |
--Open form to add language |
|
| waitForElementPresent |
//a[text()='Add/Edit localised contents'] |
|
| click |
//a[text()='Add/Edit localised contents'] |
|
| echo |
--Go to Add language Tab |
|
| waitForElementPresent |
//div[text()='Add language'] |
|
| click |
//div[text()='Add language'] |
|
| select |
typeLang |
label=French |
| click |
//option[@value='fr'] |
|
| waitForElementPresent |
title |
|
| type |
title |
FrenchDocument |
| waitForElementPresent |
//td[@id='cke_contents_summary']/iframe |
|
| selectFrame |
//td[@id='cke_contents_summary']/iframe |
|
| type |
//html/body |
French |
| selectFrame |
relative=top |
|
| selectFrame |
//td[@id='cke_contents_content']/iframe |
|
| type |
//html/body |
paris |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
3000 |
|
| echo |
--Go to View language Tab |
|
| click |
//div[@id="UIMultiLanguageManager"]/div/div/div[1]/div/div/div/div/div[1]/div/div/div/div |
|
| waitForElementPresent |
languages |
label=French |
| select |
languages |
label=French |
| waitForElementPresent |
link=View |
|
| click |
link=View |
|
| echo |
-- Check French |
|
| waitForTextPresent |
FrenchDocument |
|
| verifyTextPresent |
FrenchDocument |
|
| echo |
-- Back to default language |
|
| waitForElementPresent |
//a[text()='Add/Edit localised contents'] |
|
| click |
//a[text()='Add/Edit localised contents'] |
|
| waitForElementPresent |
languages |
|
| select |
languages |
label=English |
| waitForElementPresent |
link=View |
|
| click |
link=View |
|
| waitForTextPresent |
Thap len rung ro mot troi may. Ngat ngay nang trong tinh yeu |
|
| verifyTextPresent |
Thap len rung ro mot troi may. Ngat ngay nang trong tinh yeu |
|
| echo |
--Delete article |
|
| waitForElementPresent |
link=Test_SNF_ECMS_45 |
|
| mouseDownRight |
link=Test_SNF_ECMS_45 |
|
| click |
link=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 |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|