| open |
/web/guest/home/ |
|
| waitForVisible |
link=Asset Publisher Test Page |
|
| clickAtAndWait |
link=Asset Publisher Test Page |
|
| clickAt |
//div[@class='add-asset-selector']/div/ul/li/strong/a |
Add New |
| waitForVisible |
//div[@class='lfr-component lfr-menu-list']/ul/li[4]/a |
Document Library Document |
| assertText |
//div[@class='lfr-component lfr-menu-list']/ul/li[4]/a |
Document Library Document |
| clickAndWait |
//div[@class='lfr-component lfr-menu-list']/ul/li[4]/a |
Document Library Document |
| clickAt |
//input[@value='Select'] |
|
| waitForPopUp |
folder |
30000 |
| selectWindow |
name=folder |
|
| pause |
5000 |
|
| store |
eval(selenium.isElementPresent('//td[4]/input')) |
choose1Present |
| gotoIf |
${choose1Present} |
Choose1NotPresent |
| close |
|
|
| selectWindow |
null |
|
| label |
Choose1NotPresent |
|
| store |
eval(selenium.isElementPresent('//td[4]/input')) |
choose2Present |
| gotoIf |
!${choose2Present} |
Choose2NotPresent |
| waitForVisible |
//input[@value='Choose'] |
|
| click |
//input[@value='Choose'] |
|
| label |
Choose2NotPresent |
|
| selectWindow |
null |
|
| pause |
5000 |
|
| type |
_20_file |
L:\portal\build\portal-web\test\com\liferay\portalweb\portlet\assetpublisher\dldocument\viewdldocumenttable\dependencies\AP_test_document.txt |
| type |
_20_title |
AP DL Document Title.txt |
| clickAtAndWait |
//input[@value='Publish'] |
|
| waitForText |
//div[1]/h3/a |
AP DL Document Title.txt |
| assertText |
//div[1]/h3/a |
AP DL Document Title.txt |