EditWCContentCPActionsTest
open /web/guest/home/
waitForElementPresent link=Control Panel Control Panel
clickAtAndWait link=Control Panel Control Panel
clickAtAndWait link=Web Content Web Content
assertElementPresent //td[2]/a Web Content ID
assertText //td[3]/a Web Content Name
assertText //td[4]/a Approved
assertElementPresent //td[5]/a Modified Date
assertElementPresent //td[6]/a Display Date
assertText //td[7]/a Joe Bloggs
assertText //td[8]/span/ul/li/strong/a/span Actions
clickAt //td[8]/span/ul/li/strong/a/span Actions
waitForVisible //div[@class='lfr-component lfr-menu-list']/ul/li[1]/a Edit
assertText //div[@class='lfr-component lfr-menu-list']/ul/li[1]/a Edit
clickAndWait //div[@class='lfr-component lfr-menu-list']/ul/li[1]/a Edit
type //input[@id='_15_title'] Web Content Name Edit
pause 5000
waitForVisible //td[@id='cke_contents__15__15_structure_el_TextAreaField_content']/iframe CK Editor
selectFrame //td[@id='cke_contents__15__15_structure_el_TextAreaField_content']/iframe CK Editor
type //body Web Content Content Edit
selectFrame relative=top top
clickAndWait //input[@value='Publish'] Publish
assertText //div[@class='portlet-msg-success'] Your request processed successfully.
assertElementPresent //td[2]/a Web Content ID
assertText //td[3]/a Web Content Name Edit
assertText //td[4]/a Approved
assertElementPresent //td[5]/a Modified Date
assertElementPresent //td[6]/a Display Date
assertText //td[7]/a Joe Bloggs