| open |
/web/guest/home/ |
|
| waitForElementPresent |
link=Control Panel |
|
| clickAtAndWait |
link=Control Panel |
|
| clickAtAndWait |
link=Communities |
|
| type |
_134_name |
Web Content Image Association Community |
| clickAtAndWait |
//input[@value='Search'] |
|
| clickAtAndWait |
//tr[@class='portlet-section-body results-row last']/td[1]/a |
|
| clickAtAndWait |
link=Control Panel |
|
| clickAtAndWait |
link=Web Content |
|
| clickAtAndWait |
//input[@value='Add Web Content'] |
|
| type |
_15_title |
Image Web Content Test |
| clickAt |
//input[@value='Select'] |
|
| assertConfirmation |
Selecting a template will change the structure, available input fields, and available templates? Do you want to proceed? |
|
| waitForPopUp |
template |
30000 |
| selectWindow |
name=template |
|
| waitForElementPresent |
link=TEST_IMAGE |
|
| click |
link=TEST_IMAGE |
|
| selectWindow |
null |
|
| waitForText |
_15_structureNameLabel |
Image Structure Test (Use Default) |
| assertText |
_15_structureNameLabel |
Image Structure Test (Use Default) |
| waitForVisible |
_15_text |
|
| type |
_15_text |
Text Test |
| type |
_15_image |
L:\portal\build\portal-web\test\com\liferay\portalweb\portal\dbupgrade\sampledata600\webcontent\imageassociation\dependencies\Image.jpg |
| pause |
5000 |
|
| clickAt |
//input[@value='Select'] |
|
| waitForPopUp |
ImageGallery |
30000 |
| selectWindow |
name=ImageGallery |
|
| waitForElementPresent |
link=Folder Test |
|
| clickAtAndWait |
link=Folder Test |
|
| click |
//input[@value='Choose'] |
|
| selectWindow |
null |
|
| pause |
5000 |
|
| clickAtAndWait |
//input[@value='Save and Approve'] |
|
| assertTextPresent |
Your request processed successfully. |
|
| assertText |
//tr[@class='portlet-section-body results-row last']/td[3] |
Image Web Content Test |