bulkEdit
setTimeout 30000
open restAPI/systemLog?token=dolog&level=WARN&message=----- Selenium bulkEdit
open logout
open nxpath/default/default-domain/workspaces/testWorkspace1/testFolder1@view_documents
type username linnet
type password linnet1
clickAndWait Submit
verifyTextPresent linnet
click //input[@title="Select all / deselect all"]
waitForEditable //input[@value="Add to worklist"]
verifyEditable //input[@value="Add to worklist"]
clickAndWait //input[@value="Add to worklist"]
verifyTextNotPresent No document in clipboard
verifyElementPresent link=Edit documents
clickAndWait link=Edit documents
verifyTextPresent Edit common fields for documents
verifyElementPresent link=Documents to be altered:
click link=Documents to be altered:
waitForNotVisible //div[@class="boxBody"]
verifyTextPresent Title
verifyTextPresent Description
verifyElementPresent //table[@class="mceEditor"]
click //div[@class="massEditForm"]//table[@class="dataInput"]/tbody/tr[2]//input[@type="checkbox"]
select //div[@class="massEditForm"]//table[@class="dataInput"]/tbody/tr[2]//select ALL
type //div[@class="massEditForm"]//table[@class="dataInput"]/tbody/tr[2]//textarea bulk modified description
clickAndWait //input[@value="Next"]
verifyElementPresent link=Documents that will remain unchanged:
clickAndWait //input[@value="Back"]
verifyChecked //div[@class="massEditForm"]//table[@class="dataInput"]/tbody/tr[2]//input[@type="checkbox"]
verifySelectedValue //div[@class="massEditForm"]//table[@class="dataInput"]/tbody/tr[2]//select SELECT_ITEM_ID_ALL
verifyTextPresent bulk modified description
clickAndWait //input[@value="Next"]
verifyElementPresent link=Documents that will remain unchanged:
verifyVisible //div[@class="massEditForm"]/table/tbody/tr/td[1]//table
verifyText //td[@class="boldColumn"]/span Description
verifyText //table[@class="dataOutput"]//tr[@class="dataRowEven"]//td[2] ALL
verifyText //td[@class="focusColumn"] bulk modified description
verifyChecked //input[@type="checkbox"]
clickAndWait //input[@value="Approve"]
clickAndWait link=testFolder1
verifyNotChecked //tr[@class="dataRowEven"]//input[@type="checkbox"]
verifyNotChecked //tr[@class="dataRowOdd"]//input[@type="checkbox"]
clickAndWait link=Note to be modified
verifyTextPresent bulk modified description
clickAndWait link=testNote1
verifyTextPresent bulk modified description
clickAndWait link=Log out