Test_SNF_ECMS_46_VoteDocument_ecmdemo
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 --  Show Drives
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
pause 3000
waitForElementPresent link=Actions
click link=Actions
echo --Add Sample node
waitForElementPresent link=Add Document
click link=Add Document
waitForElementPresent selectTemplate label=Sample node
select selectTemplate label=Sample node
waitForElementPresent title
type title Test_SNF_ECMS_46
type summary Thoi nao` kung. co len di. Roi moi thu se qua
type content Khong duoc song nhu the nay nua. thuc te len di. hic nhung em yeu chi.
waitForElementPresent link=Save as Draft
click link=Save as Draft
pause 3000
waitForElementPresent link=Close
click link=Close
echo --Go to Collaboration Tab
waitForElementPresent link=Collaboration
click link=Collaboration
waitForElementPresent link=Test_SNF_ECMS_46
click link=Test_SNF_ECMS_46
echo -- the first Vote : 4
waitForElementPresent link=Vote for document
click link=Vote for document
waitForElementPresent //div[@title='Excellent/Click to vote']
click //div[@title='Excellent/Click to vote']
echo --Avg Rating
waitForTextPresent 4.0
verifyTextPresent 4.0
echo --Delete Sample node
waitForElementPresent link=Test_SNF_ECMS_46
mouseDownRight link=Test_SNF_ECMS_46
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