Test_SNF_ECMS_46_VoteDocument_ecmdemo
open /ecmdemo/public/acme/
windowMaximize
echo -- Login
click link=Login
type username root
type password gtn
clickAndWait link=Sign in
echo -- Go to Sites Explorer
clickAndWait //a[@href='/ecmdemo/private/acme/siteExplorer']
echo --  Show Drives
waitForElementPresent //div[@title='Show Drives']
click //div[@title='Show Drives']
pause 10000
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 10000
waitForElementPresent link=Actions
click link=Actions
pause 10000
echo --Add Sample node
waitForElementPresent link=Add Document
click link=Add Document
pause 10000
waitForElementPresent selectTemplate label=Sample node
select selectTemplate label=Sample node
pause 10000
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 10000
waitForElementPresent link=Close
click link=Close
pause 10000
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
pause 3000
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
pause 3000
waitForElementNotPresent link=Test_SNF_ECMS_46
verifyElementNotPresent link=Test_SNF_ECMS_46
echo --Logout
waitForElementPresent link=Sign out
clickAndWait link=Sign out