publishDocumentBySectionManager
setTimeout 30000
open restAPI/systemLog?token=dolog&level=WARN&message=----- Selenium publishDocumentBySectionManager
open logout
open
type username jdoe
type password jdoe1
clickAndWait Submit
clickAndWait link=Workspaces
clickAndWait link=testWorkspace1
clickAndWait link=testFolder1
click link=New
waitForTextPresent Available Document Types
clickAndWait link=File
type //td[@class="fieldColumn"]/input[@type="text"] test file to be publish 1
clickAndWait //input[@value="Create"]
watchAjaxTab
click link=Publish
waitForAjaxTab 10000
watchA4jRequests
click //div[@id='publishTreeForm:publishTree:publishRecursiveAdaptor.0:publishTreeNode']/div/span
waitForA4jRequest 20000
assertTextPresent Publish Here
watchA4jRequests
click link=Publish Here
waitForA4jRequest 20000
verifyElementPresent link=Unpublish
clickAndWait link=Sections
clickAndWait link=testSection1
verifyElementPresent link=test file to be publish 1
clickAndWait link=test file to be publish 1
verifyTextPresent This document is published
clickAndWait link=Log Out
type username bree
type password bree1
clickAndWait Submit
clickAndWait link=Sections
clickAndWait link=testSection1
verifyElementPresent link=test file to be publish 1
clickAndWait link=Log Out