LocalFile.WebContentDisplay#set-up
  • Running IsTestName with locator1 with value1
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
    • Running isTestName with parameters
  • Running WaitForSPARefresh
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
  • Running Open with locator1http://localhost:8080/web/guest/home
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/web/guest/home
    • Running assertLiferayErrors
    • Running selectWindow with parameters
    • Running selectFrame with parametersrelative=top
    • Running open with parametershttp://localhost:8080/web/guest/home
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/web/guest/home
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/web/guest/home
    • Running assertLiferayErrors
  • Running IsElementNotPresent with locator1//span[contains(@class,'sign-in')]/a/span
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//span[contains(@class,'sign-in')]/a/span
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//span[contains(@class,'sign-in')]/a/span
    • Running isNotVisible with parameters//span[contains(@class,'sign-in')]/a/span
  • Running post with parametersArg: ${curl}Return: {"agreedToTermsOfUse":true,"comments":"","companyId":"20097","contactId":"20127","createDate":1676482984100,"ctCollectionId":"0","defaultUser":false,"emailAddress":"test@liferay.com","emailAddressVerified":true,"externalReferenceCode":"d43b80a2-9350-3609-399e-07d2f126072d","facebookId":"0","failedLoginAttempts":0,"firstName":"Test","googleUserId":"","graceLoginCount":0,"greeting":"Welcome Test Test!","jobTitle":"","languageId":"en_US","lastFailedLoginDate":null,"lastLoginDate":1676483623567,"lastLoginIP":"127.0.0.1","lastName":"Test","ldapServerId":"-1","lockout":false,"lockoutDate":null,"loginDate":1676483867827,"loginIP":"127.0.0.1","middleName":"","modifiedDate":1676483959189,"mvccVersion":"14","openId":"","portraitId":"0","reminderQueryAnswer":"test","reminderQueryQuestion":"what-is-your-father's-middle-name","screenName":"test","status":0,"timeZoneId":"UTC","userId":"20125","uuid":"d43b80a2-9350-3609-399e-07d2f126072d"}Finished executing commands.
  • Running post with parametersArg: ${curl}Return: {"agreedToTermsOfUse":true,"comments":"","companyId":"20097","contactId":"20127","createDate":1676482984100,"ctCollectionId":"0","defaultUser":false,"emailAddress":"test@liferay.com","emailAddressVerified":true,"externalReferenceCode":"d43b80a2-9350-3609-399e-07d2f126072d","facebookId":"0","failedLoginAttempts":0,"firstName":"Test","googleUserId":"","graceLoginCount":0,"greeting":"Welcome Test Test!","jobTitle":"","languageId":"en_US","lastFailedLoginDate":null,"lastLoginDate":1676483623567,"lastLoginIP":"127.0.0.1","lastName":"Test","ldapServerId":"-1","lockout":false,"lockoutDate":null,"loginDate":1676483867827,"loginIP":"127.0.0.1","middleName":"","modifiedDate":1676483959797,"mvccVersion":"15","openId":"","portraitId":"0","reminderQueryAnswer":"test","reminderQueryQuestion":"what-is-your-father's-middle-name","screenName":"test","status":0,"timeZoneId":"UTC","userId":"20125","uuid":"d43b80a2-9350-3609-399e-07d2f126072d"}Finished executing commands.
  • Running Open with locator1http://localhost:8080/web/guest?SM_USER=test@liferay.com
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/web/guest?SM_USER=test@liferay.com
    • Running assertLiferayErrors
    • Running selectWindow with parameters
    • Running selectFrame with parametersrelative=top
    • Running open with parametershttp://localhost:8080/web/guest?SM_USER=test@liferay.com
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/web/guest?SM_USER=test@liferay.com
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/web/guest?SM_USER=test@liferay.com
    • Running assertLiferayErrors
  • Running IsElementPresent with locator1//h1[contains(.,'Your connection is not private')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//h1[contains(.,'Your connection is not private')]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//h1[contains(.,'Your connection is not private')]
  • Running IsElementPresent#pauseIsElementPresent with locator1//div[label[contains(.,'Password') and not(contains(.,'One-Time Password'))]]/input | //div[label[contains(.,"parola d'ordine")]]/input | //div[label[contains(.,'Contraseña')]]/input | //div[label[contains(.,'パスワード')]]/input | //div[label[contains(.,'密码')]]/input | //div[contains(.,'Kennwort')]//input[@type='password']
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Password') and not(contains(.,'One-Time Password'))]]/input | //div[label[contains(.,"parola d'ordine")]]/input | //div[label[contains(.,'Contraseña')]]/input | //div[label[contains(.,'パスワード')]]/input | //div[label[contains(.,'密码')]]/input | //div[contains(.,'Kennwort')]//input[@type='password']
    • Running assertLiferayErrors
    • Running pause with parameters1000
    • Running isElementPresent with parameters//div[label[contains(.,'Password') and not(contains(.,'One-Time Password'))]]/input | //div[label[contains(.,"parola d'ordine")]]/input | //div[label[contains(.,'Contraseña')]]/input | //div[label[contains(.,'パスワード')]]/input | //div[label[contains(.,'密码')]]/input | //div[contains(.,'Kennwort')]//input[@type='password']
  • Running IsElementPresent#pauseIsElementPresent with locator1//input[contains(@id,'reminderQueryAnswer')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//input[contains(@id,'reminderQueryAnswer')]
    • Running assertLiferayErrors
    • Running pause with parameters1000
    • Running isElementPresent with parameters//input[contains(@id,'reminderQueryAnswer')]
  • Running IsElementNotPresent with locator1//span[@class='user-avatar-link']
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//span[@class='user-avatar-link']
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//span[@class='user-avatar-link']
    • Running isNotVisible with parameters//span[@class='user-avatar-link']
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running post with parametersArg: ${curl}Return: {"active":true,"classNameId":"20030","classPK":"44345","companyId":"20097","creatorUserId":"20125","ctCollectionId":"0","description":"","descriptionCurrentValue":"","descriptiveName":"Test Site Name","friendlyURL":"\/test-site-name","groupId":"44345","groupKey":"Test Site Name","inheritContent":false,"liveGroupId":"0","manualMembership":true,"membershipRestriction":0,"modifiedDate":1676483964014,"mvccVersion":"0","name":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Name language-id=\"en_US\">Test Site Name<\/Name><\/root>","nameCurrentValue":"Test Site Name","parentGroupId":"0","remoteStagingGroupCount":0,"site":true,"treePath":"\/44345\/","type":1,"uuid":"2b4e6412-3421-bd74-3ec2-b983131e8acc"}Finished executing commands.
  • ## * GroupId: 44345
  • ## * GroupId: 44345
  • Running post with parametersArg: ${curl}Return: {"classNameId":"0","classPK":"0","colorSchemeId":"","companyId":"20097","createDate":1676483966002,"css":"","ctCollectionId":"0","description":"","descriptionCurrentValue":"","faviconFileEntryId":"0","friendlyURL":"\/test-page-name","groupId":"44345","hidden":false,"iconImageId":"0","keywords":"","keywordsCurrentValue":"","lastPublishDate":null,"layoutId":"1","layoutPrototypeLinkEnabled":false,"layoutPrototypeUuid":"","masterLayoutPlid":"0","modifiedDate":1676483969383,"mvccVersion":"1","name":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Name language-id=\"en_US\">Test Page Name<\/Name><\/root>","nameCurrentValue":"Test Page Name","parentLayoutId":"0","parentPlid":"0","plid":"14","priority":0,"privateLayout":false,"publishDate":1676483966002,"robots":"","robotsCurrentValue":"","sourcePrototypeLayoutUuid":"","status":0,"statusByUserId":"20125","statusByUserName":"Test Test","statusDate":1676483966002,"styleBookEntryId":"0","system":false,"themeId":"","title":"","titleCurrentValue":"","type":"portlet","typeSettings":"column-1=com_liferay_journal_content_web_portlet_JournalContentPortlet_INSTANCE_pNvJZzKVSSqb%0Alayout-template-id=2_columns_ii%0A","userId":"20125","userName":"Test Test","uuid":"f9c21794-bac5-1c93-c084-2fa25749d505"}Finished executing commands.
  • LocalFile.WebContentDisplay#AddWithStructure
  • Add a web content article with a custom DDM structure and template and display it in the web content display widget.
  • Running Open with locator1http://localhost:8080/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet
    • Running assertLiferayErrors
    • Running selectWindow with parameters
    • Running selectFrame with parametersrelative=top
    • Running open with parametershttp://localhost:8080/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet
    • Running assertLiferayErrors
  • Running IsElementNotPresent with locator1//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Structures']
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Structures']
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Structures']
    • Running isElementNotPresent with parameters//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Structures']
  • Running AssertClick with locator1//div[contains(@class,'navbar')]//a[normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Structures'] with value1Structures
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Structures
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Structures
    • Running waitForElementPresent with parameters//bodyStructures
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Structures']
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Structures
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Structures
    • Running waitForElementPresent with parameters//bodyStructures
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Structures']
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Structures
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Structures
    • Running waitForElementPresent with parameters//bodyStructures
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Structures']
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Structures']Structures
    • Running waitForTextCaseInsensitive with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Structures']Structures
    • Running assertTextCaseInsensitive with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Structures']Structures
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Structures']
    • Running assertLiferayErrors
    • Running mouseOver with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Structures']
    • Running clickAt with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Structures']Structures
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Structures']
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Structures']
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Structures']
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Structures']
    • Running assertElementPresent with parameters//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Structures']
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Structures'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Structures']
    • Running assertLiferayErrors
  • Running WaitForPageLoad
    • Running runScript with parameters window.addEventListener( 'load', () => { setTimeout(() => { console.log("Page is fully loaded"); }, "0"); }, {once: true} );
  • Running Click with locator1//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[not(contains(@class,'borderless'))][*[contains(@class,'icon-plus')]]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[not(contains(@class,'borderless'))][*[contains(@class,'icon-plus')]]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[not(contains(@class,'borderless'))][*[contains(@class,'icon-plus')]]
    • Running mouseOver with parameters//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[not(contains(@class,'borderless'))][*[contains(@class,'icon-plus')]]
    • Running click with parameters//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[not(contains(@class,'borderless'))][*[contains(@class,'icon-plus')]]
    • Running assertJavaScriptErrors with parameters//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[not(contains(@class,'borderless'))][*[contains(@class,'icon-plus')]]
    • Running assertLiferayErrors
  • Running SelectFrameTop
    • Running selectFrame with parametersrelative=top
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
  • Running AssertVisible with locator1//div[contains(@class,'form-builder-layout')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'form-builder-layout')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'form-builder-layout')]
    • Running assertVisible with parameters//div[contains(@class,'form-builder-layout')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'form-builder-layout')]
    • Running assertLiferayErrors
  • Running Type#clickAtType with locator1//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')] with value1WC Structure Name
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]WC Structure Name
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]WC Structure Name
    • Running waitForElementPresent with parameters//bodyWC Structure Name
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]WC Structure Name
    • Running waitForEditable with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]
    • Running mouseOver with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]
    • Running clickAt with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]WC Structure Name
    • Running pause with parameters1000
    • Running type with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]WC Structure Name
    • Running pause with parameters1000
    • Running clickAt with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]WC Structure Name
    • Running pause with parameters1000
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]
    • Running assertLiferayErrors
  • Running IsElementNotPresent with locator1//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running isNotVisible with parameters//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
  • Running AssertElementPresent with locator1//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running assertElementPresent with parameters//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running assertLiferayErrors
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running IsElementNotPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running isNotVisible with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
  • Running AssertElementPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running DragAndDrop#javaScriptDragAndDropToObject with locator1//div[contains(@class,'field-type')]//span[@class='text-truncate' and text()='Text'] with value1Text with locator2//div[contains(@class,'col-empty')]/div[contains(@class,'target')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Text
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Text
    • Running waitForElementPresent with parameters//bodyText
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'field-type')]//span[@class='text-truncate' and text()='Text']
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//div[contains(@class,'field-type')]//span[@class='text-truncate' and text()='Text']Text
    • Running waitForElementPresent with parameters//div[contains(@class,'col-empty')]/div[contains(@class,'target')]Text
    • Running executeJavaScript with parameters Simulate = { dragAndDrop: function (source, target) { const dispatchEvent = function (type, element) { const rect = element.getBoundingClientRect(); const event = document.createEvent('customEvent'); event.initEvent(type, true, true); event.relatedTarget = element; (event.clientX = rect.left + rect.width / 2), (event.clientY = rect.top + rect.height / 2), element.dispatchEvent(event); return Promise.resolve(); }; dispatchEvent('dragstart', source) .then(function () { dispatchEvent('dragover', target); }) .then(function () { dispatchEvent('drop', target); }) .then(function () { dispatchEvent('dragend', source); }); } }; Simulate.dragAndDrop(arguments[0], arguments[1]); //div[contains(@class,'field-type')]//span[@class='text-truncate' and text()='Text']//div[contains(@class,'col-empty')]/div[contains(@class,'target')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'field-type')]//span[@class='text-truncate' and text()='Text']
    • Running assertLiferayErrors
  • Running WaitForVisible with locator1//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
    • Running waitForVisible with parameters//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
  • Running IsElementNotPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running isNotVisible with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
  • Running AssertElementPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running Type with locator1//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text'] with value1Text
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Text
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Text
    • Running waitForElementPresent with parameters//bodyText
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']Text
    • Running waitForEditable with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']
    • Running mouseOver with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']
    • Running clickAt with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']Text
    • Running pause with parameters1000
    • Running type with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']Text
    • Running pause with parameters1000
    • Running clickAt with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']Text
    • Running pause with parameters1000
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']
    • Running assertLiferayErrors
  • Running AssertTextEquals with locator1//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text'] with value1Text
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Text
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Text
    • Running waitForElementPresent with parameters//bodyText
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Text
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Text
    • Running waitForElementPresent with parameters//bodyText
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']Text
    • Running waitForValue with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']Text
    • Running assertValue with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']Text
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1//label[normalize-space()='Text'] | //legend[normalize-space(text())='Text'] with value1Text
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Text
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Text
    • Running waitForElementPresent with parameters//bodyText
    • Running assertJavaScriptErrors with parameters//label[normalize-space()='Text'] | //legend[normalize-space(text())='Text']
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//label[normalize-space()='Text'] | //legend[normalize-space(text())='Text']Text
    • Running assertElementPresent with parameters//label[normalize-space()='Text'] | //legend[normalize-space(text())='Text']
    • Running assertJavaScriptErrors with parameters//label[normalize-space()='Text'] | //legend[normalize-space(text())='Text']
    • Running assertLiferayErrors
  • Running IsElementNotPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running isElementNotPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
  • Running AssertClick#assertPartialTextClickAt with locator1//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))] with value1Advanced
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Advanced
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Advanced
    • Running waitForElementPresent with parameters//bodyAdvanced
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Advanced
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Advanced
    • Running waitForElementPresent with parameters//bodyAdvanced
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]Advanced
    • Running waitForPartialTextCaseInsensitive with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]Advanced
    • Running assertPartialTextCaseInsensitive with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]Advanced
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running mouseOver with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running clickAt with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]Advanced
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running Type with locator1//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text'] with value1Text
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Text
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Text
    • Running waitForElementPresent with parameters//bodyText
    • Running assertJavaScriptErrors with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']Text
    • Running waitForEditable with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']
    • Running mouseOver with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']
    • Running clickAt with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']Text
    • Running pause with parameters1000
    • Running type with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']Text
    • Running pause with parameters1000
    • Running clickAt with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']Text
    • Running pause with parameters1000
    • Running assertJavaScriptErrors with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']
    • Running assertLiferayErrors
  • Running AssertTextEquals#assertValue with locator1//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text'] with value1Text
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Text
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Text
    • Running waitForElementPresent with parameters//bodyText
    • Running assertJavaScriptErrors with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']Text
    • Running waitForValue with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']Text
    • Running assertValue with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']Text
    • Running assertJavaScriptErrors with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']
    • Running assertLiferayErrors
  • Running Click with locator1//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
    • Running mouseOver with parameters//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
    • Running click with parameters//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
    • Running assertLiferayErrors
  • Running IsElementNotPresent with locator1//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running isNotVisible with parameters//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
  • Running AssertElementPresent with locator1//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running assertElementPresent with parameters//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar')]//*[@*='Builder'][contains(@aria-pressed,'true')]
    • Running assertLiferayErrors
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running IsElementNotPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running isNotVisible with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
  • Running AssertElementPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fields'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running DragAndDrop#javaScriptDragAndDropToObject with locator1//div[contains(@class,'field-type')]//span[@class='text-truncate' and text()='Text'] with value1Text with locator2xpath=(//div[contains(@class,'col-empty')]/div[contains(@class,'target')])[2]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Text
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Text
    • Running waitForElementPresent with parameters//bodyText
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'field-type')]//span[@class='text-truncate' and text()='Text']
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//div[contains(@class,'field-type')]//span[@class='text-truncate' and text()='Text']Text
    • Running waitForElementPresent with parametersxpath=(//div[contains(@class,'col-empty')]/div[contains(@class,'target')])[2]Text
    • Running executeJavaScript with parameters Simulate = { dragAndDrop: function (source, target) { const dispatchEvent = function (type, element) { const rect = element.getBoundingClientRect(); const event = document.createEvent('customEvent'); event.initEvent(type, true, true); event.relatedTarget = element; (event.clientX = rect.left + rect.width / 2), (event.clientY = rect.top + rect.height / 2), element.dispatchEvent(event); return Promise.resolve(); }; dispatchEvent('dragstart', source) .then(function () { dispatchEvent('dragover', target); }) .then(function () { dispatchEvent('drop', target); }) .then(function () { dispatchEvent('dragend', source); }); } }; Simulate.dragAndDrop(arguments[0], arguments[1]); //div[contains(@class,'field-type')]//span[@class='text-truncate' and text()='Text']xpath=(//div[contains(@class,'col-empty')]/div[contains(@class,'target')])[2]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'field-type')]//span[@class='text-truncate' and text()='Text']
    • Running assertLiferayErrors
  • Running WaitForVisible with locator1//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
    • Running waitForVisible with parameters//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
  • Running IsElementNotPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running isNotVisible with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
  • Running AssertElementPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Basic'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running Type with locator1//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text'] with value1Text Box
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Text Box
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Text Box
    • Running waitForElementPresent with parameters//bodyText Box
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']Text Box
    • Running waitForEditable with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']
    • Running mouseOver with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']
    • Running clickAt with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']Text Box
    • Running pause with parameters1000
    • Running type with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']Text Box
    • Running pause with parameters1000
    • Running clickAt with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']Text Box
    • Running pause with parameters1000
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']
    • Running assertLiferayErrors
  • Running AssertTextEquals with locator1//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text'] with value1Text Box
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Text Box
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Text Box
    • Running waitForElementPresent with parameters//bodyText Box
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Text Box
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Text Box
    • Running waitForElementPresent with parameters//bodyText Box
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']Text Box
    • Running waitForValue with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']Text Box
    • Running assertValue with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']Text Box
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Label')]]//input[@type='text'] | //div[contains(@class,'ddm-field') and contains(.,'Label')]//input[@type='text']
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1//label[normalize-space()='Text Box'] | //legend[normalize-space(text())='Text Box'] with value1Text Box
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Text Box
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Text Box
    • Running waitForElementPresent with parameters//bodyText Box
    • Running assertJavaScriptErrors with parameters//label[normalize-space()='Text Box'] | //legend[normalize-space(text())='Text Box']
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//label[normalize-space()='Text Box'] | //legend[normalize-space(text())='Text Box']Text Box
    • Running assertElementPresent with parameters//label[normalize-space()='Text Box'] | //legend[normalize-space(text())='Text Box']
    • Running assertJavaScriptErrors with parameters//label[normalize-space()='Text Box'] | //legend[normalize-space(text())='Text Box']
    • Running assertLiferayErrors
  • Running Check#checkToggleSwitch with locator1//label[(contains(.,'Multiple Lines')) or (contains(@for,'Multiple Lines'))]//input
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//label[(contains(.,'Multiple Lines')) or (contains(@for,'Multiple Lines'))]//input
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//label[(contains(.,'Multiple Lines')) or (contains(@for,'Multiple Lines'))]//input
    • Running mouseOver with parameters//label[(contains(.,'Multiple Lines')) or (contains(@for,'Multiple Lines'))]//input
    • Running isNotChecked with parameters//label[(contains(.,'Multiple Lines')) or (contains(@for,'Multiple Lines'))]//input
    • Running clickAt with parameters//label[(contains(.,'Multiple Lines')) or (contains(@for,'Multiple Lines'))]//input
    • Running assertJavaScriptErrors with parameters//label[(contains(.,'Multiple Lines')) or (contains(@for,'Multiple Lines'))]//input
    • Running assertLiferayErrors
  • Running IsElementNotPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running isElementNotPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
  • Running AssertClick#assertPartialTextClickAt with locator1//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))] with value1Advanced
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Advanced
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Advanced
    • Running waitForElementPresent with parameters//bodyAdvanced
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Advanced
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Advanced
    • Running waitForElementPresent with parameters//bodyAdvanced
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]Advanced
    • Running waitForPartialTextCaseInsensitive with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]Advanced
    • Running assertPartialTextCaseInsensitive with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]Advanced
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running mouseOver with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running clickAt with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]Advanced
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Advanced'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running Type with locator1//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text'] with value1TextBox
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]TextBox
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]TextBox
    • Running waitForElementPresent with parameters//bodyTextBox
    • Running assertJavaScriptErrors with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']TextBox
    • Running waitForEditable with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']
    • Running mouseOver with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']
    • Running clickAt with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']TextBox
    • Running pause with parameters1000
    • Running type with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']TextBox
    • Running pause with parameters1000
    • Running clickAt with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']TextBox
    • Running pause with parameters1000
    • Running assertJavaScriptErrors with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']
    • Running assertLiferayErrors
  • Running AssertTextEquals#assertValue with locator1//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text'] with value1TextBox
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]TextBox
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]TextBox
    • Running waitForElementPresent with parameters//bodyTextBox
    • Running assertJavaScriptErrors with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']TextBox
    • Running waitForValue with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']TextBox
    • Running assertValue with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']TextBox
    • Running assertJavaScriptErrors with parameters//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::div/input[@type='text']
    • Running assertLiferayErrors
  • Running Click with locator1//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
    • Running mouseOver with parameters//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
    • Running click with parameters//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar-header')]//button[*[name()='svg'][contains(@class,'lexicon-icon-angle-left')]]
    • Running assertLiferayErrors
  • Running Click#mouseDownMouseUp with locator1//span[contains(@class,'btn')][normalize-space(text())='Save']/..
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//span[contains(@class,'btn')][normalize-space(text())='Save']/..
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//span[contains(@class,'btn')][normalize-space(text())='Save']/..
    • Running waitForVisible with parameters//span[contains(@class,'btn')][normalize-space(text())='Save']/..
    • Running mouseDown with parameters//span[contains(@class,'btn')][normalize-space(text())='Save']/..
    • Running mouseUp with parameters//span[contains(@class,'btn')][normalize-space(text())='Save']/..
    • Running assertJavaScriptErrors with parameters//span[contains(@class,'btn')][normalize-space(text())='Save']/..
    • Running assertLiferayErrors
  • Running VerifyElementPresent with locator1//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]false
    • Running verifyElementPresent with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running assertLiferayErrors
  • Running IsElementNotPresent with locator1//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Templates']
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Templates']
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Templates']
    • Running isElementNotPresent with parameters//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Templates']
  • Running AssertClick with locator1//div[contains(@class,'navbar')]//a[normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Templates'] with value1Templates
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Templates
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Templates
    • Running waitForElementPresent with parameters//bodyTemplates
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Templates']
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Templates
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Templates
    • Running waitForElementPresent with parameters//bodyTemplates
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Templates']
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Templates
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Templates
    • Running waitForElementPresent with parameters//bodyTemplates
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Templates']
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Templates']Templates
    • Running waitForTextCaseInsensitive with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Templates']Templates
    • Running assertTextCaseInsensitive with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Templates']Templates
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Templates']
    • Running assertLiferayErrors
    • Running mouseOver with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Templates']
    • Running clickAt with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Templates']Templates
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[normalize-space()='Templates']
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Templates']
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Templates']
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Templates']
    • Running assertElementPresent with parameters//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Templates']
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'navbar')]//a[contains(@class,'active') and normalize-space()='Templates'] | //nav[contains(@role,'navigation')]//li[contains(@class,'active')][normalize-space()='Templates']
    • Running assertLiferayErrors
  • Running WaitForPageLoad
    • Running runScript with parameters window.addEventListener( 'load', () => { setTimeout(() => { console.log("Page is fully loaded"); }, "0"); }, {once: true} );
  • Running Click with locator1//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[not(contains(@class,'borderless'))][*[contains(@class,'icon-plus')]]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[not(contains(@class,'borderless'))][*[contains(@class,'icon-plus')]]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[not(contains(@class,'borderless'))][*[contains(@class,'icon-plus')]]
    • Running mouseOver with parameters//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[not(contains(@class,'borderless'))][*[contains(@class,'icon-plus')]]
    • Running click with parameters//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[not(contains(@class,'borderless'))][*[contains(@class,'icon-plus')]]
    • Running assertJavaScriptErrors with parameters//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[not(contains(@class,'borderless'))][*[contains(@class,'icon-plus')]]
    • Running assertLiferayErrors
  • Running SelectFrameTop
    • Running selectFrame with parametersrelative=top
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
  • Running WaitForVisible with locator1//div[contains(@class,'sidebar-content')][contains(@class,'open')] | //div[contains(@class,'sidebar__content')][contains(@class,'open')]
    • Running waitForVisible with parameters//div[contains(@class,'sidebar-content')][contains(@class,'open')] | //div[contains(@class,'sidebar__content')][contains(@class,'open')]
  • Running Type with locator1//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')] with value1WC Template Name
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]WC Template Name
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]WC Template Name
    • Running waitForElementPresent with parameters//bodyWC Template Name
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]WC Template Name
    • Running waitForEditable with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]
    • Running mouseOver with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]
    • Running clickAt with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]WC Template Name
    • Running pause with parameters1000
    • Running type with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]WC Template Name
    • Running pause with parameters1000
    • Running clickAt with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]WC Template Name
    • Running pause with parameters1000
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]
    • Running assertLiferayErrors
  • Running IsElementNotPresent with locator1//div[contains(@class,'sidebar')]//*[@*='Properties'][contains(@aria-pressed,'true')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar')]//*[@*='Properties'][contains(@aria-pressed,'true')]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//div[contains(@class,'sidebar')]//*[@*='Properties'][contains(@aria-pressed,'true')]
    • Running isNotVisible with parameters//div[contains(@class,'sidebar')]//*[@*='Properties'][contains(@aria-pressed,'true')]
  • Running AssertElementPresent with locator1//div[contains(@class,'sidebar')]//*[@*='Properties'][contains(@aria-pressed,'true')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar')]//*[@*='Properties'][contains(@aria-pressed,'true')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//div[contains(@class,'sidebar')]//*[@*='Properties'][contains(@aria-pressed,'true')]
    • Running assertElementPresent with parameters//div[contains(@class,'sidebar')]//*[@*='Properties'][contains(@aria-pressed,'true')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar')]//*[@*='Properties'][contains(@aria-pressed,'true')]
    • Running assertLiferayErrors
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running Click with locator1//*[contains(@class,'btn')][contains(@id,'selectDDMStructure')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'btn')][contains(@id,'selectDDMStructure')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//*[contains(@class,'btn')][contains(@id,'selectDDMStructure')]
    • Running mouseOver with parameters//*[contains(@class,'btn')][contains(@id,'selectDDMStructure')]
    • Running click with parameters//*[contains(@class,'btn')][contains(@id,'selectDDMStructure')]
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'btn')][contains(@id,'selectDDMStructure')]
    • Running assertLiferayErrors
  • Running SelectFrame with locator1//div[contains(@class,'modal-body')]//iframe
    • Running runScript with parameters window.addEventListener( 'load', () => { document.querySelector('iframe[src*="dialog-iframe-popup"]').onload = function() { setTimeout(() => { console.log("IFrame is fully loaded"); }, "//div[contains(@class,'modal-body')]//iframe"); }}, {once: true} );
    • Running waitForVisible with parameters//div[contains(@class,'modal-body')]//iframe
    • Running mouseOver with parameters//div[contains(@class,'modal-body')]//iframe
    • Running selectFrame with parameters//div[contains(@class,'modal-body')]//iframe
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'modal-body')]//iframe
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'modal-body')]//iframe
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')]
    • Running assertElementPresent with parameters//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')]
    • Running assertJavaScriptErrors with parameters//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')]
    • Running assertLiferayErrors
  • Running AssertClick#assertTextClickAt with locator1//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')] with value1WC Structure Name
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]WC Structure Name
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]WC Structure Name
    • Running waitForElementPresent with parameters//bodyWC Structure Name
    • Running assertJavaScriptErrors with parameters//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')]
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]WC Structure Name
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]WC Structure Name
    • Running waitForElementPresent with parameters//bodyWC Structure Name
    • Running assertJavaScriptErrors with parameters//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')]WC Structure Name
    • Running waitForTextCaseInsensitive with parameters//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')]WC Structure Name
    • Running assertTextCaseInsensitive with parameters//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')]WC Structure Name
    • Running assertJavaScriptErrors with parameters//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')]
    • Running assertLiferayErrors
    • Running mouseOver with parameters//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')]
    • Running clickAt with parameters//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')]WC Structure Name
    • Running assertJavaScriptErrors with parameters//tr[@data-qa-id='row'][contains(.,'WC Structure Name')]//td[contains(@class,'title') or contains(@class,'table')]
    • Running assertLiferayErrors
  • Running SelectFrameTop
    • Running selectFrame with parametersrelative=top
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
  • Running Click with locator1//*[@data-qa-id='header']//*[self::a or self::button][span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='header']//*[self::a or self::button][span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//*[@data-qa-id='header']//*[self::a or self::button][span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
    • Running mouseOver with parameters//*[@data-qa-id='header']//*[self::a or self::button][span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
    • Running click with parameters//*[@data-qa-id='header']//*[self::a or self::button][span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='header']//*[self::a or self::button][span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
    • Running assertLiferayErrors
  • Running UploadFile with locator1//input[contains(@id,'importScript')] with value1/home/me/dev/projects/liferay-portal/portal-web/test/functional/com/liferay/portalweb/tests/enduser/wem/journal/webcontentdisplay/dependencies/wc_template.ftl
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]/home/me/dev/projects/liferay-portal/portal-web/test/functional/com/liferay/portalweb/tests/enduser/wem/journal/webcontentdisplay/dependencies/wc_template.ftl
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]/home/me/dev/projects/liferay-portal/portal-web/test/functional/com/liferay/portalweb/tests/enduser/wem/journal/webcontentdisplay/dependencies/wc_template.ftl
    • Running waitForElementPresent with parameters//body/home/me/dev/projects/liferay-portal/portal-web/test/functional/com/liferay/portalweb/tests/enduser/wem/journal/webcontentdisplay/dependencies/wc_template.ftl
    • Running assertJavaScriptErrors with parameters//input[contains(@id,'importScript')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//input[contains(@id,'importScript')]/home/me/dev/projects/liferay-portal/portal-web/test/functional/com/liferay/portalweb/tests/enduser/wem/journal/webcontentdisplay/dependencies/wc_template.ftl
    • Running uploadFile with parameters//input[contains(@id,'importScript')]/home/me/dev/projects/liferay-portal/portal-web/test/functional/com/liferay/portalweb/tests/enduser/wem/journal/webcontentdisplay/dependencies/wc_template.ftl
    • Running assertJavaScriptErrors with parameters//input[contains(@id,'importScript')]
    • Running assertLiferayErrors
  • Running Click with locator1//*[@data-qa-id='header']//*[self::a or self::button][span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='header']//*[self::a or self::button][span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//*[@data-qa-id='header']//*[self::a or self::button][span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
    • Running mouseOver with parameters//*[@data-qa-id='header']//*[self::a or self::button][span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
    • Running click with parameters//*[@data-qa-id='header']//*[self::a or self::button][span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='header']//*[self::a or self::button][span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
    • Running assertLiferayErrors
  • Running Click#mouseDownMouseUp with locator1//span[contains(@class,'btn')][normalize-space(text())='Save']/..
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//span[contains(@class,'btn')][normalize-space(text())='Save']/..
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//span[contains(@class,'btn')][normalize-space(text())='Save']/..
    • Running waitForVisible with parameters//span[contains(@class,'btn')][normalize-space(text())='Save']/..
    • Running mouseDown with parameters//span[contains(@class,'btn')][normalize-space(text())='Save']/..
    • Running mouseUp with parameters//span[contains(@class,'btn')][normalize-space(text())='Save']/..
    • Running assertJavaScriptErrors with parameters//span[contains(@class,'btn')][normalize-space(text())='Save']/..
    • Running assertLiferayErrors
  • Running VerifyElementPresent with locator1//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]false
    • Running verifyElementPresent with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running assertLiferayErrors
  • Running Open with locator1http://localhost:8080/web/test-site-name
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/web/test-site-name
    • Running assertLiferayErrors
    • Running selectWindow with parameters
    • Running selectFrame with parametersrelative=top
    • Running open with parametershttp://localhost:8080/web/test-site-name
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/web/test-site-name
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/web/test-site-name
    • Running assertLiferayErrors
  • Running IsElementNotPresent with locator1//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Test Page Name']]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Test Page Name']]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Test Page Name']]
    • Running isNotVisible with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Test Page Name']]
  • Running AssertVisible with locator1//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Test Page Name']]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Test Page Name']]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Test Page Name']]
    • Running assertVisible with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Test Page Name']]
    • Running assertJavaScriptErrors with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Test Page Name']]
    • Running assertLiferayErrors
  • Running MouseOver#javaScriptMouseOver with locator1//header[div/span[.='Web Content Display']]//*[@data-qa-id='addButton']//a/span
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//header[div/span[.='Web Content Display']]//*[@data-qa-id='addButton']//a/span
    • Running assertLiferayErrors
    • Running javaScriptMouseOver with parameters//header[div/span[.='Web Content Display']]//*[@data-qa-id='addButton']//a/span
    • Running assertJavaScriptErrors with parameters//header[div/span[.='Web Content Display']]//*[@data-qa-id='addButton']//a/span
    • Running assertLiferayErrors
  • Running Click#javaScriptClick with locator1//header[div/span[.='Web Content Display']]//*[@data-qa-id='addButton']//a/span
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//header[div/span[.='Web Content Display']]//*[@data-qa-id='addButton']//a/span
    • Running assertLiferayErrors
    • Running javaScriptClick with parameters//header[div/span[.='Web Content Display']]//*[@data-qa-id='addButton']//a/span
    • Running assertJavaScriptErrors with parameters//header[div/span[.='Web Content Display']]//*[@data-qa-id='addButton']//a/span
    • Running assertLiferayErrors
  • Running Click with locator1xpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="WC Structure Name"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="WC Structure Name"]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="WC Structure Name"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="WC Structure Name"]
    • Running assertLiferayErrors
    • Running waitForVisible with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="WC Structure Name"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="WC Structure Name"]
    • Running mouseOver with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="WC Structure Name"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="WC Structure Name"]
    • Running click with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="WC Structure Name"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="WC Structure Name"]
    • Running assertJavaScriptErrors with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="WC Structure Name"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="WC Structure Name"]
    • Running assertLiferayErrors
  • Running AssertVisible with locator1//input[contains(@id,'title')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//input[contains(@id,'title')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//input[contains(@id,'title')]
    • Running assertVisible with parameters//input[contains(@id,'title')]
    • Running assertJavaScriptErrors with parameters//input[contains(@id,'title')]
    • Running assertLiferayErrors
  • Running WaitForVisible with locator1//div[contains(@class,'contextual-sidebar-visible')]
    • Running waitForVisible with parameters//div[contains(@class,'contextual-sidebar-visible')]
  • Running AssertVisible with locator1//div[contains(@class,'contextual-sidebar-visible')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertVisible with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertLiferayErrors
  • Running Type with locator1//input[contains(@id,'title')] with value1WC WebContent Title
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]WC WebContent Title
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]WC WebContent Title
    • Running waitForElementPresent with parameters//bodyWC WebContent Title
    • Running assertJavaScriptErrors with parameters//input[contains(@id,'title')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//input[contains(@id,'title')]WC WebContent Title
    • Running waitForEditable with parameters//input[contains(@id,'title')]
    • Running mouseOver with parameters//input[contains(@id,'title')]
    • Running clickAt with parameters//input[contains(@id,'title')]WC WebContent Title
    • Running pause with parameters1000
    • Running type with parameters//input[contains(@id,'title')]WC WebContent Title
    • Running pause with parameters1000
    • Running clickAt with parameters//input[contains(@id,'title')]WC WebContent Title
    • Running pause with parameters1000
    • Running assertJavaScriptErrors with parameters//input[contains(@id,'title')]
    • Running assertLiferayErrors
  • Running AssertVisible with locator1//div[contains(@class,'contextual-sidebar-visible')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertVisible with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertLiferayErrors
  • Running Type with locator1//label[normalize-space(text())='Text']//following-sibling::div/input with value1WC WebContent Text
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]WC WebContent Text
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]WC WebContent Text
    • Running waitForElementPresent with parameters//bodyWC WebContent Text
    • Running assertJavaScriptErrors with parameters//label[normalize-space(text())='Text']//following-sibling::div/input
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//label[normalize-space(text())='Text']//following-sibling::div/inputWC WebContent Text
    • Running waitForEditable with parameters//label[normalize-space(text())='Text']//following-sibling::div/input
    • Running mouseOver with parameters//label[normalize-space(text())='Text']//following-sibling::div/input
    • Running clickAt with parameters//label[normalize-space(text())='Text']//following-sibling::div/inputWC WebContent Text
    • Running pause with parameters1000
    • Running type with parameters//label[normalize-space(text())='Text']//following-sibling::div/inputWC WebContent Text
    • Running pause with parameters1000
    • Running clickAt with parameters//label[normalize-space(text())='Text']//following-sibling::div/inputWC WebContent Text
    • Running pause with parameters1000
    • Running assertJavaScriptErrors with parameters//label[normalize-space(text())='Text']//following-sibling::div/input
    • Running assertLiferayErrors
  • Running AssertVisible with locator1//div[contains(@class,'contextual-sidebar-visible')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertVisible with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertLiferayErrors
  • Running Type with locator1//label[normalize-space(text())='Text Box']//..//textarea with value1Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running waitForElementPresent with parameters//bodyHello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running assertJavaScriptErrors with parameters//label[normalize-space(text())='Text Box']//..//textarea
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//label[normalize-space(text())='Text Box']//..//textareaHello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running waitForEditable with parameters//label[normalize-space(text())='Text Box']//..//textarea
    • Running mouseOver with parameters//label[normalize-space(text())='Text Box']//..//textarea
    • Running clickAt with parameters//label[normalize-space(text())='Text Box']//..//textareaHello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running pause with parameters1000
    • Running type with parameters//label[normalize-space(text())='Text Box']//..//textareaHello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running pause with parameters1000
    • Running clickAt with parameters//label[normalize-space(text())='Text Box']//..//textareaHello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running pause with parameters1000
    • Running assertJavaScriptErrors with parameters//label[normalize-space(text())='Text Box']//..//textarea
    • Running assertLiferayErrors
  • Running ScrollWebElementIntoView with locator1//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running scrollWebElementIntoView with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running assertJavaScriptErrors with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running assertLiferayErrors
  • Running Click#mouseDownMouseUp with locator1//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running waitForVisible with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running mouseDown with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running mouseUp with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running assertJavaScriptErrors with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running assertLiferayErrors
  • Running VerifyElementPresent with locator1//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]false
    • Running verifyElementPresent with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running assertLiferayErrors
  • Running AssertTextEquals with locator1//div[contains(@class,'journal-content-article')]//h1[contains(@class,'text')] with value1WC WebContent Text
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]WC WebContent Text
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]WC WebContent Text
    • Running waitForElementPresent with parameters//bodyWC WebContent Text
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'journal-content-article')]//h1[contains(@class,'text')]
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]WC WebContent Text
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]WC WebContent Text
    • Running waitForElementPresent with parameters//bodyWC WebContent Text
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'journal-content-article')]//h1[contains(@class,'text')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'journal-content-article')]//h1[contains(@class,'text')]WC WebContent Text
    • Running waitForTextCaseInsensitive with parameters//div[contains(@class,'journal-content-article')]//h1[contains(@class,'text')]WC WebContent Text
    • Running assertTextCaseInsensitive with parameters//div[contains(@class,'journal-content-article')]//h1[contains(@class,'text')]WC WebContent Text
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'journal-content-article')]//h1[contains(@class,'text')]
    • Running assertLiferayErrors
  • Running AssertTextEquals with locator1//div[contains(@class,'journal-content-article')]//h2[contains(@class,'text-box')] with value1Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running waitForElementPresent with parameters//bodyHello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'journal-content-article')]//h2[contains(@class,'text-box')]
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running waitForElementPresent with parameters//bodyHello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'journal-content-article')]//h2[contains(@class,'text-box')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'journal-content-article')]//h2[contains(@class,'text-box')]Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running waitForTextCaseInsensitive with parameters//div[contains(@class,'journal-content-article')]//h2[contains(@class,'text-box')]Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running assertTextCaseInsensitive with parameters//div[contains(@class,'journal-content-article')]//h2[contains(@class,'text-box')]Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'journal-content-article')]//h2[contains(@class,'text-box')]
    • Running assertLiferayErrors
  • Running Open with locator1http://localhost:8080/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet
    • Running assertLiferayErrors
    • Running selectWindow with parameters
    • Running selectFrame with parametersrelative=top
    • Running open with parametershttp://localhost:8080/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet
    • Running assertLiferayErrors
  • Running WaitForPageLoad
    • Running runScript with parameters window.addEventListener( 'load', () => { setTimeout(() => { console.log("Page is fully loaded"); }, "0"); }, {once: true} );
  • Running Click#mouseOverClick with locator1//ul[@class='navbar-nav'][2]//li[contains(@class,'nav-item')]//button[contains(@class,'dropdown-toggle') and contains(@class,'nav-link-monospaced')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//ul[@class='navbar-nav'][2]//li[contains(@class,'nav-item')]//button[contains(@class,'dropdown-toggle') and contains(@class,'nav-link-monospaced')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//ul[@class='navbar-nav'][2]//li[contains(@class,'nav-item')]//button[contains(@class,'dropdown-toggle') and contains(@class,'nav-link-monospaced')]
    • Running mouseOver with parameters//ul[@class='navbar-nav'][2]//li[contains(@class,'nav-item')]//button[contains(@class,'dropdown-toggle') and contains(@class,'nav-link-monospaced')]
    • Running waitForVisible with parameters//ul[@class='navbar-nav'][2]//li[contains(@class,'nav-item')]//button[contains(@class,'dropdown-toggle') and contains(@class,'nav-link-monospaced')]
    • Running click with parameters//ul[@class='navbar-nav'][2]//li[contains(@class,'nav-item')]//button[contains(@class,'dropdown-toggle') and contains(@class,'nav-link-monospaced')]
    • Running assertJavaScriptErrors with parameters//ul[@class='navbar-nav'][2]//li[contains(@class,'nav-item')]//button[contains(@class,'dropdown-toggle') and contains(@class,'nav-link-monospaced')]
    • Running assertLiferayErrors
  • Running Click with locator1xpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="List"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="List"]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="List"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="List"]
    • Running assertLiferayErrors
    • Running waitForVisible with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="List"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="List"]
    • Running mouseOver with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="List"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="List"]
    • Running click with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="List"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="List"]
    • Running assertJavaScriptErrors with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="List"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="List"]
    • Running assertLiferayErrors
  • Running WaitForPageLoad
    • Running runScript with parameters window.addEventListener( 'load', () => { setTimeout(() => { console.log("Page is fully loaded"); }, "0"); }, {once: true} );
  • Running Click#mouseOverClick with locator1//ul[@class='navbar-nav'][2]//li[contains(@class,'nav-item')]//button[contains(@class,'dropdown-toggle') and contains(@class,'nav-link-monospaced')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//ul[@class='navbar-nav'][2]//li[contains(@class,'nav-item')]//button[contains(@class,'dropdown-toggle') and contains(@class,'nav-link-monospaced')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//ul[@class='navbar-nav'][2]//li[contains(@class,'nav-item')]//button[contains(@class,'dropdown-toggle') and contains(@class,'nav-link-monospaced')]
    • Running mouseOver with parameters//ul[@class='navbar-nav'][2]//li[contains(@class,'nav-item')]//button[contains(@class,'dropdown-toggle') and contains(@class,'nav-link-monospaced')]
    • Running waitForVisible with parameters//ul[@class='navbar-nav'][2]//li[contains(@class,'nav-item')]//button[contains(@class,'dropdown-toggle') and contains(@class,'nav-link-monospaced')]
    • Running click with parameters//ul[@class='navbar-nav'][2]//li[contains(@class,'nav-item')]//button[contains(@class,'dropdown-toggle') and contains(@class,'nav-link-monospaced')]
    • Running assertJavaScriptErrors with parameters//ul[@class='navbar-nav'][2]//li[contains(@class,'nav-item')]//button[contains(@class,'dropdown-toggle') and contains(@class,'nav-link-monospaced')]
    • Running assertLiferayErrors
  • Running Click with locator1xpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="List"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="List"]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="List"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="List"]
    • Running assertLiferayErrors
    • Running waitForVisible with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="List"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="List"]
    • Running mouseOver with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="List"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="List"]
    • Running click with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="List"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="List"]
    • Running assertJavaScriptErrors with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="List"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="List"]
    • Running assertLiferayErrors
  • Running AssertTextEquals#assertPartialText with locator1//*[contains(@data-title,'WC WebContent Title')]//*[@data-qa-id='rowItemContent']//a with value1WC WebContent Title
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]WC WebContent Title
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]WC WebContent Title
    • Running waitForElementPresent with parameters//bodyWC WebContent Title
    • Running assertJavaScriptErrors with parameters//*[contains(@data-title,'WC WebContent Title')]//*[@data-qa-id='rowItemContent']//a
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//*[contains(@data-title,'WC WebContent Title')]//*[@data-qa-id='rowItemContent']//aWC WebContent Title
    • Running waitForPartialTextCaseInsensitive with parameters//*[contains(@data-title,'WC WebContent Title')]//*[@data-qa-id='rowItemContent']//aWC WebContent Title
    • Running assertPartialTextCaseInsensitive with parameters//*[contains(@data-title,'WC WebContent Title')]//*[@data-qa-id='rowItemContent']//aWC WebContent Title
    • Running assertJavaScriptErrors with parameters//*[contains(@data-title,'WC WebContent Title')]//*[@data-qa-id='rowItemContent']//a
    • Running assertLiferayErrors
  • Running Click#waitForMenuToggleJSClick with locator1//*[contains(@data-title,'WC WebContent Title')]//*[contains(@class,'dropdown-toggle')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@data-title,'WC WebContent Title')]//*[contains(@class,'dropdown-toggle')]
    • Running assertLiferayErrors
    • Running selectFrame with parametersrelative=top
    • Running waitForElementPresent with parameters//script[contains(@src,'/o/frontend-js-aui-web/liferay/menu_toggle.js')]
    • Running isElementPresent with parameters//*[contains(@class,'modal-body')]/iframe[not(contains(@class,'hidden'))]
    • Running pause with parameters3000
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//*[contains(@data-title,'WC WebContent Title')]//*[contains(@class,'dropdown-toggle')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//*[contains(@data-title,'WC WebContent Title')]//*[contains(@class,'dropdown-toggle')]
    • Running mouseOver with parameters//*[contains(@data-title,'WC WebContent Title')]//*[contains(@class,'dropdown-toggle')]
    • Running click with parameters//*[contains(@data-title,'WC WebContent Title')]//*[contains(@class,'dropdown-toggle')]
    • Running assertJavaScriptErrors with parameters//*[contains(@data-title,'WC WebContent Title')]//*[contains(@class,'dropdown-toggle')]
    • Running assertLiferayErrors
    • Running assertJavaScriptErrors with parameters//*[contains(@data-title,'WC WebContent Title')]//*[contains(@class,'dropdown-toggle')]
    • Running assertLiferayErrors
  • Running Click with locator1xpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="Edit"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="Edit"]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="Edit"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="Edit"]
    • Running assertLiferayErrors
    • Running waitForVisible with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="Edit"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="Edit"]
    • Running mouseOver with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="Edit"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="Edit"]
    • Running click with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="Edit"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="Edit"]
    • Running assertJavaScriptErrors with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')][contains(@class,'menu')][not(contains(@class,'product-menu'))]//*[normalize-space(text())="Edit"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="Edit"]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1//a[..//*[name()='svg'][contains(@class,'icon-angle-left')]] | //a[contains(@class,'icon-circle-arrow-left') and contains(@class,'previous-level')] | //span[contains(@class,'icon-angle-left')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//a[..//*[name()='svg'][contains(@class,'icon-angle-left')]] | //a[contains(@class,'icon-circle-arrow-left') and contains(@class,'previous-level')] | //span[contains(@class,'icon-angle-left')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//a[..//*[name()='svg'][contains(@class,'icon-angle-left')]] | //a[contains(@class,'icon-circle-arrow-left') and contains(@class,'previous-level')] | //span[contains(@class,'icon-angle-left')]
    • Running assertElementPresent with parameters//a[..//*[name()='svg'][contains(@class,'icon-angle-left')]] | //a[contains(@class,'icon-circle-arrow-left') and contains(@class,'previous-level')] | //span[contains(@class,'icon-angle-left')]
    • Running assertJavaScriptErrors with parameters//a[..//*[name()='svg'][contains(@class,'icon-angle-left')]] | //a[contains(@class,'icon-circle-arrow-left') and contains(@class,'previous-level')] | //span[contains(@class,'icon-angle-left')]
    • Running assertLiferayErrors
  • Running AssertVisible with locator1//div[contains(@class,'contextual-sidebar-visible')]
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertVisible with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertLiferayErrors
  • Running AssertTextEquals with locator1//input[contains(@id,'title')] with value1WC WebContent Title
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]WC WebContent Title
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]WC WebContent Title
    • Running waitForElementPresent with parameters//bodyWC WebContent Title
    • Running assertJavaScriptErrors with parameters//input[contains(@id,'title')]
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]WC WebContent Title
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]WC WebContent Title
    • Running waitForElementPresent with parameters//bodyWC WebContent Title
    • Running assertJavaScriptErrors with parameters//input[contains(@id,'title')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//input[contains(@id,'title')]WC WebContent Title
    • Running waitForValue with parameters//input[contains(@id,'title')]WC WebContent Title
    • Running assertValue with parameters//input[contains(@id,'title')]WC WebContent Title
    • Running assertJavaScriptErrors with parameters//input[contains(@id,'title')]
    • Running assertLiferayErrors
  • Running AssertTextEquals#assertValue with locator1//label[normalize-space(text())='Text']//following-sibling::div/input with value1WC WebContent Text
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]WC WebContent Text
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]WC WebContent Text
    • Running waitForElementPresent with parameters//bodyWC WebContent Text
    • Running assertJavaScriptErrors with parameters//label[normalize-space(text())='Text']//following-sibling::div/input
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//label[normalize-space(text())='Text']//following-sibling::div/inputWC WebContent Text
    • Running waitForValue with parameters//label[normalize-space(text())='Text']//following-sibling::div/inputWC WebContent Text
    • Running assertValue with parameters//label[normalize-space(text())='Text']//following-sibling::div/inputWC WebContent Text
    • Running assertJavaScriptErrors with parameters//label[normalize-space(text())='Text']//following-sibling::div/input
    • Running assertLiferayErrors
  • Taking screenshot
    screenshot0Screenshot
  • Running WaitForElementPresent with locator1//label[normalize-space(text())='Text Box']//..//textarea
    • Running waitForElementPresent with parameters//label[normalize-space(text())='Text Box']//..//textarea
  • Running WaitForSPARefresh
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
    • Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
    • Running waitForElementPresent with parameters//body
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
  • Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
  • Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1
  • PASSED
  • LocalFile.WebContentDisplay#tear-down
  • ## * GroupId: 44345
  • Running post with parametersArg: ${curl}Return: {}Finished executing commands.
  • LocalFile.WebContentDisplay#AddWithStructure

    • 8
      setUp {
      • 9
        task ("Set up instance and sign in") {
        • 10
          TestCase.setUpPortalInstance();
          • 165
            var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
          • 166
            var testPortalInstance = PropsUtil.get("test.portal.instance");
          • 168
            if (!(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
            • 169
              HeadlessPortalInstanceAPI.cleanAllPortalInstances(authenticationMethod = ${authenticationMethod});
              • 106
                var portalInstanceJson = HeadlessPortalInstanceAPI._getPortalInstances(authenticationMethod = ${authenticationMethod});
                • 5
                  var portalURL = JSONCompany.getDefaultPortalURL();
                  • 97
                    var portalURL = PropsUtil.get("default.portal.url");
                  • 99
                    if (!(contains(${portalURL}, "http"))) {
                    • 100
                      var portalURL = "http://${portalURL}";
                    }
                  • 103
                    return ${portalURL};
                • 7
                  if (${authenticationMethod} == "By Screen Name") {
                  • 8
                    var userName = "test";
                  }
                • 10
                  else {
                  • 11
                    var userName = "test@liferay.com";
                  }
                • 14
                  var curl = ''' ${portalURL}/o/headless-portal-instances/v1.0/portal-instances \ -u ${userName}:test \ -H Content-Type: application/json ''';
                • 20
                  var json = JSONCurlUtil.get(${curl});
                • 22
                  return ${json};
              • 108
                var portalInstanceIds = JSONUtil.getWithJSONPath(${portalInstanceJson}, "$.items..portalInstanceId");
              • 110
                for (var portalInstanceId : list ${portalInstanceIds}) {
                • 111
                  if (${portalInstanceId} != "liferay.com") {
                  • 112
                    HeadlessPortalInstanceAPI.deletePortalInstance( authenticationMethod = ${authenticationMethod}, portalInstanceId = ${portalInstanceId});
                    • 121
                      Variables.assertDefined(parameterList = ${portalInstanceId});
                      • 5
                        if (!(isSet(parameterList))) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list ${parameterList}) {
                        • 13
                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                        • 17
                          if ((${undefined} == "true") && (${parameter} != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 123
                      var portalURL = JSONCompany.getDefaultPortalURL();
                      • 97
                        var portalURL = PropsUtil.get("default.portal.url");
                      • 99
                        if (!(contains(${portalURL}, "http"))) {
                        • 100
                          var portalURL = "http://${portalURL}";
                        }
                      • 103
                        return ${portalURL};
                    • 124
                      var portalInstanceId = StringUtil.replace(${portalInstanceId}, " ", "%20");
                    • 126
                      if (${authenticationMethod} == "By Screen Name") {
                      • 127
                        var userName = "test";
                      }
                    • 129
                      else {
                      • 130
                        var userName = "test@liferay.com";
                      }
                    • 133
                      var curl = ''' ${portalURL}/o/headless-portal-instances/v1.0/portal-instances/${portalInstanceId} \ -u ${userName}:test \ -H Content-Type: application/json ''';
                    • 139
                      JSONCurlUtil.delete(${curl});
                  }
                }
            • 171
              if (${testPortalInstance} == "true") {
              • 172
                SignIn.signInPortalInstanceSetUp();
                • 3
                  var userEmailAddress = "test@liferay.com";
                • 4
                  var userPassword = "test";
                • 5
                  var userPasswordReminderAnswer = "test";
                • 62
                  var portalURL = PropsUtil.get("portal.url");
                • 64
                  var portalURL = StringUtil.replace(${portalURL}, "http://", "");
                • 66
                  var portalURL = StringUtil.replace(${portalURL}, ":8080", "");
                • 68
                  HeadlessPortalInstanceAPI.addPortalInstance( authenticationMethod = ${authenticationMethod}, domain = "liferay.com", portalInstanceId = ${portalURL}, virtualHost = ${portalURL});
                  • 27
                    Variables.assertDefined(parameterList = "${domain},${virtualHost},${portalInstanceId}");
                    • 5
                      if (!(isSet(parameterList))) {
                      • 6
                        fail("Please define a parameter list in 'parameterList'");
                      }
                    • 9
                      for (var parameter : list ${parameterList}) {
                      • 13
                        var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                      • 17
                        if ((${undefined} == "true") && (${parameter} != "false")) {
                        • 18
                          fail("Please set '${parameter}'");
                        }
                      }
                  • 29
                    var portalURL = JSONCompany.getDefaultPortalURL();
                    • 97
                      var portalURL = PropsUtil.get("default.portal.url");
                    • 99
                      if (!(contains(${portalURL}, "http"))) {
                      • 100
                        var portalURL = "http://${portalURL}";
                      }
                    • 103
                      return ${portalURL};
                  • 30
                    var parameters = JSONUtil2._addJSONObject( json = "{}", key = "domain", value = "\"${domain}\"");
                    • 67
                      if (!(isSet(json)) || !(isSet(key)) || !(isSet(value))) {
                      • 68
                        fail("Error, 'JSON', 'key', and 'value' must all be set");
                      }
                    • 71
                      var bool = JSONUtil2._isJSONObjectPresent( json = ${json}, key = ${key});
                      • 133
                        var temp = RegexUtil.replace(${json}, "\"(${key})\"\s*:\s*", 1);
                      • 135
                        if (${temp} == ${key}) {
                        • 136
                          return "TRUE";
                        }
                      • 138
                        else {
                        • 139
                          return "FALSE";
                        }
                    • 75
                      if (${bool} == "TRUE") {
                      • 76
                        fail("Error, '${key}' already exists in the JSON");
                      }
                    • 79
                      if (${json} == "{}") {
                      • 80
                        var json = '''{"${key}" : ${value}}''';
                      }
                    • 82
                      else {
                      • 83
                        var json = StringUtil.regexReplaceFirst(${json}, "(.*)\}", "$1, \"${key}\": ${value}}");
                      }
                    • 86
                      return ${json};
                  • 35
                    var parameters = JSONUtil2._addJSONObject( json = ${parameters}, key = "virtualHost", value = "\"${virtualHost}\"");
                    • 67
                      if (!(isSet(json)) || !(isSet(key)) || !(isSet(value))) {
                      • 68
                        fail("Error, 'JSON', 'key', and 'value' must all be set");
                      }
                    • 71
                      var bool = JSONUtil2._isJSONObjectPresent( json = ${json}, key = ${key});
                      • 133
                        var temp = RegexUtil.replace(${json}, "\"(${key})\"\s*:\s*", 1);
                      • 135
                        if (${temp} == ${key}) {
                        • 136
                          return "TRUE";
                        }
                      • 138
                        else {
                        • 139
                          return "FALSE";
                        }
                    • 75
                      if (${bool} == "TRUE") {
                      • 76
                        fail("Error, '${key}' already exists in the JSON");
                      }
                    • 79
                      if (${json} == "{}") {
                      • 80
                        var json = '''{"${key}" : ${value}}''';
                      }
                    • 82
                      else {
                      • 83
                        var json = StringUtil.regexReplaceFirst(${json}, "(.*)\}", "$1, \"${key}\": ${value}}");
                      }
                    • 86
                      return ${json};
                  • 40
                    var parameters = JSONUtil2._addJSONObject( json = ${parameters}, key = "portalInstanceId", value = "\"${portalInstanceId}\"");
                    • 67
                      if (!(isSet(json)) || !(isSet(key)) || !(isSet(value))) {
                      • 68
                        fail("Error, 'JSON', 'key', and 'value' must all be set");
                      }
                    • 71
                      var bool = JSONUtil2._isJSONObjectPresent( json = ${json}, key = ${key});
                      • 133
                        var temp = RegexUtil.replace(${json}, "\"(${key})\"\s*:\s*", 1);
                      • 135
                        if (${temp} == ${key}) {
                        • 136
                          return "TRUE";
                        }
                      • 138
                        else {
                        • 139
                          return "FALSE";
                        }
                    • 75
                      if (${bool} == "TRUE") {
                      • 76
                        fail("Error, '${key}' already exists in the JSON");
                      }
                    • 79
                      if (${json} == "{}") {
                      • 80
                        var json = '''{"${key}" : ${value}}''';
                      }
                    • 82
                      else {
                      • 83
                        var json = StringUtil.regexReplaceFirst(${json}, "(.*)\}", "$1, \"${key}\": ${value}}");
                      }
                    • 86
                      return ${json};
                  • 45
                    if (${authenticationMethod} == "By Screen Name") {
                    • 46
                      var userName = "test";
                    }
                  • 48
                    else {
                    • 49
                      var userName = "test@liferay.com";
                    }
                  • 52
                    var curl = ''' ${portalURL}/o/headless-portal-instances/v1.0/portal-instances \ -u ${userName}:test \ -d ${parameters} \ -H Content-Type: application/json ''';
                  • 59
                    JSONCurlUtil.post(${curl});
              }
            }
        • 12
          User.firstLoginPG();
          • 3
            var password = "test";
          • 4
            var userEmailAddress = "test@liferay.com";
          • 1825
            var appServerType = PropsUtil.get("app.server.type");
          • 1827
            if (${appServerType} == "weblogic") {
            • 1831
              Pause(locator1 = 2000);
            }
          • 1834
            if (isSet(virtualHostsURL)) {
            • 1835
              Navigator.openSpecificURL( domain = ${domain}, url = ${virtualHostsURL});
              • 316
                Open(locator1 = ${url});
              • 318
                Alert.confirmSecurity(domain = ${domain});
                • 22
                  if (IsElementPresent(key_title = "Your connection is not private", locator1 = "Header#H1_TITLE")) {
                  • 23
                    Click(locator1 = "Button#ADVANCED");
                  • 25
                    if (isSet(domain)) {
                    • 26
                      AssertElementPresent( key_text = "Proceed to ${domain}", locator1 = "Link#ANY");
                    • 30
                      Click( key_text = "Proceed to ${domain} (unsafe)", locator1 = "Link#ANY");
                    }
                  • 34
                    else {
                    • 35
                      AssertElementPresent( key_text = "Proceed to localhost", locator1 = "Link#ANY");
                    • 39
                      Click( key_text = "Proceed to localhost (unsafe)", locator1 = "Link#ANY");
                    }
                  }
            }
          • 1839
            else {
            • 1840
              Navigator.openURL();
              • 372
                WaitForSPARefresh();
              • 374
                var baseURL = ${baseURL};
              • 376
                if (!(isSet(baseURL))) {
                • 377
                  var baseURL = PropsUtil.get("portal.url");
                }
              • 380
                Open(locator1 = "${baseURL}/web/guest/home");
            }
          • 1843
            UserBar.signOut();
            • 34
              if (IsElementNotPresent(locator1 = "UserBar#USER_SIGN_IN")) {
              • 35
                UserBar.gotoDropdown();
                • 4
                  if (IsElementPresent(locator1 = "UserBar#USER_AVATAR_PORTRAIT")) {
                  • 5
                    Click.waitForPersonalMenuJSClick(locator1 = "UserBar#USER_AVATAR_PORTRAIT");
                  }
                • 7
                  else if (IsElementPresent(locator1 = "UserBar#USER_AVATAR_TOGGLE")) {
                  • 8
                    Click.waitForMenuToggleJSClick(locator1 = "UserBar#USER_AVATAR_TOGGLE");
                  }
                • 10
                  else {
                  • 11
                    Click.waitForPersonalMenuJSClick(locator1 = "UserBar#USER_AVATAR_ICON");
                  }
                • 14
                  AssertVisible(locator1 = "UserBar#USER_AVATAR_DROPDOWN_PORTAL_OPEN");
              • 37
                ScrollWebElementIntoView(locator1 = "UserBar#USER_AVATAR_DROPDOWN_SIGNOUT");
              • 39
                Click(locator1 = "UserBar#USER_AVATAR_DROPDOWN_SIGNOUT");
              }
          • 1845
            JSONUser.agreeToTermsAndAnswerReminderQuery( portalURL = ${virtualHostsURL}, userEmailAddress = ${userEmailAddress});
            • 185
              Variables.assertDefined(parameterList = ${userEmailAddress});
              • 5
                if (!(isSet(parameterList))) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list ${parameterList}) {
                • 13
                  var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                • 17
                  if ((${undefined} == "true") && (${parameter} != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 187
              var portalInstanceName = JSONUserSetter.setPortalInstanceName(portalURL = ${portalURL});
              • 38
                if (isSet(portalURL)) {
                • 39
                  var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                  • 144
                    Variables.assertDefined(parameterList = ${portalURL});
                    • 5
                      if (!(isSet(parameterList))) {
                      • 6
                        fail("Please define a parameter list in 'parameterList'");
                      }
                    • 9
                      for (var parameter : list ${parameterList}) {
                      • 13
                        var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                      • 17
                        if ((${undefined} == "true") && (${parameter} != "false")) {
                        • 18
                          fail("Please set '${parameter}'");
                        }
                      }
                  • 146
                    var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                  • 148
                    var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                  • 150
                    return ${portalInstanceName};
                }
              • 42
                return ${portalInstanceName};
            • 189
              var userId = JSONUserSetter.setUserId( creatorEmailAddress = ${creatorEmailAddress}, creatorPassword = ${creatorPassword}, portalInstanceName = ${portalInstanceName}, specificURL = ${portalURL}, userEmailAddress = ${userEmailAddress});
              • 93
                Variables.assertDefined(parameterList = ${userEmailAddress});
                • 5
                  if (!(isSet(parameterList))) {
                  • 6
                    fail("Please define a parameter list in 'parameterList'");
                  }
                • 9
                  for (var parameter : list ${parameterList}) {
                  • 13
                    var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                  • 17
                    if ((${undefined} == "true") && (${parameter} != "false")) {
                    • 18
                      fail("Please set '${parameter}'");
                    }
                  }
              • 95
                var userId = JSONUserAPI._getUserIdByEmailAddress( creatorEmailAddress = ${creatorEmailAddress}, creatorPassword = ${creatorPassword}, portalInstanceName = ${portalInstanceName}, specificURL = ${specificURL}, userEmailAddress = ${userEmailAddress});
                • 222
                  Variables.assertDefined(parameterList = ${userEmailAddress});
                  • 5
                    if (!(isSet(parameterList))) {
                    • 6
                      fail("Please define a parameter list in 'parameterList'");
                    }
                  • 9
                    for (var parameter : list ${parameterList}) {
                    • 13
                      var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                    • 17
                      if ((${undefined} == "true") && (${parameter} != "false")) {
                      • 18
                        fail("Please set '${parameter}'");
                      }
                    }
                • 224
                  var companyId = JSONCompany.getCompanyId( creatorEmailAddress = ${creatorEmailAddress}, creatorPassword = ${creatorPassword}, portalInstanceName = ${portalInstanceName});
                  • 23
                    if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                    • 24
                      var portalInstanceName = JSONCompany.getPortalInstanceName();
                      • 107
                        var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                      • 108
                        var testPortalInstance = PropsUtil.get("test.portal.instance");
                      • 110
                        if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                        • 111
                          var portalURL = JSONCompany.getPortalURL();
                          • 138
                            var portalURL = PropsUtil.get("portal.url");
                          • 140
                            return ${portalURL};
                        • 113
                          var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                          • 144
                            Variables.assertDefined(parameterList = ${portalURL});
                            • 5
                              if (!(isSet(parameterList))) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list ${parameterList}) {
                              • 13
                                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                              • 17
                                if ((${undefined} == "true") && (${parameter} != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 146
                            var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                          • 148
                            var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                          • 150
                            return ${portalInstanceName};
                        • 115
                          return ${portalInstanceName};
                        }
                      • 117
                        else {
                        • 118
                          return "localhost";
                        }
                    }
                  • 27
                    if (!(isSet(portalURL))) {
                    • 28
                      var portalURL = JSONCompany.getPortalURL();
                      • 138
                        var portalURL = PropsUtil.get("portal.url");
                      • 140
                        return ${portalURL};
                    }
                  • 31
                    if (!(isSet(creatorEmailAddress))) {
                    • 32
                      if (${authenticationMethod} == "By Screen Name") {
                      • 33
                        if (!(isSet(userScreenName))) {
                        • 34
                          var creatorEmailAddress = "test";
                        }
                      • 36
                        else {
                        • 37
                          var creatorEmailAddress = ${userScreenName};
                        }
                      }
                    • 40
                      else {
                      • 41
                        var creatorEmailAddress = "test@liferay.com";
                      }
                    }
                  • 45
                    if (!(isSet(creatorPassword))) {
                    • 46
                      var creatorPassword = "test";
                    }
                  • 49
                    var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                  • 54
                    var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                  • 56
                    return ${companyId};
                • 229
                  if (isSet(specificURL)) {
                  • 230
                    var portalURL = ${specificURL};
                  }
                • 232
                  else {
                  • 233
                    var portalURL = JSONCompany.getPortalURL();
                    • 138
                      var portalURL = PropsUtil.get("portal.url");
                    • 140
                      return ${portalURL};
                  }
                • 236
                  if (!(isSet(creatorEmailAddress))) {
                  • 237
                    if (isSet(specificURL)) {
                    • 238
                      var creatorEmailAddress = ${userEmailAddress};
                    }
                  • 240
                    else {
                    • 241
                      var creatorEmailAddress = "test@liferay.com";
                    }
                  }
                • 245
                  if (!(isSet(creatorPassword))) {
                  • 246
                    var creatorPassword = "test";
                  }
                • 249
                  var curl = ''' ${portalURL}/api/jsonws/user/get-user-by-email-address/company-id/${companyId}/email-address/${userEmailAddress} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                • 254
                  var userId = JSONCurlUtil.get(${curl}, "$['userId']");
                • 256
                  return ${userId};
              • 102
                return ${userId};
            • 196
              JSONUserAPI._agreeToTermsAndAnswerReminderQuery( creatorEmailAddress = ${creatorEmailAddress}, creatorPassword = ${creatorPassword}, portalInstanceName = ${portalInstanceName}, specificURL = ${portalURL}, userEmailAddress = ${userEmailAddress}, userId = ${userId});
              • 89
                Variables.assertDefined(parameterList = ${userId});
                • 5
                  if (!(isSet(parameterList))) {
                  • 6
                    fail("Please define a parameter list in 'parameterList'");
                  }
                • 9
                  for (var parameter : list ${parameterList}) {
                  • 13
                    var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                  • 17
                    if ((${undefined} == "true") && (${parameter} != "false")) {
                    • 18
                      fail("Please set '${parameter}'");
                    }
                  }
              • 91
                if (isSet(specificURL)) {
                • 92
                  var portalURL = ${specificURL};
                }
              • 94
                else {
                • 95
                  var portalURL = JSONCompany.getPortalURL();
                  • 138
                    var portalURL = PropsUtil.get("portal.url");
                  • 140
                    return ${portalURL};
                }
              • 98
                if (!(isSet(creatorEmailAddress))) {
                • 99
                  if (isSet(specificURL)) {
                  • 100
                    var creatorEmailAddress = ${userEmailAddress};
                  }
                • 102
                  else {
                  • 103
                    var creatorEmailAddress = "test@liferay.com";
                  }
                }
              • 107
                if (!(isSet(creatorPassword))) {
                • 108
                  var creatorPassword = "test";
                }
              • 111
                var curl = ''' ${portalURL}/api/jsonws/user/update-agreed-to-terms-of-use/user-id/${userId}/agreed-to-terms-of-use/true \ -u ${creatorEmailAddress}:${creatorPassword} ''';
              • 116
                com.liferay.poshi.runner.util.JSONCurlUtil.post(${curl});
              • 118
                var curl = ''' ${portalURL}/api/jsonws/user/update-reminder-query/user-id/${userId}/question/what-is-your-father%27s-middle-name/answer/test \ -u ${creatorEmailAddress}:${creatorPassword} ''';
              • 123
                com.liferay.poshi.runner.util.JSONCurlUtil.post(${curl});
          • 1849
            if (isSet(virtualHostsURL)) {
            • 1850
              Navigator.openSpecificURL(url = "${virtualHostsURL}/web/guest?SM_USER=${userEmailAddress}");
              • 316
                Open(locator1 = ${url});
              • 318
                Alert.confirmSecurity(domain = ${domain});
                • 22
                  if (IsElementPresent(key_title = "Your connection is not private", locator1 = "Header#H1_TITLE")) {
                  • 23
                    Click(locator1 = "Button#ADVANCED");
                  • 25
                    if (isSet(domain)) {
                    • 26
                      AssertElementPresent( key_text = "Proceed to ${domain}", locator1 = "Link#ANY");
                    • 30
                      Click( key_text = "Proceed to ${domain} (unsafe)", locator1 = "Link#ANY");
                    }
                  • 34
                    else {
                    • 35
                      AssertElementPresent( key_text = "Proceed to localhost", locator1 = "Link#ANY");
                    • 39
                      Click( key_text = "Proceed to localhost (unsafe)", locator1 = "Link#ANY");
                    }
                  }
            }
          • 1852
            else {
            • 1853
              var baseURL = PropsUtil.get("portal.url");
            • 1855
              Navigator.openSpecificURL(url = "${baseURL}/web/guest?SM_USER=${userEmailAddress}");
              • 316
                Open(locator1 = ${url});
              • 318
                Alert.confirmSecurity(domain = ${domain});
                • 22
                  if (IsElementPresent(key_title = "Your connection is not private", locator1 = "Header#H1_TITLE")) {
                  • 23
                    Click(locator1 = "Button#ADVANCED");
                  • 25
                    if (isSet(domain)) {
                    • 26
                      AssertElementPresent( key_text = "Proceed to ${domain}", locator1 = "Link#ANY");
                    • 30
                      Click( key_text = "Proceed to ${domain} (unsafe)", locator1 = "Link#ANY");
                    }
                  • 34
                    else {
                    • 35
                      AssertElementPresent( key_text = "Proceed to localhost", locator1 = "Link#ANY");
                    • 39
                      Click( key_text = "Proceed to localhost (unsafe)", locator1 = "Link#ANY");
                    }
                  }
            }
          • 1860
            User.resetPassword(newPassword = ${newPassword});
            • 3
              var password = "test";
            • 4
              var userEmailAddress = "test@liferay.com";
            • 2281
              if (IsElementPresent.pauseIsElementPresent(locator1 = "TextInput#PASSWORD")) {
              • 2282
                if (isSet(newPassword)) {
                • 2283
                  Type( locator1 = "TextInput#PASSWORD_1", value1 = ${newPassword});
                • 2287
                  Type( locator1 = "TextInput#PASSWORD_2", value1 = ${newPassword});
                }
              • 2291
                else {
                • 2292
                  Type( locator1 = "TextInput#PASSWORD_1", value1 = "test");
                • 2296
                  Type( locator1 = "TextInput#PASSWORD_2", value1 = "test");
                }
              • 2301
                if (isSet(localizedSaveButton)) {
                • 2302
                  Button.click(button = ${localizedSaveButton});
                  • 4
                    Click.mouseDownMouseUp( key_text = ${button}, locator1 = "Button#ANY");
                }
              • 2304
                else {
                • 2305
                  Button.clickSubmitButton();
                  • 130
                    Click(locator1 = "Button#SUBMIT");
                  • 132
                    SelectFrameTop();
                • 2307
                  AssertElementNotPresent(locator1 = "TextInput#ENTER_AGAIN");
                }
              }
          • 1862
            User.answerPasswordReminder();
            • 3
              var password = "test";
            • 4
              var userEmailAddress = "test@liferay.com";
            • 752
              if (IsElementPresent.pauseIsElementPresent(locator1 = "TextInput#REMINDER_QUERY")) {
              • 753
                Type( locator1 = "TextInput#REMINDER_QUERY", value1 = "test");
              • 757
                Click(locator1 = "Button#SUBMIT");
              }
          • 1864
            if (IsElementNotPresent(locator1 = "UserBar#USER_AVATAR_IMAGE")) {
            • 1865
              takeScreenshot();
            • 1867
              echo("URL login failed, falling back to UI login.");
            • 1869
              User.firstLoginUI( idpName = ${idpName}, password = ${password}, rememberMeChecked = ${rememberMeChecked}, specificURL = ${virtualHostsURL}, userEmailAddress = ${userEmailAddress}, userScreenName = ${userScreenName});
              • 3
                var password = "test";
              • 4
                var userEmailAddress = "test@liferay.com";
              • 1884
                if (isSet(specificURL)) {
                • 1885
                  Navigator.openSpecificURL( domain = ${domain}, url = ${specificURL});
                  • 316
                    Open(locator1 = ${url});
                  • 318
                    Alert.confirmSecurity(domain = ${domain});
                    • 22
                      if (IsElementPresent(key_title = "Your connection is not private", locator1 = "Header#H1_TITLE")) {
                      • 23
                        Click(locator1 = "Button#ADVANCED");
                      • 25
                        if (isSet(domain)) {
                        • 26
                          AssertElementPresent( key_text = "Proceed to ${domain}", locator1 = "Link#ANY");
                        • 30
                          Click( key_text = "Proceed to ${domain} (unsafe)", locator1 = "Link#ANY");
                        }
                      • 34
                        else {
                        • 35
                          AssertElementPresent( key_text = "Proceed to localhost", locator1 = "Link#ANY");
                        • 39
                          Click( key_text = "Proceed to localhost (unsafe)", locator1 = "Link#ANY");
                        }
                      }
                }
              • 1889
                else {
                • 1890
                  Navigator.openURL();
                  • 372
                    WaitForSPARefresh();
                  • 374
                    var baseURL = ${baseURL};
                  • 376
                    if (!(isSet(baseURL))) {
                    • 377
                      var baseURL = PropsUtil.get("portal.url");
                    }
                  • 380
                    Open(locator1 = "${baseURL}/web/guest/home");
                }
              • 1893
                User._clickSignInLink( idpName = ${idpName}, localization = ${localization}, samlMultiIdPs = ${samlMultiIdPs});
                • 3
                  var password = "test";
                • 4
                  var userEmailAddress = "test@liferay.com";
                • 13
                  var localizedSignIn = User._getSignInText(localization = ${localization});
                  • 3
                    var password = "test";
                  • 4
                    var userEmailAddress = "test@liferay.com";
                  • 115
                    if (${localization} == "JA") {
                    • 116
                      var localizedSignIn = "ログイン";
                    }
                  • 118
                    else if (${localization} == "ZH") {
                    • 119
                      var localizedSignIn = "登录";
                    }
                  • 121
                    else if (${localization} == "IT") {
                    • 122
                      var localizedSignIn = "Accedi";
                    }
                  • 124
                    else if (${localization} == "ES") {
                    • 125
                      var localizedSignIn = "Acceder";
                    }
                  • 127
                    else {
                    • 128
                      var localizedSignIn = "Sign In";
                    }
                  • 131
                    return ${localizedSignIn};
                • 15
                  if (IsElementNotPresent(locator1 = "TextInput#EMAIL_ADDRESS")) {
                  • 16
                    if (isSet(localization)) {
                    • 17
                      AssertClick( locator1 = "UserBar#USER_SIGN_IN", value1 = ${localizedSignIn});
                    }
                  • 21
                    else if (IsElementPresent(locator1 = "UserBar#USER_SIGN_IN")) {
                    • 22
                      AssertClick( locator1 = "UserBar#USER_SIGN_IN", value1 = "Sign In");
                    • 26
                      if (${samlMultiIdPs} == "true") {
                      • 27
                        Select( key_fieldLabel = "Identity Provider", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = ${idpName});
                      • 32
                        Button.click(button = "Sign In");
                        • 4
                          Click.mouseDownMouseUp( key_text = ${button}, locator1 = "Button#ANY");
                      }
                    }
                  • 35
                    else if (IsElementPresent(key_text = "Sign In", locator1 = "Button#ANY")) {
                    • 36
                      Button.click(button = "Sign In");
                      • 4
                        Click.mouseDownMouseUp( key_text = ${button}, locator1 = "Button#ANY");
                    }
                  }
              • 1898
                if (${authenticationMethod} == "By Screen Name") {
                • 1899
                  Type( locator1 = "TextInput#SCREEN_NAME", value1 = ${userScreenName});
                }
              • 1903
                else if (${authenticationMethod} == "By User ID") {
                • 1904
                  Type.typePause( key_text = "ID", locator1 = "TextInput#ANY", value1 = ${userId});
                }
              • 1909
                else {
                • 1910
                  Type.typePause( locator1 = "TextInput#EMAIL_ADDRESS", value1 = ${userEmailAddress});
                }
              • 1915
                Type.typePause( locator1 = "TextInput#PASSWORD", value1 = ${password});
              • 1919
                if (isSet(rememberMeChecked) && (${rememberMeChecked} == "true")) {
                • 1920
                  Check(locator1 = "Checkbox#REMEMBER_ME");
                }
              • 1923
                User._clickSignInButton(localization = ${localization});
                • 3
                  var password = "test";
                • 4
                  var userEmailAddress = "test@liferay.com";
                • 7
                  var localizedSignIn = User._getSignInText(localization = ${localization});
                  • 3
                    var password = "test";
                  • 4
                    var userEmailAddress = "test@liferay.com";
                  • 115
                    if (${localization} == "JA") {
                    • 116
                      var localizedSignIn = "ログイン";
                    }
                  • 118
                    else if (${localization} == "ZH") {
                    • 119
                      var localizedSignIn = "登录";
                    }
                  • 121
                    else if (${localization} == "IT") {
                    • 122
                      var localizedSignIn = "Accedi";
                    }
                  • 124
                    else if (${localization} == "ES") {
                    • 125
                      var localizedSignIn = "Acceder";
                    }
                  • 127
                    else {
                    • 128
                      var localizedSignIn = "Sign In";
                    }
                  • 131
                    return ${localizedSignIn};
                • 9
                  Button.click(button = ${localizedSignIn});
                  • 4
                    Click.mouseDownMouseUp( key_text = ${button}, locator1 = "Button#ANY");
              • 1925
                if (isSet(localizedAgree)) {
                • 1926
                  User.acceptEndUserLicenseAgreementLocalized(localizedAgree = ${localizedAgree});
                  • 3
                    var password = "test";
                  • 4
                    var userEmailAddress = "test@liferay.com";
                  • 151
                    var key_localizedAgree = ${localizedAgree};
                  • 153
                    if (IsElementPresent(locator1 = "Button#I_AGREE_LOCALIZED")) {
                    • 154
                      AssertClick( locator1 = "Button#I_AGREE_LOCALIZED", value1 = ${localizedAgree});
                    • 158
                      AssertElementNotPresent(locator1 = "Button#I_AGREE_LOCALIZED");
                    }
                }
              • 1928
                else if (IsElementPresent(locator1 = "Button#I_AGREE")) {
                • 1929
                  SignIn.agreeToTermsOfUse();
                  • 3
                    var userEmailAddress = "test@liferay.com";
                  • 4
                    var userPassword = "test";
                  • 5
                    var userPasswordReminderAnswer = "test";
                  • 38
                    AssertClick( locator1 = "Button#I_AGREE", value1 = "I Agree");
                  • 42
                    AssertElementNotPresent(locator1 = "Button#I_AGREE");
                }
              • 1932
                if (IsElementPresent(locator1 = "TextInput#PASSWORD_2")) {
                • 1933
                  User.resetPassword( localizedSaveButton = ${localizedSaveButton}, newPassword = ${newPassword});
                  • 3
                    var password = "test";
                  • 4
                    var userEmailAddress = "test@liferay.com";
                  • 2281
                    if (IsElementPresent.pauseIsElementPresent(locator1 = "TextInput#PASSWORD")) {
                    • 2282
                      if (isSet(newPassword)) {
                      • 2283
                        Type( locator1 = "TextInput#PASSWORD_1", value1 = ${newPassword});
                      • 2287
                        Type( locator1 = "TextInput#PASSWORD_2", value1 = ${newPassword});
                      }
                    • 2291
                      else {
                      • 2292
                        Type( locator1 = "TextInput#PASSWORD_1", value1 = "test");
                      • 2296
                        Type( locator1 = "TextInput#PASSWORD_2", value1 = "test");
                      }
                    • 2301
                      if (isSet(localizedSaveButton)) {
                      • 2302
                        Button.click(button = ${localizedSaveButton});
                        • 4
                          Click.mouseDownMouseUp( key_text = ${button}, locator1 = "Button#ANY");
                      }
                    • 2304
                      else {
                      • 2305
                        Button.clickSubmitButton();
                        • 130
                          Click(locator1 = "Button#SUBMIT");
                        • 132
                          SelectFrameTop();
                      • 2307
                        AssertElementNotPresent(locator1 = "TextInput#ENTER_AGAIN");
                      }
                    }
                }
              • 1938
                if (isSet(localizedAnswer)) {
                • 1939
                  User.answerPasswordReminderLocalized( localizedAnswer = ${localizedAnswer}, localizedSaveButton = ${localizedSaveButton});
                  • 3
                    var password = "test";
                  • 4
                    var userEmailAddress = "test@liferay.com";
                  • 762
                    var key_localizedAnswer = ${localizedAnswer};
                  • 764
                    if (IsElementPresent.pauseIsElementPresent(locator1 = "TextInput#ANSWER_LOCALIZED")) {
                    • 765
                      Type( locator1 = "TextInput#ANSWER_LOCALIZED", value1 = "test");
                    • 769
                      Button.click(button = ${localizedSaveButton});
                      • 4
                        Click.mouseDownMouseUp( key_text = ${button}, locator1 = "Button#ANY");
                    • 771
                      Button.viewNotPresent(button = ${localizedSaveButton});
                      • 160
                        AssertElementNotPresent( key_text = ${button}, locator1 = "Button#ANY");
                    }
                }
              • 1943
                else if (IsElementPresent(locator1 = "Select#QUESTION")) {
                • 1944
                  SignIn.setPasswordReminder();
                  • 3
                    var userEmailAddress = "test@liferay.com";
                  • 4
                    var userPassword = "test";
                  • 5
                    var userPasswordReminderAnswer = "test";
                  • 47
                    Type( locator1 = "TextInput#ANSWER", value1 = ${userPasswordReminderAnswer});
                  • 51
                    Button.clickSave();
                    • 110
                      Button.click(button = "Save");
                      • 4
                        Click.mouseDownMouseUp( key_text = ${button}, locator1 = "Button#ANY");
                    • 112
                      WaitForLiferayEvent.initializeLiferayEventLog();
                }
              • 1947
                WaitForLiferayEvent.initializeLiferayEventLog();
            }
          • 1877
            else {
            • 1878
              WaitForLiferayEvent.initializeLiferayEventLog();
            }
        }
      • 15
        task ("Add a site") {
        • 16
          JSONGroup.addGroup(groupName = "Test Site Name");
          • 25
            Variables.assertDefined(parameterList = ${groupName});
            • 5
              if (!(isSet(parameterList))) {
              • 6
                fail("Please define a parameter list in 'parameterList'");
              }
            • 9
              for (var parameter : list ${parameterList}) {
              • 13
                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
              • 17
                if ((${undefined} == "true") && (${parameter} != "false")) {
                • 18
                  fail("Please set '${parameter}'");
                }
              }
          • 27
            var groupDescriptionMap = JSONGroupSetter.setGroupDescriptionMap(groupDescription = ${groupDescription});
            • 32
              if (isSet(groupDescription)) {
              • 33
                var groupDescription = URLUtil.encodeUTF8(${groupDescription});
              • 34
                var groupDescriptionMap = '''{"en_US":"${groupDescriptionEncoded}"}''';
              }
            • 36
              else {
              • 37
                var groupDescriptionMap = "{}";
              }
            • 40
              return ${groupDescriptionMap};
          • 28
            var groupNameMap = JSONGroupSetter.setGroupNameMap(groupName = ${groupName});
            • 60
              Variables.assertDefined(parameterList = ${groupName});
              • 5
                if (!(isSet(parameterList))) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list ${parameterList}) {
                • 13
                  var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                • 17
                  if ((${undefined} == "true") && (${parameter} != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 62
              var groupNameMap = URLUtil.encodeUTF8(${groupName});
            • 63
              var groupNameMap = '''{"en_US":"${groupName}"}''';
            • 65
              return ${groupNameMap};
          • 29
            var parentGroupId = JSONGroupSetter.setParentGroupId(groupName = ${parentGroupName});
            • 83
              if (isSet(parentGroupName)) {
              • 84
                var parentGroupId = JSONGroupAPI._getParentGroupIdByName( grandParentGroupName = ${grandParentGroupName}, groupName = ${parentGroupName});
                • 371
                  Variables.assertDefined(parameterList = ${groupName});
                  • 5
                    if (!(isSet(parameterList))) {
                    • 6
                      fail("Please define a parameter list in 'parameterList'");
                    }
                  • 9
                    for (var parameter : list ${parameterList}) {
                    • 13
                      var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                    • 17
                      if ((${undefined} == "true") && (${parameter} != "false")) {
                      • 18
                        fail("Please set '${parameter}'");
                      }
                    }
                • 373
                  var companyId = JSONCompany.getCompanyId();
                  • 23
                    if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                    • 24
                      var portalInstanceName = JSONCompany.getPortalInstanceName();
                      • 107
                        var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                      • 108
                        var testPortalInstance = PropsUtil.get("test.portal.instance");
                      • 110
                        if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                        • 111
                          var portalURL = JSONCompany.getPortalURL();
                          • 138
                            var portalURL = PropsUtil.get("portal.url");
                          • 140
                            return ${portalURL};
                        • 113
                          var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                          • 144
                            Variables.assertDefined(parameterList = ${portalURL});
                            • 5
                              if (!(isSet(parameterList))) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list ${parameterList}) {
                              • 13
                                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                              • 17
                                if ((${undefined} == "true") && (${parameter} != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 146
                            var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                          • 148
                            var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                          • 150
                            return ${portalInstanceName};
                        • 115
                          return ${portalInstanceName};
                        }
                      • 117
                        else {
                        • 118
                          return "localhost";
                        }
                    }
                  • 27
                    if (!(isSet(portalURL))) {
                    • 28
                      var portalURL = JSONCompany.getPortalURL();
                      • 138
                        var portalURL = PropsUtil.get("portal.url");
                      • 140
                        return ${portalURL};
                    }
                  • 31
                    if (!(isSet(creatorEmailAddress))) {
                    • 32
                      if (${authenticationMethod} == "By Screen Name") {
                      • 33
                        if (!(isSet(userScreenName))) {
                        • 34
                          var creatorEmailAddress = "test";
                        }
                      • 36
                        else {
                        • 37
                          var creatorEmailAddress = ${userScreenName};
                        }
                      }
                    • 40
                      else {
                      • 41
                        var creatorEmailAddress = "test@liferay.com";
                      }
                    }
                  • 45
                    if (!(isSet(creatorPassword))) {
                    • 46
                      var creatorPassword = "test";
                    }
                  • 49
                    var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                  • 54
                    var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                  • 56
                    return ${companyId};
                • 374
                  var grandParentGroupId = JSONGroupSetter.setGrandParentGroupId(grandParentGroupName = ${grandParentGroupName});
                  • 15
                    if (isSet(grandParentGroupName)) {
                    • 16
                      if (!(isSet(site))) {
                      • 17
                        var site = "true";
                      }
                    • 20
                      var grandParentGroupId = JSONGroupAPI._getGrandParentGroupIdByName( groupName = ${grandParentGroupName}, site = ${site});
                      • 193
                        Variables.assertDefined(parameterList = ${groupName});
                        • 5
                          if (!(isSet(parameterList))) {
                          • 6
                            fail("Please define a parameter list in 'parameterList'");
                          }
                        • 9
                          for (var parameter : list ${parameterList}) {
                          • 13
                            var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                          • 17
                            if ((${undefined} == "true") && (${parameter} != "false")) {
                            • 18
                              fail("Please set '${parameter}'");
                            }
                          }
                      • 195
                        var companyId = JSONCompany.getCompanyId();
                        • 23
                          if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                          • 24
                            var portalInstanceName = JSONCompany.getPortalInstanceName();
                            • 107
                              var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                            • 108
                              var testPortalInstance = PropsUtil.get("test.portal.instance");
                            • 110
                              if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                              • 111
                                var portalURL = JSONCompany.getPortalURL();
                                • 138
                                  var portalURL = PropsUtil.get("portal.url");
                                • 140
                                  return ${portalURL};
                              • 113
                                var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                                • 144
                                  Variables.assertDefined(parameterList = ${portalURL});
                                  • 5
                                    if (!(isSet(parameterList))) {
                                    • 6
                                      fail("Please define a parameter list in 'parameterList'");
                                    }
                                  • 9
                                    for (var parameter : list ${parameterList}) {
                                    • 13
                                      var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                                    • 17
                                      if ((${undefined} == "true") && (${parameter} != "false")) {
                                      • 18
                                        fail("Please set '${parameter}'");
                                      }
                                    }
                                • 146
                                  var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                                • 148
                                  var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                                • 150
                                  return ${portalInstanceName};
                              • 115
                                return ${portalInstanceName};
                              }
                            • 117
                              else {
                              • 118
                                return "localhost";
                              }
                          }
                        • 27
                          if (!(isSet(portalURL))) {
                          • 28
                            var portalURL = JSONCompany.getPortalURL();
                            • 138
                              var portalURL = PropsUtil.get("portal.url");
                            • 140
                              return ${portalURL};
                          }
                        • 31
                          if (!(isSet(creatorEmailAddress))) {
                          • 32
                            if (${authenticationMethod} == "By Screen Name") {
                            • 33
                              if (!(isSet(userScreenName))) {
                              • 34
                                var creatorEmailAddress = "test";
                              }
                            • 36
                              else {
                              • 37
                                var creatorEmailAddress = ${userScreenName};
                              }
                            }
                          • 40
                            else {
                            • 41
                              var creatorEmailAddress = "test@liferay.com";
                            }
                          }
                        • 45
                          if (!(isSet(creatorPassword))) {
                          • 46
                            var creatorPassword = "test";
                          }
                        • 49
                          var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                        • 54
                          var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                        • 56
                          return ${companyId};
                      • 196
                        var portalURL = JSONCompany.getPortalURL();
                        • 138
                          var portalURL = PropsUtil.get("portal.url");
                        • 140
                          return ${portalURL};
                      • 198
                        if (!(isSet(site))) {
                        • 199
                          var site = "true";
                        }
                      • 202
                        var curl = ''' ${portalURL}/api/jsonws/group/get-groups \ -u test@liferay.com:test \ -d companyId=${companyId} \ -d parentGroupId=0 \ -d site=${site} ''';
                      • 210
                        var groupId = JSONCurlUtil.post(${curl}, "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                      • 212
                        if (${groupId} == "") {
                        • 213
                          fail("FAIL. Cannot find group.");
                        }
                      • 216
                        return ${groupId};
                    }
                  • 24
                    else {
                    • 25
                      var grandParentGroupId = 0;
                    }
                  • 28
                    return ${grandParentGroupId};
                • 375
                  var portalURL = JSONCompany.getPortalURL();
                  • 138
                    var portalURL = PropsUtil.get("portal.url");
                  • 140
                    return ${portalURL};
                • 377
                  var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${grandParentGroupId}/site/true \ -u test@liferay.com:test ''';
                • 382
                  var groupId = JSONCurlUtil.get(${curl}, "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                • 384
                  if (${groupId} == "") {
                  • 385
                    fail("FAIL. Cannot find group.");
                  }
                • 388
                  return ${groupId};
              }
            • 88
              else {
              • 89
                var parentGroupId = 0;
              }
            • 92
              return ${parentGroupId};
          • 30
            var type = JSONGroupSetter.setMembershipType(membershipType = ${membershipType});
            • 69
              if (${membershipType} == "Private") {
              • 70
                var type = 3;
              }
            • 72
              else if (${membershipType} == "Restricted") {
              • 73
                var type = 2;
              }
            • 75
              else {
              • 76
                var type = 1;
              }
            • 79
              return ${type};
          • 31
            var manualMembership = JSONGroupSetter.setAllowManualMembershipManagement(allowManualMembershipManagement = ${allowManualMembershipManagement});
            • 4
              if (${allowManualMembershipManagement} == "false") {
              • 5
                var manualMembership = "false";
              }
            • 7
              else {
              • 8
                var manualMembership = "true";
              }
            • 11
              return ${manualMembership};
          • 33
            JSONGroupAPI._addGroup( groupDescriptionMap = ${groupDescriptionMap}, groupNameMap = ${groupNameMap}, manualMembership = ${manualMembership}, parentGroupId = ${parentGroupId}, portalURL = ${portalURL}, type = ${type});
            • 5
              Variables.assertDefined(parameterList = "${groupDescriptionMap},${groupNameMap},${manualMembership},${parentGroupId},${type}");
              • 5
                if (!(isSet(parameterList))) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list ${parameterList}) {
                • 13
                  var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                • 17
                  if ((${undefined} == "true") && (${parameter} != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 7
              if (!(isSet(portalURL))) {
              • 8
                var portalURL = JSONCompany.getPortalURL();
                • 138
                  var portalURL = PropsUtil.get("portal.url");
                • 140
                  return ${portalURL};
              }
            • 11
              var curl = ''' ${portalURL}/api/jsonws/group/add-group \ -u test@liferay.com:test \ -d parentGroupId=${parentGroupId} \ -d liveGroupId=0 \ -d nameMap=${groupNameMap} \ -d descriptionMap=${groupDescriptionMap} \ -d type=${type} \ -d manualMembership=${manualMembership} \ -d membershipRestriction=0 \ -d friendlyURL= \ -d site=true \ -d inheritContent=false \ -d active=true ''';
            • 27
              JSONCurlUtil.post(${curl});
        }
      • 19
        task ("Add a widget page") {
        • 20
          JSONLayout.addPublicLayout( groupName = "Test Site Name", layoutName = "Test Page Name");
          • 39
            Variables.assertDefined(parameterList = "${groupName},${layoutName}");
            • 5
              if (!(isSet(parameterList))) {
              • 6
                fail("Please define a parameter list in 'parameterList'");
              }
            • 9
              for (var parameter : list ${parameterList}) {
              • 13
                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
              • 17
                if ((${undefined} == "true") && (${parameter} != "false")) {
                • 18
                  fail("Please set '${parameter}'");
                }
              }
          • 41
            var friendlyURL = JSONLayoutSetter.setFriendlyURL(friendlyURL = ${friendlyURL});
            • 12
              if (!(isSet(friendlyURL))) {
              • 13
                var friendlyURL = "";
              }
            • 16
              return ${friendlyURL};
          • 42
            var groupId = JSONLayoutSetter.setGroupId( grandParentGroupName = ${grandParentGroupName}, groupName = ${groupName}, parentGroupName = ${parentGroupName}, site = ${site});
            • 20
              if (!(isSet(site))) {
              • 21
                var site = "true";
              }
            • 24
              var groupId = JSONGroupAPI._getGroupIdByName( grandParentGroupName = ${grandParentGroupName}, groupName = ${groupName}, parentGroupName = ${parentGroupName}, portalURL = ${portalURL}, site = ${site});
              • 245
                Variables.assertDefined(parameterList = "${groupName},${site}");
                • 5
                  if (!(isSet(parameterList))) {
                  • 6
                    fail("Please define a parameter list in 'parameterList'");
                  }
                • 9
                  for (var parameter : list ${parameterList}) {
                  • 13
                    var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                  • 17
                    if ((${undefined} == "true") && (${parameter} != "false")) {
                    • 18
                      fail("Please set '${parameter}'");
                    }
                  }
              • 247
                if (!(isSet(portalURL))) {
                • 248
                  var portalURL = JSONCompany.getPortalURL();
                  • 138
                    var portalURL = PropsUtil.get("portal.url");
                  • 140
                    return ${portalURL};
                }
              • 251
                if (isSet(noSelenium)) {
                • 252
                  var companyId = JSONCompany.getCompanyIdNoSelenium(portalURL = ${portalURL});
                  • 60
                    if (!(isSet(portalInstanceName))) {
                    • 61
                      var portalInstanceName = JSONCompany.getPortalInstanceNameNoSelenium();
                      • 123
                        var testPortalInstance = PropsUtil.get("test.portal.instance");
                      • 125
                        if (${testPortalInstance} == "true") {
                        • 126
                          var portalURL = JSONCompany.getPortalURL();
                          • 138
                            var portalURL = PropsUtil.get("portal.url");
                          • 140
                            return ${portalURL};
                        • 128
                          var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                          • 144
                            Variables.assertDefined(parameterList = ${portalURL});
                            • 5
                              if (!(isSet(parameterList))) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list ${parameterList}) {
                              • 13
                                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                              • 17
                                if ((${undefined} == "true") && (${parameter} != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 146
                            var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                          • 148
                            var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                          • 150
                            return ${portalInstanceName};
                        • 130
                          return ${portalInstanceName};
                        }
                      • 132
                        else {
                        • 133
                          return "localhost";
                        }
                    }
                  • 64
                    if (!(isSet(portalURL))) {
                    • 65
                      var portalURL = JSONCompany.getPortalURL();
                      • 138
                        var portalURL = PropsUtil.get("portal.url");
                      • 140
                        return ${portalURL};
                    }
                  • 68
                    if (!(isSet(creatorEmailAddress))) {
                    • 69
                      if (${authenticationMethod} == "By Screen Name") {
                      • 70
                        if (!(isSet(userScreenName))) {
                        • 71
                          var creatorEmailAddress = "test";
                        }
                      • 73
                        else {
                        • 74
                          var creatorEmailAddress = ${userScreenName};
                        }
                      }
                    • 77
                      else {
                      • 78
                        var creatorEmailAddress = "test@liferay.com";
                      }
                    }
                  • 82
                    if (!(isSet(creatorPassword))) {
                    • 83
                      var creatorPassword = "test";
                    }
                  • 86
                    var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                  • 91
                    var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                  • 93
                    return ${companyId};
                }
              • 254
                else {
                • 255
                  var companyId = JSONCompany.getCompanyId(portalURL = ${portalURL});
                  • 23
                    if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                    • 24
                      var portalInstanceName = JSONCompany.getPortalInstanceName();
                      • 107
                        var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                      • 108
                        var testPortalInstance = PropsUtil.get("test.portal.instance");
                      • 110
                        if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                        • 111
                          var portalURL = JSONCompany.getPortalURL();
                          • 138
                            var portalURL = PropsUtil.get("portal.url");
                          • 140
                            return ${portalURL};
                        • 113
                          var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                          • 144
                            Variables.assertDefined(parameterList = ${portalURL});
                            • 5
                              if (!(isSet(parameterList))) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list ${parameterList}) {
                              • 13
                                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                              • 17
                                if ((${undefined} == "true") && (${parameter} != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 146
                            var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                          • 148
                            var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                          • 150
                            return ${portalInstanceName};
                        • 115
                          return ${portalInstanceName};
                        }
                      • 117
                        else {
                        • 118
                          return "localhost";
                        }
                    }
                  • 27
                    if (!(isSet(portalURL))) {
                    • 28
                      var portalURL = JSONCompany.getPortalURL();
                      • 138
                        var portalURL = PropsUtil.get("portal.url");
                      • 140
                        return ${portalURL};
                    }
                  • 31
                    if (!(isSet(creatorEmailAddress))) {
                    • 32
                      if (${authenticationMethod} == "By Screen Name") {
                      • 33
                        if (!(isSet(userScreenName))) {
                        • 34
                          var creatorEmailAddress = "test";
                        }
                      • 36
                        else {
                        • 37
                          var creatorEmailAddress = ${userScreenName};
                        }
                      }
                    • 40
                      else {
                      • 41
                        var creatorEmailAddress = "test@liferay.com";
                      }
                    }
                  • 45
                    if (!(isSet(creatorPassword))) {
                    • 46
                      var creatorPassword = "test";
                    }
                  • 49
                    var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                  • 54
                    var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                  • 56
                    return ${companyId};
                }
              • 258
                var parentGroupId = JSONGroupSetter.setParentGroupId( grandParentGroupName = ${grandParentGroupName}, parentGroupName = ${parentGroupName});
                • 83
                  if (isSet(parentGroupName)) {
                  • 84
                    var parentGroupId = JSONGroupAPI._getParentGroupIdByName( grandParentGroupName = ${grandParentGroupName}, groupName = ${parentGroupName});
                    • 371
                      Variables.assertDefined(parameterList = ${groupName});
                      • 5
                        if (!(isSet(parameterList))) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list ${parameterList}) {
                        • 13
                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                        • 17
                          if ((${undefined} == "true") && (${parameter} != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 373
                      var companyId = JSONCompany.getCompanyId();
                      • 23
                        if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                        • 24
                          var portalInstanceName = JSONCompany.getPortalInstanceName();
                          • 107
                            var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                          • 108
                            var testPortalInstance = PropsUtil.get("test.portal.instance");
                          • 110
                            if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                            • 111
                              var portalURL = JSONCompany.getPortalURL();
                              • 138
                                var portalURL = PropsUtil.get("portal.url");
                              • 140
                                return ${portalURL};
                            • 113
                              var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                              • 144
                                Variables.assertDefined(parameterList = ${portalURL});
                                • 5
                                  if (!(isSet(parameterList))) {
                                  • 6
                                    fail("Please define a parameter list in 'parameterList'");
                                  }
                                • 9
                                  for (var parameter : list ${parameterList}) {
                                  • 13
                                    var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                                  • 17
                                    if ((${undefined} == "true") && (${parameter} != "false")) {
                                    • 18
                                      fail("Please set '${parameter}'");
                                    }
                                  }
                              • 146
                                var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                              • 148
                                var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                              • 150
                                return ${portalInstanceName};
                            • 115
                              return ${portalInstanceName};
                            }
                          • 117
                            else {
                            • 118
                              return "localhost";
                            }
                        }
                      • 27
                        if (!(isSet(portalURL))) {
                        • 28
                          var portalURL = JSONCompany.getPortalURL();
                          • 138
                            var portalURL = PropsUtil.get("portal.url");
                          • 140
                            return ${portalURL};
                        }
                      • 31
                        if (!(isSet(creatorEmailAddress))) {
                        • 32
                          if (${authenticationMethod} == "By Screen Name") {
                          • 33
                            if (!(isSet(userScreenName))) {
                            • 34
                              var creatorEmailAddress = "test";
                            }
                          • 36
                            else {
                            • 37
                              var creatorEmailAddress = ${userScreenName};
                            }
                          }
                        • 40
                          else {
                          • 41
                            var creatorEmailAddress = "test@liferay.com";
                          }
                        }
                      • 45
                        if (!(isSet(creatorPassword))) {
                        • 46
                          var creatorPassword = "test";
                        }
                      • 49
                        var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                      • 54
                        var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                      • 56
                        return ${companyId};
                    • 374
                      var grandParentGroupId = JSONGroupSetter.setGrandParentGroupId(grandParentGroupName = ${grandParentGroupName});
                      • 15
                        if (isSet(grandParentGroupName)) {
                        • 16
                          if (!(isSet(site))) {
                          • 17
                            var site = "true";
                          }
                        • 20
                          var grandParentGroupId = JSONGroupAPI._getGrandParentGroupIdByName( groupName = ${grandParentGroupName}, site = ${site});
                          • 193
                            Variables.assertDefined(parameterList = ${groupName});
                            • 5
                              if (!(isSet(parameterList))) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list ${parameterList}) {
                              • 13
                                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                              • 17
                                if ((${undefined} == "true") && (${parameter} != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 195
                            var companyId = JSONCompany.getCompanyId();
                            • 23
                              if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                              • 24
                                var portalInstanceName = JSONCompany.getPortalInstanceName();
                                • 107
                                  var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                                • 108
                                  var testPortalInstance = PropsUtil.get("test.portal.instance");
                                • 110
                                  if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                                  • 111
                                    var portalURL = JSONCompany.getPortalURL();
                                    • 138
                                      var portalURL = PropsUtil.get("portal.url");
                                    • 140
                                      return ${portalURL};
                                  • 113
                                    var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                                    • 144
                                      Variables.assertDefined(parameterList = ${portalURL});
                                      • 5
                                        if (!(isSet(parameterList))) {
                                        • 6
                                          fail("Please define a parameter list in 'parameterList'");
                                        }
                                      • 9
                                        for (var parameter : list ${parameterList}) {
                                        • 13
                                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                                        • 17
                                          if ((${undefined} == "true") && (${parameter} != "false")) {
                                          • 18
                                            fail("Please set '${parameter}'");
                                          }
                                        }
                                    • 146
                                      var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                                    • 148
                                      var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                                    • 150
                                      return ${portalInstanceName};
                                  • 115
                                    return ${portalInstanceName};
                                  }
                                • 117
                                  else {
                                  • 118
                                    return "localhost";
                                  }
                              }
                            • 27
                              if (!(isSet(portalURL))) {
                              • 28
                                var portalURL = JSONCompany.getPortalURL();
                                • 138
                                  var portalURL = PropsUtil.get("portal.url");
                                • 140
                                  return ${portalURL};
                              }
                            • 31
                              if (!(isSet(creatorEmailAddress))) {
                              • 32
                                if (${authenticationMethod} == "By Screen Name") {
                                • 33
                                  if (!(isSet(userScreenName))) {
                                  • 34
                                    var creatorEmailAddress = "test";
                                  }
                                • 36
                                  else {
                                  • 37
                                    var creatorEmailAddress = ${userScreenName};
                                  }
                                }
                              • 40
                                else {
                                • 41
                                  var creatorEmailAddress = "test@liferay.com";
                                }
                              }
                            • 45
                              if (!(isSet(creatorPassword))) {
                              • 46
                                var creatorPassword = "test";
                              }
                            • 49
                              var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                            • 54
                              var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                            • 56
                              return ${companyId};
                          • 196
                            var portalURL = JSONCompany.getPortalURL();
                            • 138
                              var portalURL = PropsUtil.get("portal.url");
                            • 140
                              return ${portalURL};
                          • 198
                            if (!(isSet(site))) {
                            • 199
                              var site = "true";
                            }
                          • 202
                            var curl = ''' ${portalURL}/api/jsonws/group/get-groups \ -u test@liferay.com:test \ -d companyId=${companyId} \ -d parentGroupId=0 \ -d site=${site} ''';
                          • 210
                            var groupId = JSONCurlUtil.post(${curl}, "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                          • 212
                            if (${groupId} == "") {
                            • 213
                              fail("FAIL. Cannot find group.");
                            }
                          • 216
                            return ${groupId};
                        }
                      • 24
                        else {
                        • 25
                          var grandParentGroupId = 0;
                        }
                      • 28
                        return ${grandParentGroupId};
                    • 375
                      var portalURL = JSONCompany.getPortalURL();
                      • 138
                        var portalURL = PropsUtil.get("portal.url");
                      • 140
                        return ${portalURL};
                    • 377
                      var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${grandParentGroupId}/site/true \ -u test@liferay.com:test ''';
                    • 382
                      var groupId = JSONCurlUtil.get(${curl}, "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                    • 384
                      if (${groupId} == "") {
                      • 385
                        fail("FAIL. Cannot find group.");
                      }
                    • 388
                      return ${groupId};
                  }
                • 88
                  else {
                  • 89
                    var parentGroupId = 0;
                  }
                • 92
                  return ${parentGroupId};
              • 262
                var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${parentGroupId}/site/${site} \ -u test@liferay.com:test ''';
              • 267
                var groupId = JSONCurlUtil.get(${curl}, "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
              • 269
                if (${groupId} == "") {
                • 270
                  fail("FAIL. Cannot find group.");
                }
              • 273
                echo("## * GroupId: ${groupId}");
              • 275
                return ${groupId};
            • 31
              return ${groupId};
          • 48
            var parentLayoutId = JSONLayoutSetter.setParentLayoutId( groupId = ${groupId}, parentLayoutName = ${parentLayoutName}, privateLayout = "false");
            • 46
              var privateLayout = JSONLayoutSetter.setPrivateLayout(privateLayout = ${privateLayout});
              • 64
                if (!(isSet(privateLayout))) {
                • 65
                  var privateLayout = "false";
                }
              • 68
                return ${privateLayout};
            • 48
              if (isSet(parentLayoutName)) {
              • 49
                Variables.assertDefined(parameterList = "${groupId},${parentLayoutName}");
                • 5
                  if (!(isSet(parameterList))) {
                  • 6
                    fail("Please define a parameter list in 'parameterList'");
                  }
                • 9
                  for (var parameter : list ${parameterList}) {
                  • 13
                    var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                  • 17
                    if ((${undefined} == "true") && (${parameter} != "false")) {
                    • 18
                      fail("Please set '${parameter}'");
                    }
                  }
              • 51
                var parentLayoutId = JSONLayoutAPI._getLayoutIdByName( groupId = ${groupId}, layoutName = ${parentLayoutName}, privateLayout = ${privateLayout});
                • 73
                  Variables.assertDefined(parameterList = "${groupId},${layoutName},${privateLayout}");
                  • 5
                    if (!(isSet(parameterList))) {
                    • 6
                      fail("Please define a parameter list in 'parameterList'");
                    }
                  • 9
                    for (var parameter : list ${parameterList}) {
                    • 13
                      var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                    • 17
                      if ((${undefined} == "true") && (${parameter} != "false")) {
                      • 18
                        fail("Please set '${parameter}'");
                      }
                    }
                • 75
                  var portalURL = JSONCompany.getPortalURL();
                  • 138
                    var portalURL = PropsUtil.get("portal.url");
                  • 140
                    return ${portalURL};
                • 77
                  var curl = ''' ${portalURL}/api/jsonws/layout/get-layouts \ -u test@liferay.com:test \ -d groupId=${groupId} \ -d privateLayout=${privateLayout} ''';
                • 84
                  var layoutId = JSONCurlUtil.post(${curl}, "$.[?(@['nameCurrentValue'] == '${layoutName}')]['layoutId']");
                • 86
                  if (${layoutId} == "") {
                  • 87
                    fail("FAIL. Cannot find layout.");
                  }
                • 90
                  return ${layoutId};
              }
            • 56
              else {
              • 57
                var parentLayoutId = 0;
              }
            • 60
              return ${parentLayoutId};
          • 52
            var serviceContext = JSONLayoutSetter.setServiceContext( assetCategoryIds = ${assetCategoryIds}, assetTagNames = ${assetTagNames}, serviceContext = ${serviceContext}, workflowAction = ${workflowAction});
            • 72
              if (!(isSet(serviceContext))) {
              • 73
                var serviceContext = JSONServiceContextUtil.setServiceContext( addGuestPermissions = "true", assetCategoryIds = ${assetCategoryIds}, assetTagNames = ${assetTagNames}, workflowAction = ${workflowAction});
                • 116
                  var serviceContext = "{}";
                • 118
                  if (isSet(assetCategoryIds)) {
                  • 119
                    var serviceContext = JSONServiceContextUtil._addAssetCategoryIds( assetCategoryIds = ${assetCategoryIds}, json = ${serviceContext});
                    • 4
                      Variables.assertDefined(parameterList = "${json},${assetCategoryIds}");
                      • 5
                        if (!(isSet(parameterList))) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list ${parameterList}) {
                        • 13
                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                        • 17
                          if ((${undefined} == "true") && (${parameter} != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 6
                      var json = JSONUtil2._addJSONArray( json = ${json}, key = "assetCategoryIds");
                      • 5
                        if (!(isSet(json)) || !(isSet(key))) {
                        • 6
                          fail("Error, 'JSON' and 'key' must all be set");
                        }
                      • 11
                        var bool = JSONUtil2._isJSONArrayPresent( json = ${json}, key = ${key});
                        • 121
                          var temp = RegexUtil.replace(${json}, "\"(${key})\"\s*:\s*\[.*?\]", 1);
                        • 123
                          if (${temp} == ${key}) {
                          • 124
                            return "TRUE";
                          }
                        • 126
                          else {
                          • 127
                            return "FALSE";
                          }
                      • 15
                        if (${bool} == "TRUE") {
                        • 16
                          echo("JSON array ${key}' already added, returning original JSON");
                        }
                      • 18
                        else {
                        • 19
                          if (${json} == "{}") {
                          • 20
                            var json = '''{"${key}" : []}''';
                          }
                        • 22
                          else {
                          • 23
                            var json = StringUtil.regexReplaceFirst(${json}, "(.*)\}", "$1, \"${key}\": []}");
                          }
                        }
                      • 27
                        return ${json};
                    • 10
                      var json = JSONUtil2._addJSONArrayValues( json = ${json}, key = "assetCategoryIds", values = ${assetCategoryIds});
                      • 32
                        if (!(isSet(json)) || !(isSet(key)) || !(isSet(values))) {
                        • 33
                          fail("Error, 'JSON', 'key', and 'values' must all be set");
                        }
                      • 36
                        var bool = JSONUtil2._isJSONArrayPresent( json = ${json}, key = ${key});
                        • 121
                          var temp = RegexUtil.replace(${json}, "\"(${key})\"\s*:\s*\[.*?\]", 1);
                        • 123
                          if (${temp} == ${key}) {
                          • 124
                            return "TRUE";
                          }
                        • 126
                          else {
                          • 127
                            return "FALSE";
                          }
                      • 40
                        if (${bool} == "FALSE") {
                        • 41
                          fail("Error, '${key}' does not exist in the JSON");
                        }
                      • 44
                        for (var value : list ${values}) {
                        • 45
                          var temp = RegexUtil.replace(${json}, "\"${key}\"\s*:\s*(\[.*?\])", 1);
                        • 47
                          if (contains("\"${temp}\"", "\"${value}\"")) {
                          • 48
                            fail("'${value}' already exists inside 'JSON'");
                          }
                        • 51
                          if (${temp} == "[]") {
                          • 55
                            var json = StringUtil.regexReplaceFirst(${json}, "(\"${key}\"\s*:\s*)\[\]", "$1[\"${value}\"]");
                          }
                        • 57
                          else {
                          • 58
                            var json = StringUtil.regexReplaceFirst(${json}, "(\"${key}\"\s*:\s*)(\[.*?)\]", "$1$2, \"${value}\"]");
                          }
                        }
                      • 62
                        return ${json};
                    • 15
                      return ${json};
                  }
                • 124
                  if (isSet(assetTagNames)) {
                  • 125
                    var serviceContext = JSONServiceContextUtil._addAssetTagNames( assetTagNames = ${assetTagNames}, json = ${serviceContext});
                    • 19
                      Variables.assertDefined(parameterList = "${json},${assetTagNames}");
                      • 5
                        if (!(isSet(parameterList))) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list ${parameterList}) {
                        • 13
                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                        • 17
                          if ((${undefined} == "true") && (${parameter} != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 21
                      var json = JSONUtil2._addJSONArray( json = ${json}, key = "assetTagNames");
                      • 5
                        if (!(isSet(json)) || !(isSet(key))) {
                        • 6
                          fail("Error, 'JSON' and 'key' must all be set");
                        }
                      • 11
                        var bool = JSONUtil2._isJSONArrayPresent( json = ${json}, key = ${key});
                        • 121
                          var temp = RegexUtil.replace(${json}, "\"(${key})\"\s*:\s*\[.*?\]", 1);
                        • 123
                          if (${temp} == ${key}) {
                          • 124
                            return "TRUE";
                          }
                        • 126
                          else {
                          • 127
                            return "FALSE";
                          }
                      • 15
                        if (${bool} == "TRUE") {
                        • 16
                          echo("JSON array ${key}' already added, returning original JSON");
                        }
                      • 18
                        else {
                        • 19
                          if (${json} == "{}") {
                          • 20
                            var json = '''{"${key}" : []}''';
                          }
                        • 22
                          else {
                          • 23
                            var json = StringUtil.regexReplaceFirst(${json}, "(.*)\}", "$1, \"${key}\": []}");
                          }
                        }
                      • 27
                        return ${json};
                    • 25
                      var json = JSONUtil2._addJSONArrayValues( json = ${json}, key = "assetTagNames", values = ${assetTagNames});
                      • 32
                        if (!(isSet(json)) || !(isSet(key)) || !(isSet(values))) {
                        • 33
                          fail("Error, 'JSON', 'key', and 'values' must all be set");
                        }
                      • 36
                        var bool = JSONUtil2._isJSONArrayPresent( json = ${json}, key = ${key});
                        • 121
                          var temp = RegexUtil.replace(${json}, "\"(${key})\"\s*:\s*\[.*?\]", 1);
                        • 123
                          if (${temp} == ${key}) {
                          • 124
                            return "TRUE";
                          }
                        • 126
                          else {
                          • 127
                            return "FALSE";
                          }
                      • 40
                        if (${bool} == "FALSE") {
                        • 41
                          fail("Error, '${key}' does not exist in the JSON");
                        }
                      • 44
                        for (var value : list ${values}) {
                        • 45
                          var temp = RegexUtil.replace(${json}, "\"${key}\"\s*:\s*(\[.*?\])", 1);
                        • 47
                          if (contains("\"${temp}\"", "\"${value}\"")) {
                          • 48
                            fail("'${value}' already exists inside 'JSON'");
                          }
                        • 51
                          if (${temp} == "[]") {
                          • 55
                            var json = StringUtil.regexReplaceFirst(${json}, "(\"${key}\"\s*:\s*)\[\]", "$1[\"${value}\"]");
                          }
                        • 57
                          else {
                          • 58
                            var json = StringUtil.regexReplaceFirst(${json}, "(\"${key}\"\s*:\s*)(\[.*?)\]", "$1$2, \"${value}\"]");
                          }
                        }
                      • 62
                        return ${json};
                    • 30
                      return ${json};
                  }
                • 130
                  if (isSet(addGroupPermissions)) {
                  • 131
                    var serviceContext = JSONServiceContextUtil._addGroupPermissions( addGroupPermissions = ${addGroupPermissions}, json = ${serviceContext});
                    • 64
                      Variables.assertDefined(parameterList = "${json},${addGroupPermissions}");
                      • 5
                        if (!(isSet(parameterList))) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list ${parameterList}) {
                        • 13
                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                        • 17
                          if ((${undefined} == "true") && (${parameter} != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 66
                      if (!((${addGroupPermissions} == "true") || (${addGroupPermissions} == "false"))) {
                      • 67
                        fail("Invalid addGroupPermissions: '${addGroupPermissions}' specified. Allowed values are 'true' or 'false'.");
                      }
                    • 70
                      var json = JSONUtil2._addJSONObject( json = ${json}, key = "addGroupPermissions", value = ${addGroupPermissions});
                      • 67
                        if (!(isSet(json)) || !(isSet(key)) || !(isSet(value))) {
                        • 68
                          fail("Error, 'JSON', 'key', and 'value' must all be set");
                        }
                      • 71
                        var bool = JSONUtil2._isJSONObjectPresent( json = ${json}, key = ${key});
                        • 133
                          var temp = RegexUtil.replace(${json}, "\"(${key})\"\s*:\s*", 1);
                        • 135
                          if (${temp} == ${key}) {
                          • 136
                            return "TRUE";
                          }
                        • 138
                          else {
                          • 139
                            return "FALSE";
                          }
                      • 75
                        if (${bool} == "TRUE") {
                        • 76
                          fail("Error, '${key}' already exists in the JSON");
                        }
                      • 79
                        if (${json} == "{}") {
                        • 80
                          var json = '''{"${key}" : ${value}}''';
                        }
                      • 82
                        else {
                        • 83
                          var json = StringUtil.regexReplaceFirst(${json}, "(.*)\}", "$1, \"${key}\": ${value}}");
                        }
                      • 86
                        return ${json};
                    • 75
                      return ${json};
                  }
                • 136
                  if (isSet(addGuestPermissions)) {
                  • 137
                    var serviceContext = JSONServiceContextUtil._addGuestPermissions( addGuestPermissions = ${addGuestPermissions}, json = ${serviceContext});
                    • 79
                      Variables.assertDefined(parameterList = "${json},${addGuestPermissions}");
                      • 5
                        if (!(isSet(parameterList))) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list ${parameterList}) {
                        • 13
                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                        • 17
                          if ((${undefined} == "true") && (${parameter} != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 81
                      if (!((${addGuestPermissions} == "true") || (${addGuestPermissions} == "false"))) {
                      • 82
                        fail("Invalid addGuestPermissions: '${addGuestPermissions}' specified. Allowed values are 'true' or 'false'.");
                      }
                    • 85
                      var json = JSONUtil2._addJSONObject( json = ${json}, key = "addGuestPermissions", value = ${addGuestPermissions});
                      • 67
                        if (!(isSet(json)) || !(isSet(key)) || !(isSet(value))) {
                        • 68
                          fail("Error, 'JSON', 'key', and 'value' must all be set");
                        }
                      • 71
                        var bool = JSONUtil2._isJSONObjectPresent( json = ${json}, key = ${key});
                        • 133
                          var temp = RegexUtil.replace(${json}, "\"(${key})\"\s*:\s*", 1);
                        • 135
                          if (${temp} == ${key}) {
                          • 136
                            return "TRUE";
                          }
                        • 138
                          else {
                          • 139
                            return "FALSE";
                          }
                      • 75
                        if (${bool} == "TRUE") {
                        • 76
                          fail("Error, '${key}' already exists in the JSON");
                        }
                      • 79
                        if (${json} == "{}") {
                        • 80
                          var json = '''{"${key}" : ${value}}''';
                        }
                      • 82
                        else {
                        • 83
                          var json = StringUtil.regexReplaceFirst(${json}, "(.*)\}", "$1, \"${key}\": ${value}}");
                        }
                      • 86
                        return ${json};
                    • 90
                      return ${json};
                  }
                • 142
                  if (isSet(attributes)) {
                  • 143
                    var serviceContext = JSONServiceContextUtil._addAttributes( attributes = ${attributes}, json = ${serviceContext});
                    • 34
                      Variables.assertDefined(parameterList = "${json},${attributes}");
                      • 5
                        if (!(isSet(parameterList))) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list ${parameterList}) {
                        • 13
                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                        • 17
                          if ((${undefined} == "true") && (${parameter} != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 36
                      var json = JSONUtil2._addJSONObject( json = ${json}, key = "attributes", value = ${attributes});
                      • 67
                        if (!(isSet(json)) || !(isSet(key)) || !(isSet(value))) {
                        • 68
                          fail("Error, 'JSON', 'key', and 'value' must all be set");
                        }
                      • 71
                        var bool = JSONUtil2._isJSONObjectPresent( json = ${json}, key = ${key});
                        • 133
                          var temp = RegexUtil.replace(${json}, "\"(${key})\"\s*:\s*", 1);
                        • 135
                          if (${temp} == ${key}) {
                          • 136
                            return "TRUE";
                          }
                        • 138
                          else {
                          • 139
                            return "FALSE";
                          }
                      • 75
                        if (${bool} == "TRUE") {
                        • 76
                          fail("Error, '${key}' already exists in the JSON");
                        }
                      • 79
                        if (${json} == "{}") {
                        • 80
                          var json = '''{"${key}" : ${value}}''';
                        }
                      • 82
                        else {
                        • 83
                          var json = StringUtil.regexReplaceFirst(${json}, "(.*)\}", "$1, \"${key}\": ${value}}");
                        }
                      • 86
                        return ${json};
                    • 41
                      return ${json};
                  }
                • 148
                  if (isSet(groupName)) {
                  • 149
                    var serviceContext = JSONServiceContextUtil._addGroupId( groupName = ${groupName}, json = ${serviceContext}, site = ${site});
                    • 45
                      Variables.assertDefined(parameterList = "${groupName},${json}");
                      • 5
                        if (!(isSet(parameterList))) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list ${parameterList}) {
                        • 13
                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                        • 17
                          if ((${undefined} == "true") && (${parameter} != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 47
                      if (!(isSet(site))) {
                      • 48
                        var site = "true";
                      }
                    • 51
                      var groupId = JSONGroupAPI._getGroupIdByName( groupName = ${groupName}, site = ${site});
                      • 245
                        Variables.assertDefined(parameterList = "${groupName},${site}");
                        • 5
                          if (!(isSet(parameterList))) {
                          • 6
                            fail("Please define a parameter list in 'parameterList'");
                          }
                        • 9
                          for (var parameter : list ${parameterList}) {
                          • 13
                            var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                          • 17
                            if ((${undefined} == "true") && (${parameter} != "false")) {
                            • 18
                              fail("Please set '${parameter}'");
                            }
                          }
                      • 247
                        if (!(isSet(portalURL))) {
                        • 248
                          var portalURL = JSONCompany.getPortalURL();
                          • 138
                            var portalURL = PropsUtil.get("portal.url");
                          • 140
                            return ${portalURL};
                        }
                      • 251
                        if (isSet(noSelenium)) {
                        • 252
                          var companyId = JSONCompany.getCompanyIdNoSelenium(portalURL = ${portalURL});
                          • 60
                            if (!(isSet(portalInstanceName))) {
                            • 61
                              var portalInstanceName = JSONCompany.getPortalInstanceNameNoSelenium();
                              • 123
                                var testPortalInstance = PropsUtil.get("test.portal.instance");
                              • 125
                                if (${testPortalInstance} == "true") {
                                • 126
                                  var portalURL = JSONCompany.getPortalURL();
                                  • 138
                                    var portalURL = PropsUtil.get("portal.url");
                                  • 140
                                    return ${portalURL};
                                • 128
                                  var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                                  • 144
                                    Variables.assertDefined(parameterList = ${portalURL});
                                    • 5
                                      if (!(isSet(parameterList))) {
                                      • 6
                                        fail("Please define a parameter list in 'parameterList'");
                                      }
                                    • 9
                                      for (var parameter : list ${parameterList}) {
                                      • 13
                                        var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                                      • 17
                                        if ((${undefined} == "true") && (${parameter} != "false")) {
                                        • 18
                                          fail("Please set '${parameter}'");
                                        }
                                      }
                                  • 146
                                    var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                                  • 148
                                    var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                                  • 150
                                    return ${portalInstanceName};
                                • 130
                                  return ${portalInstanceName};
                                }
                              • 132
                                else {
                                • 133
                                  return "localhost";
                                }
                            }
                          • 64
                            if (!(isSet(portalURL))) {
                            • 65
                              var portalURL = JSONCompany.getPortalURL();
                              • 138
                                var portalURL = PropsUtil.get("portal.url");
                              • 140
                                return ${portalURL};
                            }
                          • 68
                            if (!(isSet(creatorEmailAddress))) {
                            • 69
                              if (${authenticationMethod} == "By Screen Name") {
                              • 70
                                if (!(isSet(userScreenName))) {
                                • 71
                                  var creatorEmailAddress = "test";
                                }
                              • 73
                                else {
                                • 74
                                  var creatorEmailAddress = ${userScreenName};
                                }
                              }
                            • 77
                              else {
                              • 78
                                var creatorEmailAddress = "test@liferay.com";
                              }
                            }
                          • 82
                            if (!(isSet(creatorPassword))) {
                            • 83
                              var creatorPassword = "test";
                            }
                          • 86
                            var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                          • 91
                            var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                          • 93
                            return ${companyId};
                        }
                      • 254
                        else {
                        • 255
                          var companyId = JSONCompany.getCompanyId(portalURL = ${portalURL});
                          • 23
                            if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                            • 24
                              var portalInstanceName = JSONCompany.getPortalInstanceName();
                              • 107
                                var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                              • 108
                                var testPortalInstance = PropsUtil.get("test.portal.instance");
                              • 110
                                if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                                • 111
                                  var portalURL = JSONCompany.getPortalURL();
                                  • 138
                                    var portalURL = PropsUtil.get("portal.url");
                                  • 140
                                    return ${portalURL};
                                • 113
                                  var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                                  • 144
                                    Variables.assertDefined(parameterList = ${portalURL});
                                    • 5
                                      if (!(isSet(parameterList))) {
                                      • 6
                                        fail("Please define a parameter list in 'parameterList'");
                                      }
                                    • 9
                                      for (var parameter : list ${parameterList}) {
                                      • 13
                                        var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                                      • 17
                                        if ((${undefined} == "true") && (${parameter} != "false")) {
                                        • 18
                                          fail("Please set '${parameter}'");
                                        }
                                      }
                                  • 146
                                    var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                                  • 148
                                    var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                                  • 150
                                    return ${portalInstanceName};
                                • 115
                                  return ${portalInstanceName};
                                }
                              • 117
                                else {
                                • 118
                                  return "localhost";
                                }
                            }
                          • 27
                            if (!(isSet(portalURL))) {
                            • 28
                              var portalURL = JSONCompany.getPortalURL();
                              • 138
                                var portalURL = PropsUtil.get("portal.url");
                              • 140
                                return ${portalURL};
                            }
                          • 31
                            if (!(isSet(creatorEmailAddress))) {
                            • 32
                              if (${authenticationMethod} == "By Screen Name") {
                              • 33
                                if (!(isSet(userScreenName))) {
                                • 34
                                  var creatorEmailAddress = "test";
                                }
                              • 36
                                else {
                                • 37
                                  var creatorEmailAddress = ${userScreenName};
                                }
                              }
                            • 40
                              else {
                              • 41
                                var creatorEmailAddress = "test@liferay.com";
                              }
                            }
                          • 45
                            if (!(isSet(creatorPassword))) {
                            • 46
                              var creatorPassword = "test";
                            }
                          • 49
                            var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                          • 54
                            var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                          • 56
                            return ${companyId};
                        }
                      • 258
                        var parentGroupId = JSONGroupSetter.setParentGroupId( grandParentGroupName = ${grandParentGroupName}, parentGroupName = ${parentGroupName});
                        • 83
                          if (isSet(parentGroupName)) {
                          • 84
                            var parentGroupId = JSONGroupAPI._getParentGroupIdByName( grandParentGroupName = ${grandParentGroupName}, groupName = ${parentGroupName});
                            • 371
                              Variables.assertDefined(parameterList = ${groupName});
                              • 5
                                if (!(isSet(parameterList))) {
                                • 6
                                  fail("Please define a parameter list in 'parameterList'");
                                }
                              • 9
                                for (var parameter : list ${parameterList}) {
                                • 13
                                  var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                                • 17
                                  if ((${undefined} == "true") && (${parameter} != "false")) {
                                  • 18
                                    fail("Please set '${parameter}'");
                                  }
                                }
                            • 373
                              var companyId = JSONCompany.getCompanyId();
                              • 23
                                if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                                • 24
                                  var portalInstanceName = JSONCompany.getPortalInstanceName();
                                  • 107
                                    var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                                  • 108
                                    var testPortalInstance = PropsUtil.get("test.portal.instance");
                                  • 110
                                    if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                                    • 111
                                      var portalURL = JSONCompany.getPortalURL();
                                      • 138
                                        var portalURL = PropsUtil.get("portal.url");
                                      • 140
                                        return ${portalURL};
                                    • 113
                                      var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                                      • 144
                                        Variables.assertDefined(parameterList = ${portalURL});
                                        • 5
                                          if (!(isSet(parameterList))) {
                                          • 6
                                            fail("Please define a parameter list in 'parameterList'");
                                          }
                                        • 9
                                          for (var parameter : list ${parameterList}) {
                                          • 13
                                            var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                                          • 17
                                            if ((${undefined} == "true") && (${parameter} != "false")) {
                                            • 18
                                              fail("Please set '${parameter}'");
                                            }
                                          }
                                      • 146
                                        var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                                      • 148
                                        var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                                      • 150
                                        return ${portalInstanceName};
                                    • 115
                                      return ${portalInstanceName};
                                    }
                                  • 117
                                    else {
                                    • 118
                                      return "localhost";
                                    }
                                }
                              • 27
                                if (!(isSet(portalURL))) {
                                • 28
                                  var portalURL = JSONCompany.getPortalURL();
                                  • 138
                                    var portalURL = PropsUtil.get("portal.url");
                                  • 140
                                    return ${portalURL};
                                }
                              • 31
                                if (!(isSet(creatorEmailAddress))) {
                                • 32
                                  if (${authenticationMethod} == "By Screen Name") {
                                  • 33
                                    if (!(isSet(userScreenName))) {
                                    • 34
                                      var creatorEmailAddress = "test";
                                    }
                                  • 36
                                    else {
                                    • 37
                                      var creatorEmailAddress = ${userScreenName};
                                    }
                                  }
                                • 40
                                  else {
                                  • 41
                                    var creatorEmailAddress = "test@liferay.com";
                                  }
                                }
                              • 45
                                if (!(isSet(creatorPassword))) {
                                • 46
                                  var creatorPassword = "test";
                                }
                              • 49
                                var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                              • 54
                                var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                              • 56
                                return ${companyId};
                            • 374
                              var grandParentGroupId = JSONGroupSetter.setGrandParentGroupId(grandParentGroupName = ${grandParentGroupName});
                              • 15
                                if (isSet(grandParentGroupName)) {
                                • 16
                                  if (!(isSet(site))) {
                                  • 17
                                    var site = "true";
                                  }
                                • 20
                                  var grandParentGroupId = JSONGroupAPI._getGrandParentGroupIdByName( groupName = ${grandParentGroupName}, site = ${site});
                                  • 193
                                    Variables.assertDefined(parameterList = ${groupName});
                                    • 5
                                      if (!(isSet(parameterList))) {
                                      • 6
                                        fail("Please define a parameter list in 'parameterList'");
                                      }
                                    • 9
                                      for (var parameter : list ${parameterList}) {
                                      • 13
                                        var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                                      • 17
                                        if ((${undefined} == "true") && (${parameter} != "false")) {
                                        • 18
                                          fail("Please set '${parameter}'");
                                        }
                                      }
                                  • 195
                                    var companyId = JSONCompany.getCompanyId();
                                    • 23
                                      if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                                      • 24
                                        var portalInstanceName = JSONCompany.getPortalInstanceName();
                                        • 107
                                          var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                                        • 108
                                          var testPortalInstance = PropsUtil.get("test.portal.instance");
                                        • 110
                                          if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                                          • 111
                                            var portalURL = JSONCompany.getPortalURL();
                                            • 138
                                              var portalURL = PropsUtil.get("portal.url");
                                            • 140
                                              return ${portalURL};
                                          • 113
                                            var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                                            • 144
                                              Variables.assertDefined(parameterList = ${portalURL});
                                              • 5
                                                if (!(isSet(parameterList))) {
                                                • 6
                                                  fail("Please define a parameter list in 'parameterList'");
                                                }
                                              • 9
                                                for (var parameter : list ${parameterList}) {
                                                • 13
                                                  var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                                                • 17
                                                  if ((${undefined} == "true") && (${parameter} != "false")) {
                                                  • 18
                                                    fail("Please set '${parameter}'");
                                                  }
                                                }
                                            • 146
                                              var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                                            • 148
                                              var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                                            • 150
                                              return ${portalInstanceName};
                                          • 115
                                            return ${portalInstanceName};
                                          }
                                        • 117
                                          else {
                                          • 118
                                            return "localhost";
                                          }
                                      }
                                    • 27
                                      if (!(isSet(portalURL))) {
                                      • 28
                                        var portalURL = JSONCompany.getPortalURL();
                                        • 138
                                          var portalURL = PropsUtil.get("portal.url");
                                        • 140
                                          return ${portalURL};
                                      }
                                    • 31
                                      if (!(isSet(creatorEmailAddress))) {
                                      • 32
                                        if (${authenticationMethod} == "By Screen Name") {
                                        • 33
                                          if (!(isSet(userScreenName))) {
                                          • 34
                                            var creatorEmailAddress = "test";
                                          }
                                        • 36
                                          else {
                                          • 37
                                            var creatorEmailAddress = ${userScreenName};
                                          }
                                        }
                                      • 40
                                        else {
                                        • 41
                                          var creatorEmailAddress = "test@liferay.com";
                                        }
                                      }
                                    • 45
                                      if (!(isSet(creatorPassword))) {
                                      • 46
                                        var creatorPassword = "test";
                                      }
                                    • 49
                                      var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                                    • 54
                                      var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                                    • 56
                                      return ${companyId};
                                  • 196
                                    var portalURL = JSONCompany.getPortalURL();
                                    • 138
                                      var portalURL = PropsUtil.get("portal.url");
                                    • 140
                                      return ${portalURL};
                                  • 198
                                    if (!(isSet(site))) {
                                    • 199
                                      var site = "true";
                                    }
                                  • 202
                                    var curl = ''' ${portalURL}/api/jsonws/group/get-groups \ -u test@liferay.com:test \ -d companyId=${companyId} \ -d parentGroupId=0 \ -d site=${site} ''';
                                  • 210
                                    var groupId = JSONCurlUtil.post(${curl}, "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                                  • 212
                                    if (${groupId} == "") {
                                    • 213
                                      fail("FAIL. Cannot find group.");
                                    }
                                  • 216
                                    return ${groupId};
                                }
                              • 24
                                else {
                                • 25
                                  var grandParentGroupId = 0;
                                }
                              • 28
                                return ${grandParentGroupId};
                            • 375
                              var portalURL = JSONCompany.getPortalURL();
                              • 138
                                var portalURL = PropsUtil.get("portal.url");
                              • 140
                                return ${portalURL};
                            • 377
                              var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${grandParentGroupId}/site/true \ -u test@liferay.com:test ''';
                            • 382
                              var groupId = JSONCurlUtil.get(${curl}, "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                            • 384
                              if (${groupId} == "") {
                              • 385
                                fail("FAIL. Cannot find group.");
                              }
                            • 388
                              return ${groupId};
                          }
                        • 88
                          else {
                          • 89
                            var parentGroupId = 0;
                          }
                        • 92
                          return ${parentGroupId};
                      • 262
                        var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${parentGroupId}/site/${site} \ -u test@liferay.com:test ''';
                      • 267
                        var groupId = JSONCurlUtil.get(${curl}, "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                      • 269
                        if (${groupId} == "") {
                        • 270
                          fail("FAIL. Cannot find group.");
                        }
                      • 273
                        echo("## * GroupId: ${groupId}");
                      • 275
                        return ${groupId};
                    • 55
                      var json = JSONUtil2._addJSONObject( json = ${json}, key = "scopeGroupId", value = ${groupId});
                      • 67
                        if (!(isSet(json)) || !(isSet(key)) || !(isSet(value))) {
                        • 68
                          fail("Error, 'JSON', 'key', and 'value' must all be set");
                        }
                      • 71
                        var bool = JSONUtil2._isJSONObjectPresent( json = ${json}, key = ${key});
                        • 133
                          var temp = RegexUtil.replace(${json}, "\"(${key})\"\s*:\s*", 1);
                        • 135
                          if (${temp} == ${key}) {
                          • 136
                            return "TRUE";
                          }
                        • 138
                          else {
                          • 139
                            return "FALSE";
                          }
                      • 75
                        if (${bool} == "TRUE") {
                        • 76
                          fail("Error, '${key}' already exists in the JSON");
                        }
                      • 79
                        if (${json} == "{}") {
                        • 80
                          var json = '''{"${key}" : ${value}}''';
                        }
                      • 82
                        else {
                        • 83
                          var json = StringUtil.regexReplaceFirst(${json}, "(.*)\}", "$1, \"${key}\": ${value}}");
                        }
                      • 86
                        return ${json};
                    • 60
                      return ${json};
                  }
                • 155
                  if (isSet(workflowAction)) {
                  • 156
                    var serviceContext = JSONServiceContextUtil._addWorkflowAction( json = ${serviceContext}, workflowAction = ${workflowAction});
                    • 95
                      Variables.assertDefined(parameterList = "${json},${workflowAction}");
                      • 5
                        if (!(isSet(parameterList))) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list ${parameterList}) {
                        • 13
                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                        • 17
                          if ((${undefined} == "true") && (${parameter} != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 97
                      if (${workflowAction} == "DRAFT") {
                      • 98
                        var workflowActionNumber = 2;
                      }
                    • 100
                      else if (${workflowAction} == "PUBLISH") {
                      • 101
                        var workflowActionNumber = 1;
                      }
                    • 103
                      else {
                      • 104
                        fail("Invalid workflowAction: '${workflowAction}' specified. Allowed values are 'DRAFT' or 'PUBLISH'.");
                      }
                    • 107
                      var json = JSONUtil2._addJSONObject( json = ${json}, key = "workflowAction", value = ${workflowActionNumber});
                      • 67
                        if (!(isSet(json)) || !(isSet(key)) || !(isSet(value))) {
                        • 68
                          fail("Error, 'JSON', 'key', and 'value' must all be set");
                        }
                      • 71
                        var bool = JSONUtil2._isJSONObjectPresent( json = ${json}, key = ${key});
                        • 133
                          var temp = RegexUtil.replace(${json}, "\"(${key})\"\s*:\s*", 1);
                        • 135
                          if (${temp} == ${key}) {
                          • 136
                            return "TRUE";
                          }
                        • 138
                          else {
                          • 139
                            return "FALSE";
                          }
                      • 75
                        if (${bool} == "TRUE") {
                        • 76
                          fail("Error, '${key}' already exists in the JSON");
                        }
                      • 79
                        if (${json} == "{}") {
                        • 80
                          var json = '''{"${key}" : ${value}}''';
                        }
                      • 82
                        else {
                        • 83
                          var json = StringUtil.regexReplaceFirst(${json}, "(.*)\}", "$1, \"${key}\": ${value}}");
                        }
                      • 86
                        return ${json};
                    • 112
                      return ${json};
                  }
                • 161
                  return ${serviceContext};
              }
            • 80
              return ${serviceContext};
          • 57
            var type = JSONLayoutSetter.setType(type = ${type});
            • 93
              if (!(isSet(type))) {
              • 94
                var type = "portlet";
              }
            • 97
              return ${type};
          • 59
            var plid = JSONLayoutAPI._addLayout( friendlyURL = ${friendlyURL}, groupId = ${groupId}, layoutName = ${layoutName}, parentLayoutId = ${parentLayoutId}, privateLayout = "false", serviceContext = ${serviceContext}, type = ${type});
            • 5
              Variables.assertDefined(parameterList = "${friendlyURL},${groupId},${privateLayout},${parentLayoutId},${layoutName},${serviceContext}");
              • 5
                if (!(isSet(parameterList))) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list ${parameterList}) {
                • 13
                  var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                • 17
                  if ((${undefined} == "true") && (${parameter} != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 7
              var portalURL = JSONCompany.getPortalURL();
              • 138
                var portalURL = PropsUtil.get("portal.url");
              • 140
                return ${portalURL};
            • 9
              var curl = ''' ${portalURL}/api/jsonws/layout/add-layout \ -u test@liferay.com:test \ -d groupId=${groupId} \ -d privateLayout=${privateLayout} \ -d parentLayoutId=${parentLayoutId} \ -d name=${layoutName} \ -d title= \ -d description= \ -d type=${type} \ -d hidden=false \ -d friendlyURL=${friendlyURL} \ -d serviceContext=${serviceContext} ''';
            • 24
              var plid = JSONCurlUtil.post(${curl}, "$['plid']");
            • 26
              return ${plid};
          • 68
            return ${plid};
        }
      • 25
        task ("Add a Web Content Display widget to page") {
        • 26
          JSONLayout.addWidgetToPublicLayout( groupName = "Test Site Name", layoutName = "Test Page Name", widgetName = "Web Content Display");
          • 100
            Variables.assertDefined(parameterList = "${groupName},${layoutName},${widgetName}");
            • 5
              if (!(isSet(parameterList))) {
              • 6
                fail("Please define a parameter list in 'parameterList'");
              }
            • 9
              for (var parameter : list ${parameterList}) {
              • 13
                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
              • 17
                if ((${undefined} == "true") && (${parameter} != "false")) {
                • 18
                  fail("Please set '${parameter}'");
                }
              }
          • 102
            if (!(isSet(site))) {
            • 103
              var site = "true";
            }
          • 106
            var groupId = JSONLayoutSetter.setGroupId( grandParentGroupName = ${grandParentGroupName}, groupName = ${groupName}, parentGroupName = ${parentGroupName}, site = ${site});
            • 20
              if (!(isSet(site))) {
              • 21
                var site = "true";
              }
            • 24
              var groupId = JSONGroupAPI._getGroupIdByName( grandParentGroupName = ${grandParentGroupName}, groupName = ${groupName}, parentGroupName = ${parentGroupName}, portalURL = ${portalURL}, site = ${site});
              • 245
                Variables.assertDefined(parameterList = "${groupName},${site}");
                • 5
                  if (!(isSet(parameterList))) {
                  • 6
                    fail("Please define a parameter list in 'parameterList'");
                  }
                • 9
                  for (var parameter : list ${parameterList}) {
                  • 13
                    var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                  • 17
                    if ((${undefined} == "true") && (${parameter} != "false")) {
                    • 18
                      fail("Please set '${parameter}'");
                    }
                  }
              • 247
                if (!(isSet(portalURL))) {
                • 248
                  var portalURL = JSONCompany.getPortalURL();
                  • 138
                    var portalURL = PropsUtil.get("portal.url");
                  • 140
                    return ${portalURL};
                }
              • 251
                if (isSet(noSelenium)) {
                • 252
                  var companyId = JSONCompany.getCompanyIdNoSelenium(portalURL = ${portalURL});
                  • 60
                    if (!(isSet(portalInstanceName))) {
                    • 61
                      var portalInstanceName = JSONCompany.getPortalInstanceNameNoSelenium();
                      • 123
                        var testPortalInstance = PropsUtil.get("test.portal.instance");
                      • 125
                        if (${testPortalInstance} == "true") {
                        • 126
                          var portalURL = JSONCompany.getPortalURL();
                          • 138
                            var portalURL = PropsUtil.get("portal.url");
                          • 140
                            return ${portalURL};
                        • 128
                          var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                          • 144
                            Variables.assertDefined(parameterList = ${portalURL});
                            • 5
                              if (!(isSet(parameterList))) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list ${parameterList}) {
                              • 13
                                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                              • 17
                                if ((${undefined} == "true") && (${parameter} != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 146
                            var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                          • 148
                            var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                          • 150
                            return ${portalInstanceName};
                        • 130
                          return ${portalInstanceName};
                        }
                      • 132
                        else {
                        • 133
                          return "localhost";
                        }
                    }
                  • 64
                    if (!(isSet(portalURL))) {
                    • 65
                      var portalURL = JSONCompany.getPortalURL();
                      • 138
                        var portalURL = PropsUtil.get("portal.url");
                      • 140
                        return ${portalURL};
                    }
                  • 68
                    if (!(isSet(creatorEmailAddress))) {
                    • 69
                      if (${authenticationMethod} == "By Screen Name") {
                      • 70
                        if (!(isSet(userScreenName))) {
                        • 71
                          var creatorEmailAddress = "test";
                        }
                      • 73
                        else {
                        • 74
                          var creatorEmailAddress = ${userScreenName};
                        }
                      }
                    • 77
                      else {
                      • 78
                        var creatorEmailAddress = "test@liferay.com";
                      }
                    }
                  • 82
                    if (!(isSet(creatorPassword))) {
                    • 83
                      var creatorPassword = "test";
                    }
                  • 86
                    var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                  • 91
                    var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                  • 93
                    return ${companyId};
                }
              • 254
                else {
                • 255
                  var companyId = JSONCompany.getCompanyId(portalURL = ${portalURL});
                  • 23
                    if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                    • 24
                      var portalInstanceName = JSONCompany.getPortalInstanceName();
                      • 107
                        var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                      • 108
                        var testPortalInstance = PropsUtil.get("test.portal.instance");
                      • 110
                        if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                        • 111
                          var portalURL = JSONCompany.getPortalURL();
                          • 138
                            var portalURL = PropsUtil.get("portal.url");
                          • 140
                            return ${portalURL};
                        • 113
                          var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                          • 144
                            Variables.assertDefined(parameterList = ${portalURL});
                            • 5
                              if (!(isSet(parameterList))) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list ${parameterList}) {
                              • 13
                                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                              • 17
                                if ((${undefined} == "true") && (${parameter} != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 146
                            var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                          • 148
                            var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                          • 150
                            return ${portalInstanceName};
                        • 115
                          return ${portalInstanceName};
                        }
                      • 117
                        else {
                        • 118
                          return "localhost";
                        }
                    }
                  • 27
                    if (!(isSet(portalURL))) {
                    • 28
                      var portalURL = JSONCompany.getPortalURL();
                      • 138
                        var portalURL = PropsUtil.get("portal.url");
                      • 140
                        return ${portalURL};
                    }
                  • 31
                    if (!(isSet(creatorEmailAddress))) {
                    • 32
                      if (${authenticationMethod} == "By Screen Name") {
                      • 33
                        if (!(isSet(userScreenName))) {
                        • 34
                          var creatorEmailAddress = "test";
                        }
                      • 36
                        else {
                        • 37
                          var creatorEmailAddress = ${userScreenName};
                        }
                      }
                    • 40
                      else {
                      • 41
                        var creatorEmailAddress = "test@liferay.com";
                      }
                    }
                  • 45
                    if (!(isSet(creatorPassword))) {
                    • 46
                      var creatorPassword = "test";
                    }
                  • 49
                    var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                  • 54
                    var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                  • 56
                    return ${companyId};
                }
              • 258
                var parentGroupId = JSONGroupSetter.setParentGroupId( grandParentGroupName = ${grandParentGroupName}, parentGroupName = ${parentGroupName});
                • 83
                  if (isSet(parentGroupName)) {
                  • 84
                    var parentGroupId = JSONGroupAPI._getParentGroupIdByName( grandParentGroupName = ${grandParentGroupName}, groupName = ${parentGroupName});
                    • 371
                      Variables.assertDefined(parameterList = ${groupName});
                      • 5
                        if (!(isSet(parameterList))) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list ${parameterList}) {
                        • 13
                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                        • 17
                          if ((${undefined} == "true") && (${parameter} != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 373
                      var companyId = JSONCompany.getCompanyId();
                      • 23
                        if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                        • 24
                          var portalInstanceName = JSONCompany.getPortalInstanceName();
                          • 107
                            var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                          • 108
                            var testPortalInstance = PropsUtil.get("test.portal.instance");
                          • 110
                            if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                            • 111
                              var portalURL = JSONCompany.getPortalURL();
                              • 138
                                var portalURL = PropsUtil.get("portal.url");
                              • 140
                                return ${portalURL};
                            • 113
                              var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                              • 144
                                Variables.assertDefined(parameterList = ${portalURL});
                                • 5
                                  if (!(isSet(parameterList))) {
                                  • 6
                                    fail("Please define a parameter list in 'parameterList'");
                                  }
                                • 9
                                  for (var parameter : list ${parameterList}) {
                                  • 13
                                    var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                                  • 17
                                    if ((${undefined} == "true") && (${parameter} != "false")) {
                                    • 18
                                      fail("Please set '${parameter}'");
                                    }
                                  }
                              • 146
                                var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                              • 148
                                var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                              • 150
                                return ${portalInstanceName};
                            • 115
                              return ${portalInstanceName};
                            }
                          • 117
                            else {
                            • 118
                              return "localhost";
                            }
                        }
                      • 27
                        if (!(isSet(portalURL))) {
                        • 28
                          var portalURL = JSONCompany.getPortalURL();
                          • 138
                            var portalURL = PropsUtil.get("portal.url");
                          • 140
                            return ${portalURL};
                        }
                      • 31
                        if (!(isSet(creatorEmailAddress))) {
                        • 32
                          if (${authenticationMethod} == "By Screen Name") {
                          • 33
                            if (!(isSet(userScreenName))) {
                            • 34
                              var creatorEmailAddress = "test";
                            }
                          • 36
                            else {
                            • 37
                              var creatorEmailAddress = ${userScreenName};
                            }
                          }
                        • 40
                          else {
                          • 41
                            var creatorEmailAddress = "test@liferay.com";
                          }
                        }
                      • 45
                        if (!(isSet(creatorPassword))) {
                        • 46
                          var creatorPassword = "test";
                        }
                      • 49
                        var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                      • 54
                        var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                      • 56
                        return ${companyId};
                    • 374
                      var grandParentGroupId = JSONGroupSetter.setGrandParentGroupId(grandParentGroupName = ${grandParentGroupName});
                      • 15
                        if (isSet(grandParentGroupName)) {
                        • 16
                          if (!(isSet(site))) {
                          • 17
                            var site = "true";
                          }
                        • 20
                          var grandParentGroupId = JSONGroupAPI._getGrandParentGroupIdByName( groupName = ${grandParentGroupName}, site = ${site});
                          • 193
                            Variables.assertDefined(parameterList = ${groupName});
                            • 5
                              if (!(isSet(parameterList))) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list ${parameterList}) {
                              • 13
                                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                              • 17
                                if ((${undefined} == "true") && (${parameter} != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 195
                            var companyId = JSONCompany.getCompanyId();
                            • 23
                              if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                              • 24
                                var portalInstanceName = JSONCompany.getPortalInstanceName();
                                • 107
                                  var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                                • 108
                                  var testPortalInstance = PropsUtil.get("test.portal.instance");
                                • 110
                                  if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                                  • 111
                                    var portalURL = JSONCompany.getPortalURL();
                                    • 138
                                      var portalURL = PropsUtil.get("portal.url");
                                    • 140
                                      return ${portalURL};
                                  • 113
                                    var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                                    • 144
                                      Variables.assertDefined(parameterList = ${portalURL});
                                      • 5
                                        if (!(isSet(parameterList))) {
                                        • 6
                                          fail("Please define a parameter list in 'parameterList'");
                                        }
                                      • 9
                                        for (var parameter : list ${parameterList}) {
                                        • 13
                                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                                        • 17
                                          if ((${undefined} == "true") && (${parameter} != "false")) {
                                          • 18
                                            fail("Please set '${parameter}'");
                                          }
                                        }
                                    • 146
                                      var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                                    • 148
                                      var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                                    • 150
                                      return ${portalInstanceName};
                                  • 115
                                    return ${portalInstanceName};
                                  }
                                • 117
                                  else {
                                  • 118
                                    return "localhost";
                                  }
                              }
                            • 27
                              if (!(isSet(portalURL))) {
                              • 28
                                var portalURL = JSONCompany.getPortalURL();
                                • 138
                                  var portalURL = PropsUtil.get("portal.url");
                                • 140
                                  return ${portalURL};
                              }
                            • 31
                              if (!(isSet(creatorEmailAddress))) {
                              • 32
                                if (${authenticationMethod} == "By Screen Name") {
                                • 33
                                  if (!(isSet(userScreenName))) {
                                  • 34
                                    var creatorEmailAddress = "test";
                                  }
                                • 36
                                  else {
                                  • 37
                                    var creatorEmailAddress = ${userScreenName};
                                  }
                                }
                              • 40
                                else {
                                • 41
                                  var creatorEmailAddress = "test@liferay.com";
                                }
                              }
                            • 45
                              if (!(isSet(creatorPassword))) {
                              • 46
                                var creatorPassword = "test";
                              }
                            • 49
                              var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                            • 54
                              var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                            • 56
                              return ${companyId};
                          • 196
                            var portalURL = JSONCompany.getPortalURL();
                            • 138
                              var portalURL = PropsUtil.get("portal.url");
                            • 140
                              return ${portalURL};
                          • 198
                            if (!(isSet(site))) {
                            • 199
                              var site = "true";
                            }
                          • 202
                            var curl = ''' ${portalURL}/api/jsonws/group/get-groups \ -u test@liferay.com:test \ -d companyId=${companyId} \ -d parentGroupId=0 \ -d site=${site} ''';
                          • 210
                            var groupId = JSONCurlUtil.post(${curl}, "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                          • 212
                            if (${groupId} == "") {
                            • 213
                              fail("FAIL. Cannot find group.");
                            }
                          • 216
                            return ${groupId};
                        }
                      • 24
                        else {
                        • 25
                          var grandParentGroupId = 0;
                        }
                      • 28
                        return ${grandParentGroupId};
                    • 375
                      var portalURL = JSONCompany.getPortalURL();
                      • 138
                        var portalURL = PropsUtil.get("portal.url");
                      • 140
                        return ${portalURL};
                    • 377
                      var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${grandParentGroupId}/site/true \ -u test@liferay.com:test ''';
                    • 382
                      var groupId = JSONCurlUtil.get(${curl}, "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                    • 384
                      if (${groupId} == "") {
                      • 385
                        fail("FAIL. Cannot find group.");
                      }
                    • 388
                      return ${groupId};
                  }
                • 88
                  else {
                  • 89
                    var parentGroupId = 0;
                  }
                • 92
                  return ${parentGroupId};
              • 262
                var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${parentGroupId}/site/${site} \ -u test@liferay.com:test ''';
              • 267
                var groupId = JSONCurlUtil.get(${curl}, "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
              • 269
                if (${groupId} == "") {
                • 270
                  fail("FAIL. Cannot find group.");
                }
              • 273
                echo("## * GroupId: ${groupId}");
              • 275
                return ${groupId};
            • 31
              return ${groupId};
          • 112
            var layoutId = JSONLayoutSetter.setLayoutId( groupId = ${groupId}, layoutName = ${layoutName}, privateLayout = "false");
            • 35
              Variables.assertDefined(parameterList = "${groupId},${layoutName},${privateLayout}");
              • 5
                if (!(isSet(parameterList))) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list ${parameterList}) {
                • 13
                  var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                • 17
                  if ((${undefined} == "true") && (${parameter} != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 37
              var layoutId = JSONLayoutAPI._getLayoutIdByName( groupId = ${groupId}, layoutName = ${layoutName}, privateLayout = ${privateLayout});
              • 73
                Variables.assertDefined(parameterList = "${groupId},${layoutName},${privateLayout}");
                • 5
                  if (!(isSet(parameterList))) {
                  • 6
                    fail("Please define a parameter list in 'parameterList'");
                  }
                • 9
                  for (var parameter : list ${parameterList}) {
                  • 13
                    var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                  • 17
                    if ((${undefined} == "true") && (${parameter} != "false")) {
                    • 18
                      fail("Please set '${parameter}'");
                    }
                  }
              • 75
                var portalURL = JSONCompany.getPortalURL();
                • 138
                  var portalURL = PropsUtil.get("portal.url");
                • 140
                  return ${portalURL};
              • 77
                var curl = ''' ${portalURL}/api/jsonws/layout/get-layouts \ -u test@liferay.com:test \ -d groupId=${groupId} \ -d privateLayout=${privateLayout} ''';
              • 84
                var layoutId = JSONCurlUtil.post(${curl}, "$.[?(@['nameCurrentValue'] == '${layoutName}')]['layoutId']");
              • 86
                if (${layoutId} == "") {
                • 87
                  fail("FAIL. Cannot find layout.");
                }
              • 90
                return ${layoutId};
            • 42
              return ${layoutId};
          • 116
            var typeSettings = JSONLayoutSetter.setTypeSettings( column = ${column}, groupId = ${groupId}, layoutName = ${layoutName}, privateLayout = "false", remoteAppEntryId = ${remoteAppEntryId}, widgetName = ${widgetName});
            • 101
              Variables.assertDefined(parameterList = "${groupId},${layoutName},${privateLayout}");
              • 5
                if (!(isSet(parameterList))) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list ${parameterList}) {
                • 13
                  var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                • 17
                  if ((${undefined} == "true") && (${parameter} != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 103
              var typeSettings = JSONLayoutAPI._getTypeSettingsByName( groupId = ${groupId}, layoutName = ${layoutName}, privateLayout = ${privateLayout});
              • 119
                Variables.assertDefined(parameterList = "${groupId},${layoutName},${privateLayout}");
                • 5
                  if (!(isSet(parameterList))) {
                  • 6
                    fail("Please define a parameter list in 'parameterList'");
                  }
                • 9
                  for (var parameter : list ${parameterList}) {
                  • 13
                    var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                  • 17
                    if ((${undefined} == "true") && (${parameter} != "false")) {
                    • 18
                      fail("Please set '${parameter}'");
                    }
                  }
              • 121
                var portalURL = JSONCompany.getPortalURL();
                • 138
                  var portalURL = PropsUtil.get("portal.url");
                • 140
                  return ${portalURL};
              • 123
                var curl = ''' ${portalURL}/api/jsonws/layout/get-layouts \ -u test@liferay.com:test \ -d groupId=${groupId} \ -d privateLayout=${privateLayout} ''';
              • 130
                var typeSettings = JSONCurlUtil.post(${curl}, "$.[?(@['nameCurrentValue'] == '${layoutName}')]['typeSettings']");
              • 132
                if (${typeSettings} == "") {
                • 133
                  fail("FAIL. Cannot find layout.");
                }
              • 136
                return ${typeSettings};
            • 108
              if (isSet(layoutTemplate)) {
              • 109
                var typeSettings = JSONLayoutUtil._updateLayoutTemplateId( layoutTemplate = ${layoutTemplate}, typeSettings = ${typeSettings});
                • 299
                  if (!(isSet(layoutTemplate))) {
                  • 300
                    fail("layoutTemplate not set.");
                  }
                • 303
                  if (!(isSet(typeSettings))) {
                  • 304
                    fail("layoutTemplateId not set.");
                  }
                • 307
                  var layoutTemplateId = JSONLayoutUtil._getLayoutTemplateId(layoutTemplate = ${layoutTemplate});
                  • 245
                    if (!(isSet(layoutTemplate))) {
                    • 246
                      fail("layoutTemplate not set.");
                    }
                  • 249
                    if (${layoutTemplate} == "1 Column") {
                    • 250
                      var layoutTemplateId = "1_column";
                    }
                  • 252
                    else if (${layoutTemplate} == "2 Columns (50/50)") {
                    • 253
                      var layoutTemplateId = "2_columns_i";
                    }
                  • 255
                    else if (${layoutTemplate} == "2 Columns (30/70)") {
                    • 256
                      var layoutTemplateId = "2_columns_ii";
                    }
                  • 258
                    else if (${layoutTemplate} == "2 Columns (70/30)") {
                    • 259
                      var layoutTemplateId = "2_columns_iii";
                    }
                  • 261
                    else if (${layoutTemplate} == "3 Columns") {
                    • 262
                      var layoutTemplateId = "3_columns";
                    }
                  • 264
                    else if (${layoutTemplate} == "1-2 Columns (30/70)") {
                    • 265
                      var layoutTemplateId = "1_2_columns_i";
                    }
                  • 267
                    else if (${layoutTemplate} == "1-2 Columns (70/30)") {
                    • 268
                      var layoutTemplateId = "1_2_columns_ii";
                    }
                  • 270
                    else if (${layoutTemplate} == "1-2-1 Columns (50/50)") {
                    • 271
                      var layoutTemplateId = "1_2_1_columns_i";
                    }
                  • 273
                    else if (${layoutTemplate} == "1-2-1 Columns (70/30)") {
                    • 274
                      var layoutTemplateId = "1_2_1_columns_ii";
                    }
                  • 276
                    else if (${layoutTemplate} == "1-3-1 Columns") {
                    • 277
                      var layoutTemplateId = "1_3_1_columns";
                    }
                  • 279
                    else if (${layoutTemplate} == "1-3-2 Columns") {
                    • 280
                      var layoutTemplateId = "1_3_2_columns";
                    }
                  • 282
                    else if (${layoutTemplate} == "2-1-2 Columns") {
                    • 283
                      var layoutTemplateId = "2_1_2_columns";
                    }
                  • 285
                    else if (${layoutTemplate} == "2-2 Columns") {
                    • 286
                      var layoutTemplateId = "2_2_columns";
                    }
                  • 288
                    else if (${layoutTemplate} == "3-2-3 Columns") {
                    • 289
                      var layoutTemplateId = "3_2_3_columns";
                    }
                  • 291
                    else {
                    • 292
                      fail("'layoutTemplate' could not find a valid layoutTemplateId");
                    }
                  • 295
                    return ${layoutTemplateId};
                • 309
                  var typeSettings = StringUtil.regexReplaceFirst(${typeSettings}, "(layout-template-id=).*", "$1${layoutTemplateId}");
                • 311
                  return ${typeSettings};
              }
            • 114
              if (isSet(widgetName)) {
              • 115
                var typeSettings = JSONLayoutUtil._addWidgetToTypeSettings( column = ${column}, remoteAppEntryId = ${remoteAppEntryId}, typeSettings = ${typeSettings}, widgetName = ${widgetName});
                • 7
                  if (!(isSet(column))) {
                  • 8
                    var column = 1;
                  }
                • 11
                  Variables.assertDefined(parameterList = ${typeSettings});
                  • 5
                    if (!(isSet(parameterList))) {
                    • 6
                      fail("Please define a parameter list in 'parameterList'");
                    }
                  • 9
                    for (var parameter : list ${parameterList}) {
                    • 13
                      var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                    • 17
                      if ((${undefined} == "true") && (${parameter} != "false")) {
                      • 18
                        fail("Please set '${parameter}'");
                      }
                    }
                • 13
                  var widget = JSONLayoutUtil._generateWidget(widgetName = ${widgetName});
                  • 33
                    Variables.assertDefined(parameterList = ${widgetName});
                    • 5
                      if (!(isSet(parameterList))) {
                      • 6
                        fail("Please define a parameter list in 'parameterList'");
                      }
                    • 9
                      for (var parameter : list ${parameterList}) {
                      • 13
                        var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                      • 17
                        if ((${undefined} == "true") && (${parameter} != "false")) {
                        • 18
                          fail("Please set '${parameter}'");
                        }
                      }
                  • 35
                    if (${widgetName} == "Alerts") {
                    • 36
                      var portletId = "com_liferay_announcements_web_portlet_AlertsPortlet";
                    }
                  • 38
                    else if (${widgetName} == "Account Management") {
                    • 39
                      var portletId = "com_liferay_account_admin_web_internal_portlet_AccountEntriesManagementPortlet";
                    }
                  • 41
                    else if (${widgetName} == "Announcements") {
                    • 42
                      var portletId = "com_liferay_announcements_web_portlet_AnnouncementsPortlet";
                    }
                  • 44
                    else if (${widgetName} == "Asset Publisher") {
                    • 45
                      var portletId = "com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet";
                    }
                  • 47
                    else if (${widgetName} == "Blogs") {
                    • 48
                      var portletId = "com_liferay_blogs_web_portlet_BlogsPortlet";
                    }
                  • 50
                    else if (${widgetName} == "Blogs Aggregator") {
                    • 51
                      var portletId = "com_liferay_blogs_web_portlet_BlogsAgreggatorPortlet";
                    }
                  • 53
                    else if (${widgetName} == "Bookmarks") {
                    • 54
                      var portletId = "com_liferay_bookmarks_web_portlet_BookmarksPortlet";
                    }
                  • 56
                    else if (${widgetName} == "Breadcrumb") {
                    • 57
                      var portletId = "com_liferay_site_navigation_breadcrumb_web_portlet_SiteNavigationBreadcrumbPortlet";
                    }
                  • 59
                    else if (${widgetName} == "Category Filter") {
                    • 60
                      var portletId = "com_liferay_asset_categories_navigation_web_portlet_AssetCategoriesNavigationPortlet";
                    }
                  • 62
                    else if (${widgetName} == "Category Content") {
                    • 63
                      var portletId = "com_liferay_commerce_product_content_web_internal_portlet_CPCategoryContentPortlet";
                    }
                  • 65
                    else if (${widgetName} == "Clay Sample") {
                    • 66
                      var portletId = "com_liferay_clay_sample_web_portlet_ClaySamplePortlet";
                    }
                  • 68
                    else if (${widgetName} == "Commerce Categories Navigation") {
                    • 69
                      var portletId = "com_liferay_commerce_product_asset_categories_navigation_web_internal_portlet_CPAssetCategoriesNavigationPortlet";
                    }
                  • 71
                    else if (${widgetName} == "Contacts Center") {
                    • 72
                      var portletId = "com_liferay_contacts_web_portlet_ContactsCenterPortlet";
                    }
                  • 74
                    else if (${widgetName} == "Cookies Banner Configuration") {
                    • 75
                      var portletId = "com_liferay_cookies_banner_web_portlet_CookiesBannerConfigurationPortlet";
                    }
                  • 77
                    else if (${widgetName} == "CSS Cadmin Sample") {
                    • 78
                      var portletId = "com_liferay_frontend_css_cadmin_sample_web_internal_portlet_CadminSampleWebPortlet";
                    }
                  • 80
                    else if (${widgetName} == "Custom Filter") {
                    • 81
                      var portletId = "com_liferay_portal_search_web_internal_custom_filter_portlet_CustomFilterPortlet";
                    }
                  • 83
                    else if (${widgetName} == "Documents and Media") {
                    • 84
                      var portletId = "com_liferay_document_library_web_portlet_DLPortlet";
                    }
                  • 86
                    else if (${widgetName} == "Dynamic Data Lists Display") {
                    • 87
                      var portletId = "com_liferay_dynamic_data_lists_web_portlet_DDLDisplayPortlet";
                    }
                  • 89
                    else if (${widgetName} == "Form") {
                    • 90
                      var portletId = "com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet";
                    }
                  • 92
                    else if (${widgetName} == "Highest Rated Assets") {
                    • 93
                      var portletId = "com_liferay_asset_publisher_web_portlet_HighestRatedAssetsPortlet";
                    }
                  • 95
                    else if (${widgetName} == "IFrame") {
                    • 96
                      var portletId = "com_liferay_iframe_web_portlet_IFramePortlet";
                    }
                  • 98
                    else if (${widgetName} == "Invite Members") {
                    • 99
                      var portletId = "com_liferay_invitation_invite_members_web_portlet_InviteMembersPortlet";
                    }
                  • 101
                    else if (${widgetName} == "JS A11y Sample") {
                    • 102
                      var portletId = "com_liferay_frontend_js_a11y_sample_web_internal_portlet_FrontendJSA11ySampleWebPortlet";
                    }
                  • 104
                    else if (${widgetName} == "JS Clay Sample") {
                    • 105
                      var portletId = "com_liferay_frontend_js_clay_sample_web_internal_portlet_FrontendJSClaySampleWebPortlet";
                    }
                  • 107
                    else if (${widgetName} == "JS Components Sample") {
                    • 108
                      var portletId = "com_liferay_frontend_js_components_sample_web_portlet_FrontendJSComponentsSampleWebPortlet";
                    }
                  • 110
                    else if (${widgetName} == "JS Walkthrough Sample") {
                    • 111
                      var portletId = "com_liferay_frontend_js_walkthrough_sample_web_internal_portlet_FrontendJSWalkthroughSampleWebPortlet";
                    }
                  • 113
                    else if (${widgetName} == "Knowledge Base Article") {
                    • 114
                      var portletId = "com_liferay_knowledge_base_web_portlet_ArticlePortlet";
                    }
                  • 116
                    else if (${widgetName} == "Knowledge Base Display") {
                    • 117
                      var portletId = "com_liferay_knowledge_base_web_portlet_DisplayPortlet";
                    }
                  • 119
                    else if (${widgetName} == "Knowledge Base Search") {
                    • 120
                      var portletId = "com_liferay_knowledge_base_web_portlet_SearchPortlet";
                    }
                  • 122
                    else if (${widgetName} == "Knowledge Base Section") {
                    • 123
                      var portletId = "com_liferay_knowledge_base_web_portlet_SectionPortlet";
                    }
                  • 125
                    else if (${widgetName} == "Language Selector") {
                    • 126
                      var portletId = "com_liferay_site_navigation_language_web_portlet_SiteNavigationLanguagePortlet";
                    }
                  • 128
                    else if (${widgetName} == "Low Level Search Options") {
                    • 129
                      var portletId = "com_liferay_portal_search_web_low_level_search_options_portlet_LowLevelSearchOptionsPortlet";
                    }
                  • 131
                    else if (${widgetName} == "Media Gallery") {
                    • 132
                      var portletId = "com_liferay_document_library_web_portlet_IGDisplayPortlet";
                    }
                  • 134
                    else if (${widgetName} == "Message Boards") {
                    • 135
                      var portletId = "com_liferay_message_boards_web_portlet_MBPortlet";
                    }
                  • 137
                    else if (${widgetName} == "Microblogs") {
                    • 138
                      var portletId = "com_liferay_microblogs_web_portlet_MicroblogsPortlet";
                    }
                  • 140
                    else if (${widgetName} == "Microblogs Status Update") {
                    • 141
                      var portletId = "com_liferay_microblogs_web_portlet_MicroblogsStatusUpdatePortlet";
                    }
                  • 143
                    else if (${widgetName} == "Most Viewed Assets") {
                    • 144
                      var portletId = "com_liferay_asset_publisher_web_portlet_MostViewedAssetsPortlet";
                    }
                  • 146
                    else if (${widgetName} == "My Sites") {
                    • 147
                      var portletId = "com_liferay_site_my_sites_web_portlet_MySitesPortlet";
                    }
                  • 149
                    else if (${widgetName} == "Menu Display") {
                    • 150
                      var portletId = "com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet";
                    }
                  • 152
                    else if (${widgetName} == "Nested Applications") {
                    • 153
                      var portletId = "com_liferay_nested_portlets_web_portlet_NestedPortletsPortlet";
                    }
                  • 155
                    else if (${widgetName} == "Organization Management") {
                    • 156
                      var portletId = "com_liferay_commerce_organization_web_internal_portlet_CommerceOrganizationPortlet";
                    }
                  • 158
                    else if (${widgetName} == "Profile") {
                    • 159
                      var portletId = "com_liferay_contacts_web_portlet_ProfilePortlet";
                    }
                  • 161
                    else if (${widgetName} == "Product Details") {
                    • 162
                      var portletId = "com_liferay_commerce_product_content_web_internal_portlet_CPContentPortlet";
                    }
                  • 164
                    else if (${widgetName} == "Questions") {
                    • 165
                      var portletId = "com_liferay_questions_web_internal_portlet_QuestionsPortlet";
                    }
                  • 167
                    else if (${widgetName} == "Recent Bloggers") {
                    • 168
                      var portletId = "com_liferay_blogs_recent_bloggers_web_portlet_RecentBloggersPortlet";
                    }
                  • 170
                    else if (${widgetName} == "Related Assets") {
                    • 171
                      var portletId = "com_liferay_asset_publisher_web_portlet_RelatedAssetsPortlet";
                    }
                  • 173
                    else if (${widgetName} == "RSS Publisher") {
                    • 174
                      var portletId = "com_liferay_rss_web_portlet_RSSPortlet";
                    }
                  • 176
                    else if (${widgetName} == "Search Bar") {
                    • 177
                      var portletId = "com_liferay_portal_search_web_search_bar_portlet_SearchBarPortlet";
                    }
                  • 179
                    else if (${widgetName} == "Search Options") {
                    • 180
                      var portletId = "com_liferay_portal_search_web_search_options_portlet_SearchOptionsPortlet";
                    }
                  • 182
                    else if (${widgetName} == "Search Results") {
                    • 183
                      var portletId = "com_liferay_portal_search_web_search_results_portlet_SearchResultsPortlet";
                    }
                  • 185
                    else if (${widgetName} == "Sign In") {
                    • 186
                      var portletId = "com_liferay_login_web_portlet_LoginPortlet";
                    }
                  • 188
                    else if (${widgetName} == "Similar Results") {
                    • 189
                      var portletId = "com_liferay_portal_search_similar_results_web_portlet_SimilarResultsPortlet";
                    }
                  • 191
                    else if (${widgetName} == "Site Map") {
                    • 192
                      var portletId = "com_liferay_site_navigation_site_map_web_portlet_SiteNavigationSiteMapPortlet";
                    }
                  • 194
                    else if (${widgetName} == "Sites Directory") {
                    • 195
                      var portletId = "com_liferay_site_navigation_directory_web_portlet_SitesDirectoryPortlet";
                    }
                  • 197
                    else if (${widgetName} == "Tag Filter") {
                    • 198
                      var portletId = "com_liferay_asset_tags_navigation_web_portlet_AssetTagsNavigationPortlet";
                    }
                  • 200
                    else if (${widgetName} == "Tree Menu") {
                    • 201
                      var portletId = "com_liferay_wiki_navigation_web_portlet_WikiNavigationTreeMenuPortlet";
                    }
                  • 203
                    else if (${widgetName} == "Type Facet") {
                    • 204
                      var portletId = "com_liferay_portal_search_web_type_facet_portlet_TypeFacetPortlet";
                    }
                  • 206
                    else if (${widgetName} == "User Statistics") {
                    • 207
                      var portletId = "com_liferay_social_user_statistics_web_portlet_SocialUserStatisticsPortlet";
                    }
                  • 209
                    else if (${widgetName} == "Vanilla Counter") {
                    • 210
                      var portletId = "com_liferay_client_extension_web_internal_portlet_ClientExtensionEntryPortlet_remoteAppEntryId";
                    }
                  • 212
                    else if (${widgetName} == "Web Content Display") {
                    • 213
                      var portletId = "com_liferay_journal_content_web_portlet_JournalContentPortlet";
                    }
                  • 215
                    else if (${widgetName} == "Wiki") {
                    • 216
                      var portletId = "com_liferay_wiki_web_portlet_WikiPortlet";
                    }
                  • 218
                    else if (${widgetName} == "Wiki Display") {
                    • 219
                      var portletId = "com_liferay_wiki_web_portlet_WikiDisplayPortlet";
                    }
                  • 221
                    else if (${widgetName} == "CKEditor Sample") {
                    • 222
                      var portletId = "com_liferay_editor_ckeditor_sample_web_internal_portlet_CKEditorSamplePortlet";
                    }
                  • 224
                    else if (${widgetName} == "Frontend Data Set Sample") {
                    • 225
                      var portletId = "com_liferay_frontend_data_set_sample_web_internal_portlet_FDSSamplePortlet";
                    }
                  • 227
                    else {
                    • 228
                      fail("'widgetName' is either invalid or its 'portletId' is not yet set.");
                    }
                  • 231
                    var instanceId = StringUtil.randomString(12);
                  • 232
                    var nonRepeatableWidgets = "Blogs,Bookmarks,Knowledge Base Display,Language Selector,Message Boards,My Sites,Sign In,Web Content Search,Wiki";
                  • 234
                    if (contains(${nonRepeatableWidgets}, ${widgetName})) {
                    • 235
                      var widget = ${portletId};
                    }
                  • 237
                    else {
                    • 238
                      var widget = "${portletId}_INSTANCE_${instanceId}";
                    }
                  • 241
                    return ${widget};
                • 15
                  if (isSet(remoteAppEntryId)) {
                  • 16
                    var widget = StringUtil.replace(${widget}, "remoteAppEntryId", ${remoteAppEntryId});
                  }
                • 19
                  if (contains(${typeSettings}, "column-${column}=")) {
                  • 20
                    var typeSettings = StringUtil.regexReplaceFirst(${typeSettings}, "(column-${column}=[^%]*)", "$1,${widget}");
                  }
                • 22
                  else {
                  • 23
                    var typeSettings = '''${typeSettings}column-${column}''';
                  • 25
                    var typeSettings = '''${typeSettings}=${widget}''';
                  }
                • 28
                  return ${typeSettings};
              }
            • 122
              if (!(isSet(layoutTemplate)) && !(isSet(widgetName))) {
              • 123
                fail("typeSettings will not be updated.");
              }
            • 126
              return ${typeSettings};
          • 124
            JSONLayoutAPI._updateTypeSettings( groupId = ${groupId}, layoutId = ${layoutId}, privateLayout = "false", typeSettings = ${typeSettings});
            • 178
              Variables.assertDefined(parameterList = "${groupId},${privateLayout},${layoutId},${typeSettings}");
              • 5
                if (!(isSet(parameterList))) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list ${parameterList}) {
                • 13
                  var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                • 17
                  if ((${undefined} == "true") && (${parameter} != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 180
              var portalURL = JSONCompany.getPortalURL();
              • 138
                var portalURL = PropsUtil.get("portal.url");
              • 140
                return ${portalURL};
            • 182
              var curl = ''' ${portalURL}/api/jsonws/layout/update-layout \ -u test@liferay.com:test \ -d groupId=${groupId} \ -d privateLayout=${privateLayout} \ -d layoutId=${layoutId} \ -d typeSettings=${typeSettings} ''';
            • 191
              com.liferay.poshi.runner.util.JSONCurlUtil.post(${curl});
        }
      }
    • 250
      test AddWithStructure {
      • 248
        @description = "Add a web content article with a custom DDM structure and template and display it in the web content display widget."
      • 254
        task ("Add a web content structure with a single line Text field and a multiple lines Text field") {
        • 255
          WebContentNavigator.openWebContentAdmin(siteURLKey = "test-site-name");
          • 236
            Navigator.openWithAppendToBaseURL( baseURL = ${baseURL}, urlAppend = "group/${siteURLKey}/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet");
            • 384
              if (!(isSet(baseURL))) {
              • 385
                var baseURL = PropsUtil.get("portal.url");
              }
            • 388
              Open(locator1 = "${baseURL}/${urlAppend}");
        • 257
          NavItem.gotoStructures();
          • 44
            NavItem.click(navItem = "Structures");
            • 4
              var key_navItem = ${navItem};
            • 6
              if (IsElementNotPresent(locator1 = "NavBar#ACTIVE_NAV_ITEM_LINK")) {
              • 7
                AssertClick( locator1 = "NavBar#NAV_ITEM_LINK", value1 = ${navItem});
              }
            • 12
              NavItem.viewActive(navItem = ${navItem});
              • 64
                AssertElementPresent( key_navItem = ${navItem}, locator1 = "NavBar#ACTIVE_NAV_ITEM_LINK");
        • 259
          WebContentStructures.addCP(structureName = "WC Structure Name");
          • 4
            LexiconEntry.gotoAdd();
            • 51
              WaitForPageLoad();
            • 53
              Click(locator1 = "Button#PLUS");
            • 55
              SelectFrameTop();
          • 6
            AssertVisible(locator1 = "Sidebar#FORM_BUILDER");
          • 8
            if (isSet(structureName)) {
            • 9
              WebContentStructures.addName(structureName = ${structureName});
              • 78
                Type.clickAtType( locator1 = "TextInput#NAME", value1 = ${structureName});
            }
          • 12
            if (isSet(structureKey)) {
            • 13
              if (IsElementNotPresent(key_tabName = "Properties", locator1 = "Sidebar#ACTIVE_TAB")) {
              • 14
                Navigator.gotoSidebarTab(tabName = "Properties");
                • 173
                  var key_tabName = ${tabName};
                • 175
                  if (IsElementNotPresent(locator1 = "Sidebar#ACTIVE_TAB")) {
                  • 176
                    Click(locator1 = "Sidebar#TAB");
                  }
                • 179
                  AssertElementPresent(locator1 = "Sidebar#ACTIVE_TAB");
                • 181
                  WaitForLiferayEvent.initializeLiferayEventLog();
              }
            • 17
              PortletEntry.inputStructureKeyTextInput(structureKey = ${structureKey});
              • 119
                Type( locator1 = "TextInput#STRUCTURE_KEY_FIELD", value1 = ${structureKey});
            }
          • 20
            if (isSet(structureDescription)) {
            • 21
              if (IsElementNotPresent(key_tabName = "Properties", locator1 = "Sidebar#ACTIVE_TAB")) {
              • 22
                Navigator.gotoSidebarTab(tabName = "Properties");
                • 173
                  var key_tabName = ${tabName};
                • 175
                  if (IsElementNotPresent(locator1 = "Sidebar#ACTIVE_TAB")) {
                  • 176
                    Click(locator1 = "Sidebar#TAB");
                  }
                • 179
                  AssertElementPresent(locator1 = "Sidebar#ACTIVE_TAB");
                • 181
                  WaitForLiferayEvent.initializeLiferayEventLog();
              }
            • 25
              PortletEntry.inputDescriptionTextInput(description = ${structureDescription});
              • 99
                Type( locator1 = "TextInput#DESCRIPTION", value1 = ${description});
            }
        • 261
          DataEngine.addField( fieldFieldLabel = "Text", fieldName = "Text");
          • 4
            Navigator.gotoSidebarTab(tabName = "Builder");
            • 173
              var key_tabName = ${tabName};
            • 175
              if (IsElementNotPresent(locator1 = "Sidebar#ACTIVE_TAB")) {
              • 176
                Click(locator1 = "Sidebar#TAB");
              }
            • 179
              AssertElementPresent(locator1 = "Sidebar#ACTIVE_TAB");
            • 181
              WaitForLiferayEvent.initializeLiferayEventLog();
          • 6
            Navigator.gotoNavTab(navTab = "Fields");
            • 113
              var key_tab = ${navTab};
            • 115
              if (IsElementNotPresent(locator1 = "NavTab#ACTIVE_TAB_LINK")) {
              • 116
                AssertClick.assertPartialTextClickAt( locator1 = "NavTab#TAB_LINK", value1 = ${navTab});
              }
            • 121
              AssertElementPresent(locator1 = "NavTab#ACTIVE_TAB_LINK");
            • 123
              WaitForLiferayEvent.initializeLiferayEventLog();
          • 8
            var key_fieldFieldLabel = ${fieldFieldLabel};
          • 9
            var key_fieldName = ${fieldName};
          • 10
            var fieldReference = StringUtil.replace(${fieldFieldLabel}, " ", "");
          • 12
            if (isSet(fieldLocation)) {
            • 13
              DragAndDrop.javaScriptDragAndDropToObject( key_fieldLocation = ${fieldLocation}, locator1 = "Sidebar#ADD_FIELD_NAME", locator2 = "Sidebar#ADD_FIELD_POSITION", value1 = ${fieldName});
            }
          • 19
            else {
            • 20
              DragAndDrop.javaScriptDragAndDropToObject( locator1 = "Sidebar#ADD_FIELD_NAME", locator2 = "Sidebar#ADD_FIELD_TARGET", value1 = ${fieldName});
            }
          • 26
            WaitForVisible(locator1 = "Sidebar#BACK");
          • 28
            Navigator.gotoNavTab(navTab = "Basic");
            • 113
              var key_tab = ${navTab};
            • 115
              if (IsElementNotPresent(locator1 = "NavTab#ACTIVE_TAB_LINK")) {
              • 116
                AssertClick.assertPartialTextClickAt( locator1 = "NavTab#TAB_LINK", value1 = ${navTab});
              }
            • 121
              AssertElementPresent(locator1 = "NavTab#ACTIVE_TAB_LINK");
            • 123
              WaitForLiferayEvent.initializeLiferayEventLog();
          • 30
            Type( key_fieldLabel = "Label", locator1 = "TextInput#GENERIC_TEXT_INPUT", value1 = ${fieldFieldLabel});
          • 35
            AssertTextEquals( key_fieldLabel = "Label", locator1 = "TextInput#GENERIC_TEXT_INPUT", value1 = ${fieldFieldLabel});
          • 40
            AssertElementPresent( locator1 = "DDMEditStructure#FORM_FIELD_CONTAINER_LABEL", value1 = ${fieldFieldLabel});
          • 44
            if (${fieldName} == "Text") {
            • 45
              if (isSet(fieldType)) {
              • 46
                Check.checkToggleSwitch( key_toggleSwitchLabel = ${fieldType}, locator1 = "ToggleSwitch#ANY_TOGGLE_SWITCH");
              }
            }
          • 51
            else if (${fieldName} == "Numeric") {
            • 52
              if (isSet(numericType)) {
              • 53
                Check.checkToggleSwitch( key_toggleSwitchLabel = ${numericType}, locator1 = "ToggleSwitch#ANY_TOGGLE_SWITCH");
              }
            }
          • 59
            Navigator.gotoNavTab(navTab = "Advanced");
            • 113
              var key_tab = ${navTab};
            • 115
              if (IsElementNotPresent(locator1 = "NavTab#ACTIVE_TAB_LINK")) {
              • 116
                AssertClick.assertPartialTextClickAt( locator1 = "NavTab#TAB_LINK", value1 = ${navTab});
              }
            • 121
              AssertElementPresent(locator1 = "NavTab#ACTIVE_TAB_LINK");
            • 123
              WaitForLiferayEvent.initializeLiferayEventLog();
          • 61
            if (isSet(textNumber)) {
            • 62
              var textNumber = selenium.getAttribute("//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::input[@type='text']@value");
            • 64
              return ${textNumber};
            • 66
              echo("## * textNumber: ${textNumber}");
            }
          • 69
            Type( key_fieldLabel = "Field Reference", key_fieldName = "fieldReference", locator1 = "Sidebar#TEXT_INPUT", value1 = ${fieldReference});
          • 75
            AssertTextEquals.assertValue( key_fieldLabel = "Field Reference", key_fieldName = "fieldReference", locator1 = "Sidebar#TEXT_INPUT", value1 = ${fieldReference});
          • 81
            Click(locator1 = "Sidebar#BACK");
        • 265
          DataEngine.addField( fieldFieldLabel = "Text Box", fieldLocation = 2, fieldName = "Text", fieldType = "Multiple Lines");
          • 4
            Navigator.gotoSidebarTab(tabName = "Builder");
            • 173
              var key_tabName = ${tabName};
            • 175
              if (IsElementNotPresent(locator1 = "Sidebar#ACTIVE_TAB")) {
              • 176
                Click(locator1 = "Sidebar#TAB");
              }
            • 179
              AssertElementPresent(locator1 = "Sidebar#ACTIVE_TAB");
            • 181
              WaitForLiferayEvent.initializeLiferayEventLog();
          • 6
            Navigator.gotoNavTab(navTab = "Fields");
            • 113
              var key_tab = ${navTab};
            • 115
              if (IsElementNotPresent(locator1 = "NavTab#ACTIVE_TAB_LINK")) {
              • 116
                AssertClick.assertPartialTextClickAt( locator1 = "NavTab#TAB_LINK", value1 = ${navTab});
              }
            • 121
              AssertElementPresent(locator1 = "NavTab#ACTIVE_TAB_LINK");
            • 123
              WaitForLiferayEvent.initializeLiferayEventLog();
          • 8
            var key_fieldFieldLabel = ${fieldFieldLabel};
          • 9
            var key_fieldName = ${fieldName};
          • 10
            var fieldReference = StringUtil.replace(${fieldFieldLabel}, " ", "");
          • 12
            if (isSet(fieldLocation)) {
            • 13
              DragAndDrop.javaScriptDragAndDropToObject( key_fieldLocation = ${fieldLocation}, locator1 = "Sidebar#ADD_FIELD_NAME", locator2 = "Sidebar#ADD_FIELD_POSITION", value1 = ${fieldName});
            }
          • 19
            else {
            • 20
              DragAndDrop.javaScriptDragAndDropToObject( locator1 = "Sidebar#ADD_FIELD_NAME", locator2 = "Sidebar#ADD_FIELD_TARGET", value1 = ${fieldName});
            }
          • 26
            WaitForVisible(locator1 = "Sidebar#BACK");
          • 28
            Navigator.gotoNavTab(navTab = "Basic");
            • 113
              var key_tab = ${navTab};
            • 115
              if (IsElementNotPresent(locator1 = "NavTab#ACTIVE_TAB_LINK")) {
              • 116
                AssertClick.assertPartialTextClickAt( locator1 = "NavTab#TAB_LINK", value1 = ${navTab});
              }
            • 121
              AssertElementPresent(locator1 = "NavTab#ACTIVE_TAB_LINK");
            • 123
              WaitForLiferayEvent.initializeLiferayEventLog();
          • 30
            Type( key_fieldLabel = "Label", locator1 = "TextInput#GENERIC_TEXT_INPUT", value1 = ${fieldFieldLabel});
          • 35
            AssertTextEquals( key_fieldLabel = "Label", locator1 = "TextInput#GENERIC_TEXT_INPUT", value1 = ${fieldFieldLabel});
          • 40
            AssertElementPresent( locator1 = "DDMEditStructure#FORM_FIELD_CONTAINER_LABEL", value1 = ${fieldFieldLabel});
          • 44
            if (${fieldName} == "Text") {
            • 45
              if (isSet(fieldType)) {
              • 46
                Check.checkToggleSwitch( key_toggleSwitchLabel = ${fieldType}, locator1 = "ToggleSwitch#ANY_TOGGLE_SWITCH");
              }
            }
          • 51
            else if (${fieldName} == "Numeric") {
            • 52
              if (isSet(numericType)) {
              • 53
                Check.checkToggleSwitch( key_toggleSwitchLabel = ${numericType}, locator1 = "ToggleSwitch#ANY_TOGGLE_SWITCH");
              }
            }
          • 59
            Navigator.gotoNavTab(navTab = "Advanced");
            • 113
              var key_tab = ${navTab};
            • 115
              if (IsElementNotPresent(locator1 = "NavTab#ACTIVE_TAB_LINK")) {
              • 116
                AssertClick.assertPartialTextClickAt( locator1 = "NavTab#TAB_LINK", value1 = ${navTab});
              }
            • 121
              AssertElementPresent(locator1 = "NavTab#ACTIVE_TAB_LINK");
            • 123
              WaitForLiferayEvent.initializeLiferayEventLog();
          • 61
            if (isSet(textNumber)) {
            • 62
              var textNumber = selenium.getAttribute("//div[contains(@data-field-name,'fieldReference')]//label[normalize-space(text())='Field Reference']//following-sibling::input[@type='text']@value");
            • 64
              return ${textNumber};
            • 66
              echo("## * textNumber: ${textNumber}");
            }
          • 69
            Type( key_fieldLabel = "Field Reference", key_fieldName = "fieldReference", locator1 = "Sidebar#TEXT_INPUT", value1 = ${fieldReference});
          • 75
            AssertTextEquals.assertValue( key_fieldLabel = "Field Reference", key_fieldName = "fieldReference", locator1 = "Sidebar#TEXT_INPUT", value1 = ${fieldReference});
          • 81
            Click(locator1 = "Sidebar#BACK");
        • 271
          WebContentStructures.saveCP();
          • 264
            DDLDataDefinition.save(publicationsEnabled = ${publicationsEnabled});
            • 3
              var ddlDataDefinitionDescription = "Data Definition Description";
            • 4
              var ddlDataDefinitionName = "Data Definition Name";
            • 5
              var ddlListName = "List Name";
            • 204
              Click.mouseDownMouseUp(locator1 = "//span[contains(@class,'btn')][normalize-space(text())='Save']/..");
            • 206
              Alert.viewSuccessMessage();
              • 138
                VerifyElementPresent(locator1 = "Message#SUCCESS_DISMISSIBLE");
          • 266
            if (isSet(addRoleViewPermissions)) {
            • 267
              LexiconEntry.gotoEntryMenuItem( menuItem = "Permissions", rowEntry = ${structureName});
              • 112
                LexiconEntry.openEntryMenu(rowEntry = ${rowEntry});
                • 158
                  var browserType = PropsUtil.get("browser.type");
                • 160
                  if (${browserType} == "safari") {
                  • 161
                    Click.waitForMenuToggleJSClick( key_rowEntry = ${rowEntry}, locator1 = "Icon#ROW_VERTICAL_ELLIPSIS_SAFARI");
                  }
                • 165
                  else {
                  • 166
                    Click.waitForMenuToggleJSClick( key_rowEntry = ${rowEntry}, locator1 = "Icon#ROW_VERTICAL_ELLIPSIS");
                  }
              • 114
                MenuItem.click(menuItem = ${menuItem});
                • 4
                  Click( key_menuItem = ${menuItem}, locator1 = "MenuItem#ANY_MENU_ITEM");
            • 271
              SelectFrame(locator1 = "IFrame#MODAL_BODY");
            • 273
              PermissionsInline.addOrRemoveViewPermissionFromAllRoles( addOrRemoveViewPermission = "Add", roleList = ${addRoleViewPermissions});
              • 152
                for (var roleTitle : list ${roleList}) {
                • 153
                  var roleTitle = ${roleTitle};
                • 155
                  var key_roleTitle = StringUtil.replace(${roleTitle}, " ", "-");
                • 157
                  var key_roleTitle = StringUtil.lowerCase(${key_roleTitle});
                • 159
                  ScrollWebElementIntoView(locator1 = "Permissions#CONFIGURATION_PERMISSIONS_VIEW_CHECKBOX");
                • 161
                  takeScreenshot();
                • 163
                  if (${addOrRemoveViewPermission} == "Add") {
                  • 164
                    Check.checkNotVisible(locator1 = "Permissions#CONFIGURATION_PERMISSIONS_VIEW_CHECKBOX");
                  }
                • 166
                  else if (${addOrRemoveViewPermission} == "Remove") {
                  • 167
                    Uncheck.uncheckNotVisible(locator1 = "Permissions#CONFIGURATION_PERMISSIONS_VIEW_CHECKBOX");
                  }
                }
              • 171
                Button.clickSave();
                • 110
                  Button.click(button = "Save");
                  • 4
                    Click.mouseDownMouseUp( key_text = ${button}, locator1 = "Button#ANY");
                • 112
                  WaitForLiferayEvent.initializeLiferayEventLog();
              • 173
                AssertTextEquals.assertPartialText( locator1 = "Message#SUCCESS", value1 = "Your request completed successfully.");
            • 277
              IFrame.selectTopFrame();
              • 60
                SelectFrame(value1 = "relative=top");
            }
        }
      • 274
        task ("Add a template for new structure") {
        • 275
          NavItem.gotoTemplates();
          • 48
            NavItem.click(navItem = "Templates");
            • 4
              var key_navItem = ${navItem};
            • 6
              if (IsElementNotPresent(locator1 = "NavBar#ACTIVE_NAV_ITEM_LINK")) {
              • 7
                AssertClick( locator1 = "NavBar#NAV_ITEM_LINK", value1 = ${navItem});
              }
            • 12
              NavItem.viewActive(navItem = ${navItem});
              • 64
                AssertElementPresent( key_navItem = ${navItem}, locator1 = "NavBar#ACTIVE_NAV_ITEM_LINK");
        • 277
          WebContentTemplates.addCP( structureName = "WC Structure Name", templateFile = "wc_template.ftl", templateName = "WC Template Name");
          • 93
            LexiconEntry.gotoAdd();
            • 51
              WaitForPageLoad();
            • 53
              Click(locator1 = "Button#PLUS");
            • 55
              SelectFrameTop();
          • 95
            WaitForVisible(locator1 = "Sidebar#PANEL_OPEN");
          • 97
            WebContentTemplates.inputTemplateAddScreenFields( generalVariables = ${generalVariables}, imageSourceURL = ${imageSourceURL}, structureName = ${structureName}, templateDescription = ${templateDescription}, templateFieldNames = ${templateFieldNames}, templateFile = ${templateFile}, templateName = ${templateName}, templateScript = ${templateScript});
            • 206
              if (isSet(templateName)) {
              • 207
                PortletEntry.inputName(name = ${templateName});
                • 113
                  Type( locator1 = "TextInput#NAME", value1 = ${name});
              }
            • 210
              if (isSet(structureName)) {
              • 211
                WebContentTemplates._inputStructure(structureName = ${structureName});
                • 45
                  if (isSet(structureName)) {
                  • 46
                    Navigator.gotoSidebarTab(tabName = "Properties");
                    • 173
                      var key_tabName = ${tabName};
                    • 175
                      if (IsElementNotPresent(locator1 = "Sidebar#ACTIVE_TAB")) {
                      • 176
                        Click(locator1 = "Sidebar#TAB");
                      }
                    • 179
                      AssertElementPresent(locator1 = "Sidebar#ACTIVE_TAB");
                    • 181
                      WaitForLiferayEvent.initializeLiferayEventLog();
                  • 48
                    WaitForLiferayEvent.initializeLiferayEventLog();
                  • 50
                    Click( buttonId = "selectDDMStructure", locator1 = "Button#BUTTON_ID");
                  • 54
                    SelectFrame(locator1 = "IFrame#MODAL_BODY");
                  • 56
                    var key_tableEntry = ${structureName};
                  • 58
                    AssertElementPresent(locator1 = "LexiconTable#TABLE_ENTRY_TITLE");
                  • 60
                    var browserType = PropsUtil.get("browser.type");
                  • 62
                    if (${browserType} == "safari") {
                    • 63
                      Click.javaScriptClick(locator1 = "LexiconTable#TABLE_ENTRY_TITLE");
                    }
                  • 65
                    else {
                    • 66
                      AssertClick.assertTextClickAt( locator1 = "LexiconTable#TABLE_ENTRY_TITLE", value1 = ${structureName});
                    }
                  • 71
                    SelectFrameTop();
                  }
              }
            • 214
              WebContentTemplates._inputDescription(templateDescription = ${templateDescription});
              • 36
                if (isSet(templateDescription)) {
                • 37
                  Navigator.gotoSidebarTab(tabName = "Properties");
                  • 173
                    var key_tabName = ${tabName};
                  • 175
                    if (IsElementNotPresent(locator1 = "Sidebar#ACTIVE_TAB")) {
                    • 176
                      Click(locator1 = "Sidebar#TAB");
                    }
                  • 179
                    AssertElementPresent(locator1 = "Sidebar#ACTIVE_TAB");
                  • 181
                    WaitForLiferayEvent.initializeLiferayEventLog();
                • 39
                  PortletEntry.inputDescription(description = ${templateDescription});
                  • 93
                    Type( locator1 = "TextArea#DESCRIPTION", value1 = ${description});
                }
            • 216
              if (isSet(imageSourceURL)) {
              • 217
                Navigator.gotoSidebarTab(tabName = "Properties");
                • 173
                  var key_tabName = ${tabName};
                • 175
                  if (IsElementNotPresent(locator1 = "Sidebar#ACTIVE_TAB")) {
                  • 176
                    Click(locator1 = "Sidebar#TAB");
                  }
                • 179
                  AssertElementPresent(locator1 = "Sidebar#ACTIVE_TAB");
                • 181
                  WaitForLiferayEvent.initializeLiferayEventLog();
              • 219
                WebContent.addFeaturedImageFromURL(imageSourceURL = ${imageSourceURL});
                • 225
                  Panel.expandPanel(panel = "Featured Image");
                  • 22
                    Portlet.waitForForm();
                    • 902
                      AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
                  • 24
                    var key_panel = ${panel};
                  • 26
                    AssertVisible( key_panel = ${panel}, locator1 = "Panel#PANEL");
                  • 30
                    if ((IsElementPresent(locator1 = "Panel#PANEL_COLLAPSED")) && (IsVisible(locator1 = "Panel#PANEL_COLLAPSED"))) {
                    • 31
                      AssertClick( locator1 = "Panel#PANEL_COLLAPSED", value1 = ${panel});
                    }
                  • 36
                    AssertElementPresent(locator1 = "Panel#PANEL_EXPANDED");
                • 227
                  Select( locator1 = "WCEditWebContent#SELECT_FEATURED_IMAGE_TYPE", value1 = "From URL");
                • 231
                  Type( locator1 = "WCEditWebContent#FEATURED_IMAGE_URL_INPUT", value1 = ${imageSourceURL});
              }
            • 222
              WebContentTemplates.inputScript(templateScript = ${templateScript});
              • 197
                if (isSet(templateScript)) {
                • 198
                  Type.typeCodeMirrorEditorNoError( locator1 = "DDMEditTemplate#CODE_MIRROR_EDITOR", value1 = ${templateScript});
                }
            • 224
              WebContentTemplates._addFields(templateFieldNames = ${templateFieldNames});
              • 5
                if (isSet(templateFieldNames)) {
                • 6
                  Navigator.gotoSidebarTab(tabName = "Elements");
                  • 173
                    var key_tabName = ${tabName};
                  • 175
                    if (IsElementNotPresent(locator1 = "Sidebar#ACTIVE_TAB")) {
                    • 176
                      Click(locator1 = "Sidebar#TAB");
                    }
                  • 179
                    AssertElementPresent(locator1 = "Sidebar#ACTIVE_TAB");
                  • 181
                    WaitForLiferayEvent.initializeLiferayEventLog();
                • 8
                  for (var fieldName : list ${templateFieldNames}) {
                  • 9
                    var key_panelTitle = "Fields";
                  • 10
                    var key_variableName = ${fieldName};
                  • 12
                    AssertClick( locator1 = "DDMEditTemplate#WEB_CONTENT_SCRIPT_VARIABLE", value1 = ${fieldName});
                  }
                }
            • 226
              WebContentTemplates._addGeneralVariables(generalVariables = ${generalVariables});
              • 20
                if (isSet(generalVariables)) {
                • 21
                  Navigator.gotoSidebarTab(tabName = "Elements");
                  • 173
                    var key_tabName = ${tabName};
                  • 175
                    if (IsElementNotPresent(locator1 = "Sidebar#ACTIVE_TAB")) {
                    • 176
                      Click(locator1 = "Sidebar#TAB");
                    }
                  • 179
                    AssertElementPresent(locator1 = "Sidebar#ACTIVE_TAB");
                  • 181
                    WaitForLiferayEvent.initializeLiferayEventLog();
                • 23
                  for (var generalVariable : list ${generalVariables}) {
                  • 24
                    var key_panelTitle = "General Variables";
                  • 25
                    var key_variableName = ${generalVariable};
                  • 27
                    AssertClick( locator1 = "DDMEditTemplate#WEB_CONTENT_SCRIPT_VARIABLE", value1 = ${generalVariable});
                  }
                }
            • 228
              WebContentTemplates._inputTemplateFile(templateFile = ${templateFile});
              • 77
                if (isSet(templateFile)) {
                • 78
                  Click(locator1 = "Icon#HEADER_VERTICAL_ELLIPSIS");
                • 80
                  var filePath = TestCase.getDependenciesDirPath(fileName = ${templateFile});
                  • 21
                    var projectDir = PropsUtil.get("project.dir");
                  • 22
                    var testBaseDir = PropsUtil.get("test.base.dir.name");
                  • 23
                    var testDependenciesDir = PropsUtil.get("test.dependencies.dir.name");
                  • 24
                    var testName = selenium.getTestName();
                  • 26
                    var testName = StringUtil.extractLast(${testName}, ".");
                  • 28
                    var testName = StringUtil.extractFirst(${testName}, "#");
                  • 30
                    var testFileName = StringUtil.split("**/${testName}.testcase");
                  • 32
                    var testFilePaths = FileUtil.getIncludedResourceURLs(${testFileName}, "${projectDir}/portal-web");
                  • 34
                    var testFilePaths = StringUtil.valueOf(${testFilePaths});
                  • 36
                    if (${testFilePaths} == "[]") {
                    • 37
                      var testFilePaths = FileUtil.getIncludedResourceURLs(${testFileName}, "${projectDir}/modules");
                    • 39
                      var testFilePaths = StringUtil.valueOf(${testFilePaths});
                    }
                  • 42
                    var testFilePath = RegexUtil.replace(${testFilePaths}, "\[(.*)\]", 1);
                  • 44
                    var testFilePath = StringUtil.extractLast(${testFilePath}, "file:");
                  • 45
                    var os = OSDetector.isWindows();
                  • 47
                    if ((${os} == "true") && contains(${testFilePath}, ":")) {
                    • 48
                      var testFilePath = StringUtil.replaceFirst(${testFilePath}, "/", "");
                    }
                  • 51
                    var testFileParentDir = StringUtil.extractFirst(${testFilePath}, "${testName}.testcase");
                  • 53
                    var dependenciesDir = "${testFileParentDir}${testDependenciesDir}";
                  • 55
                    if (isSet(filePath)) {
                    • 56
                      var dependenciesDir = "${dependenciesDir}/${filePath}";
                    }
                  • 59
                    var dependencyFilePath = "${dependenciesDir}/${fileName}";
                  • 61
                    var fileExists = FileUtil.exists(${dependencyFilePath});
                  • 63
                    if (${fileExists} == "false") {
                    • 64
                      var testBaseDirEndsWith = StringUtil.endsWith(${testBaseDir}, "/");
                    • 66
                      if (${testBaseDirEndsWith} == "false") {
                      • 67
                        var testBaseDir = "${testBaseDir}/";
                      }
                    • 70
                      var dependencyFilePath = "${testBaseDir}${testDependenciesDir}/${fileName}";
                    • 72
                      var globalFileExists = FileUtil.exists(${dependencyFilePath});
                    • 74
                      if (${globalFileExists} == "false") {
                      • 75
                        fail("Unable to find dependency file at ${dependenciesDir}/${fileName} or ${dependencyFilePath}");
                      }
                    }
                  • 79
                    return ${dependencyFilePath};
                • 82
                  UploadFile( inputFieldId = "importScript", locator1 = "TextInput#INPUT_ID", value1 = ${filePath});
                • 87
                  Click(locator1 = "Icon#HEADER_VERTICAL_ELLIPSIS");
                }
          • 107
            DDLDataDefinition.save(publicationsEnabled = ${publicationsEnabled});
            • 3
              var ddlDataDefinitionDescription = "Data Definition Description";
            • 4
              var ddlDataDefinitionName = "Data Definition Name";
            • 5
              var ddlListName = "List Name";
            • 204
              Click.mouseDownMouseUp(locator1 = "//span[contains(@class,'btn')][normalize-space(text())='Save']/..");
            • 206
              Alert.viewSuccessMessage();
              • 138
                VerifyElementPresent(locator1 = "Message#SUCCESS_DISMISSIBLE");
        }
      • 283
        task ("Add a web content based on new structure via Web Content Display") {
        • 284
          Navigator.gotoSitePage( pageName = "Test Page Name", siteName = "Test Site Name");
          • 185
            Navigator.openSiteURL( baseURL = ${baseURL}, siteName = ${siteName});
            • 303
              var siteNameURL = StringUtil.replace(${siteName}, " ", "-");
            • 305
              var siteNameURL = StringUtil.lowerCase(${siteNameURL});
            • 306
              var baseURL = ${baseURL};
            • 308
              if (!(isSet(baseURL))) {
              • 309
                var baseURL = PropsUtil.get("portal.url");
              }
            • 312
              Open(locator1 = "${baseURL}/web/${siteNameURL}");
          • 189
            Navigator._gotoPage(pageName = ${pageName});
            • 4
              var key_pageName = ${pageName};
            • 5
              var count = 0;
            • 7
              while ((${count} != 3) && (IsElementNotPresent(locator1 = "Home#PAGE_ACTIVE"))) {
              • 8
                AssertClick.assertPartialTextClickAt( locator1 = "Home#PAGE", value1 = ${pageName});
              • 12
                var count = ${count} + 1;
              }
            • 15
              AssertVisible(locator1 = "Home#PAGE_ACTIVE");
        • 288
          var content = '''Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1''';
        • 291
          WebContentDisplayPortlet.add( fieldLabelList = "Text,Text Box", structureName = "WC Structure Name", webContentTextMultipleLines = ${content}, webContentTextSingleLine = "WC WebContent Text", webContentTitle = "WC WebContent Title");
          • 4
            WebContentDisplayPortletNavigator.gotoAdd( portletNameScoped = ${portletNameScoped}, structureName = ${structureName});
            • 4
              var portletName = "Web Content Display";
            • 6
              if (isSet(portletNameScoped)) {
              • 7
                var portletName = ${portletNameScoped};
              }
            • 10
              if (isSet(portletNameTranslation)) {
              • 11
                var portletName = ${portletNameTranslation};
              }
            • 14
              Portlet.clickPortletPlusIconPG(portletName = ${portletName});
              • 158
                var browserType = PropsUtil.get("browser.type");
              • 159
                var key_portletName = ${portletName};
              • 161
                if (${browserType} == "safari") {
                • 162
                  Click.javaScriptClick(locator1 = "Portlet#ICON_PLUS_SIGN");
                • 164
                  AssertVisible(locator1 = "Portlet#ICON_PLUS_SIGN");
                }
              • 166
                else {
                • 167
                  MouseOver.javaScriptMouseOver( key_portletName = ${portletName}, locator1 = "Portlet#ICON_PLUS_SIGN");
                • 171
                  Click.javaScriptClick( key_portletName = ${portletName}, locator1 = "Portlet#ICON_PLUS_SIGN");
                }
            • 16
              if (isSet(structureName)) {
              • 17
                var structureName = ${structureName};
              }
            • 19
              else {
              • 20
                var structureName = "Basic Web Content";
              }
            • 23
              Click( key_menuItem = ${structureName}, locator1 = "MenuItem#ANY_MENU_ITEM");
            • 27
              AssertVisible(locator1 = "TextInput#TITLE");
            • 29
              WaitForVisible(locator1 = "WCEditWebContent#SIDEBAR");
          • 8
            WebContent.addCP( embedImage = ${embedImage}, imageFileName = ${imageFileName}, siteName = ${siteName}, source = ${source}, webContentContent = ${webContentContent}, webContentTitle = ${webContentTitle});
            • 14
              AssertVisible(locator1 = "WCEditWebContent#SIDEBAR");
            • 16
              if (isSet(webContentTitle)) {
              • 17
                PortletEntry.inputTitle(title = ${webContentTitle});
                • 139
                  Type( locator1 = "TextInput#TITLE", value1 = ${title});
              }
            • 20
              if (isSet(webContentContent)) {
              • 21
                if (isSet(source)) {
                • 22
                  CKEditor.addSourceContent(content = ${webContentContent});
                  • 69
                    Click(locator1 = "CKEditor#TOOLBAR_SOURCE_BUTTON");
                  • 71
                    Type.typeCodeMirrorEditorNoError( locator1 = "CKEditor#BODY_FIELD_SOURCE_ON", value1 = ${content});
                }
              • 24
                else {
                • 25
                  CKEditor.addContentInWebContent( content = ${webContentContent}, fieldLabel = "Content");
                  • 21
                    SelectFrame.selectFrameNoLoading( key_fieldLabel = ${fieldLabel}, locator1 = "CKEditor#BODY_FIELD_IFRAME_WEB_CONTENT_ARTICLE");
                  • 25
                    Type( locator1 = "CKEditor#BODY", value1 = ${content});
                  • 29
                    SelectFrame(value1 = "relative=top");
                }
              }
            • 31
              if (isSet(webContentDescription)) {
              • 32
                CKEditor.addContentInWebContent( content = ${webContentDescription}, fieldLabel = "Description");
                • 21
                  SelectFrame.selectFrameNoLoading( key_fieldLabel = ${fieldLabel}, locator1 = "CKEditor#BODY_FIELD_IFRAME_WEB_CONTENT_ARTICLE");
                • 25
                  Type( locator1 = "CKEditor#BODY", value1 = ${content});
                • 29
                  SelectFrame(value1 = "relative=top");
              }
            • 37
              if (isSet(embedImage)) {
              • 38
                var key_imageFileName = ${imageFileName};
              • 40
                ItemSelector.gotoItemSelectorViaCKEditor();
                • 244
                  if (isSet(video)) {
                  • 245
                    WaitForLiferayEvent.initializeLiferayEventLog();
                  • 247
                    Click(locator1 = "CKEditor#TOOLBAR_VIDEO_BUTTON");
                  }
                • 249
                  else {
                  • 250
                    Click(locator1 = "CKEditor#TOOLBAR_IMAGE_BUTTON");
                  • 252
                    SelectFrame(value1 = "relative=top");
                  }
              • 42
                if (isSet(uploadFileName)) {
                • 43
                  ItemSelector.uploadFile( navTab = ${navTab}, uploadFileName = ${uploadFileName});
                  • 553
                    var key_navTab = ${navTab};
                  • 554
                    var key_uploadFileName = ${uploadFileName};
                  • 556
                    SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                  • 558
                    if (IsElementPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB")) {
                    • 559
                      AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                    }
                  • 564
                    UploadCommonFile.uploadCommonFileHiddenNoMouseOver( locator1 = "TextInput#FILE", value1 = ${uploadFileName});
                  • 568
                    if (isSet(invalidFileValidation)) {
                    • 569
                      AssertTextEquals( locator1 = "Message#ERROR_FORM_FIELD_REQUIRED", value1 = ${invalidFileValidation});
                    • 573
                      AssertElementNotPresent( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                    • 577
                      SelectFrame(value1 = "relative=top");
                    • 579
                      Click.clickNoMouseOver(locator1 = "Modal#CLOSE_BUTTON");
                    }
                  • 581
                    else {
                    • 582
                      WaitForVisible(locator1 = "ItemSelector#ADD_BUTTON");
                    • 584
                      AssertClick( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                    • 588
                      SelectFrameTop();
                    }
                • 47
                  SelectFrameTop();
                }
              • 49
                else if (isSet(imageSourceURL)) {
                • 50
                  ItemSelector.addImageFromURL( imageSourceURL = ${imageSourceURL}, navTab = "URL");
                  • 32
                    var key_imageSourceURL = ${imageSourceURL};
                  • 33
                    var key_navTab = ${navTab};
                  • 35
                    SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                  • 37
                    if (isSet(wikiAdmin)) {
                    • 38
                      AssertElementNotPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB");
                    }
                  • 40
                    else {
                    • 41
                      AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = "URL");
                    }
                  • 46
                    AssertElementPresent(locator1 = "ItemSelector#URL_LABEL");
                  • 48
                    AssertElementNotPresent(locator1 = "ItemSelector#URL_IMAGE_PREVIEW");
                  • 50
                    AssertVisible( key_text = "Add", locator1 = "Button#ANY_DISABLED");
                  • 54
                    Type( locator1 = "TextInput#URL", value1 = ${imageSourceURL});
                  • 58
                    AssertTextEquals( locator1 = "TextInput#URL", value1 = ${imageSourceURL});
                  • 62
                    if (contains(${imageSourceURL}, "/documents/")) {
                    • 63
                      AssertVisible(locator1 = "ItemSelector#URL_IMAGE_SOURCE");
                    • 65
                      if (IsElementPresent(locator1 = "ItemSelector#URL_IMAGE_EXAMPLE")) {
                      • 66
                        Click(locator1 = "ItemSelector#URL_IMAGE_EXAMPLE");
                      }
                    }
                  • 70
                    WaitForElementPresent( key_text = "Add", locator1 = "Button#ANY_ENABLED");
                  • 74
                    Button.clickAdd();
                    • 10
                      Button.click(button = "Add");
                      • 4
                        Click.mouseDownMouseUp( key_text = ${button}, locator1 = "Button#ANY");
                    • 12
                      SelectFrameTop();
                    • 14
                      if (IsElementPresent(locator1 = "Modal#MODAL_SHOW")) {
                      • 15
                        SelectFrame(locator1 = "IFrame#MODAL_BODY");
                      }
                  • 76
                    SelectFrameTop(value1 = "relative=top");
                }
              • 54
                else {
                • 55
                  SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                • 57
                  AssertClick( key_breadcrumbName = "Sites and Libraries", locator1 = "Breadcrumb#BREADCRUMB_ENTRY", value1 = "Sites and Libraries");
                • 62
                  if (isSet(depotName)) {
                  • 63
                    AssertClick( key_groupTab = "Asset Library", locator1 = "ItemSelector#NAVIGATION_GROUP_TAB", value1 = "Asset Library");
                  • 68
                    LexiconCard.clickCard(card = ${depotName});
                    • 14
                      WaitForLiferayEvent.initializeLiferayEventLog();
                    • 16
                      WaitForPageLoad();
                    • 18
                      Click( key_card = ${card}, locator1 = "Card#CARD");
                  }
                • 70
                  else {
                  • 71
                    LexiconCard.clickCard(card = ${siteName});
                    • 14
                      WaitForLiferayEvent.initializeLiferayEventLog();
                    • 16
                      WaitForPageLoad();
                    • 18
                      Click( key_card = ${card}, locator1 = "Card#CARD");
                  }
                • 74
                  if (isSet(folderName)) {
                  • 75
                    LexiconCard.clickCard(card = ${folderName});
                    • 14
                      WaitForLiferayEvent.initializeLiferayEventLog();
                    • 16
                      WaitForPageLoad();
                    • 18
                      Click( key_card = ${card}, locator1 = "Card#CARD");
                  }
                • 78
                  if (isSet(pendingEntry)) {
                  • 79
                    AssertElementNotPresent(locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
                  }
                • 81
                  else {
                  • 82
                    Click(locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
                  }
                }
              • 86
                SelectFrameTop();
              }
            • 89
              if (isSet(embedVideo)) {
              • 90
                WaitForPageLoad();
              • 92
                Click(locator1 = "CKEditor#TOOLBAR_VIDEO_BUTTON");
              • 94
                if (${navTab} == "Documents and Media") {
                • 95
                  ItemSelector.addVideoFromDM( depotName = ${depotName}, navTab = ${navTab}, videoShortcutTitle = ${videoShortcutTitle});
                  • 102
                    SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                  • 104
                    AssertClick( key_navTab = ${navTab}, locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                  • 109
                    if (isSet(depotName)) {
                    • 110
                      AssertClick( key_breadcrumbName = "Sites and Libraries", locator1 = "Breadcrumb#BREADCRUMB_ENTRY", value1 = "Sites and Libraries");
                    • 115
                      AssertClick( key_groupTab = "Asset Library", locator1 = "ItemSelector#NAVIGATION_GROUP_TAB", value1 = "Asset Library");
                    • 120
                      LexiconCard.clickCard(card = ${depotName});
                      • 14
                        WaitForLiferayEvent.initializeLiferayEventLog();
                      • 16
                        WaitForPageLoad();
                      • 18
                        Click( key_card = ${card}, locator1 = "Card#CARD");
                    }
                  • 123
                    if (isSet(videoShortcutPreview)) {
                    • 124
                      Click( key_cardTitle = ${videoShortcutTitle}, locator1 = "Icon#EYE_PREVIEW_SPECIFIC");
                    • 128
                      AssertVisible( key_videoShortcutPreview = ${videoShortcutPreview}, locator1 = "DocumentsAndMediaDocument#VIDEO_SHORTCUT_PREVIEW");
                    • 132
                      AssertTextEquals( key_imageFileName = ${videoShortcutTitle}, locator1 = "ItemSelector#VIEWER_FOOTER_IMAGE", value1 = ${videoShortcutTitle});
                    • 137
                      AssertClick( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                    }
                  • 141
                    else {
                    • 142
                      Click( key_imageFileName = ${videoShortcutTitle}, locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
                    }
                  • 147
                    SelectFrameTop(value1 = "relative=top");
                }
              • 100
                else {
                • 101
                  ItemSelector.addVideoFromURL( navTab = ${navTab}, videoSourceURL = ${embedVideo});
                  • 151
                    var key_navTab = ${navTab};
                  • 153
                    SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                  • 155
                    AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = "URL");
                  • 159
                    AssertElementPresent(locator1 = "ItemSelector#URL_LABEL");
                  • 161
                    AssertElementNotPresent(locator1 = "IFrame#EXTERNAL_VIDEO_IFRAME");
                  • 163
                    Type( locator1 = "TextInput#VIDEO_URL", value1 = ${videoSourceURL});
                  • 167
                    if (!(isSet(unpublish))) {
                    • 168
                      WaitForVisible( key_text = "Add", locator1 = "Button#ANY_ENABLED");
                    • 172
                      Button.clickAdd();
                      • 10
                        Button.click(button = "Add");
                        • 4
                          Click.mouseDownMouseUp( key_text = ${button}, locator1 = "Button#ANY");
                      • 12
                        SelectFrameTop();
                      • 14
                        if (IsElementPresent(locator1 = "Modal#MODAL_SHOW")) {
                        • 15
                          SelectFrame(locator1 = "IFrame#MODAL_BODY");
                        }
                    }
                  • 175
                    SelectFrameTop(value1 = "relative=top");
                }
              }
            • 107
              if (isSet(viewableBy)) {
              • 108
                Panel.expandPanel(panel = "Permissions");
                • 22
                  Portlet.waitForForm();
                  • 902
                    AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
                • 24
                  var key_panel = ${panel};
                • 26
                  AssertVisible( key_panel = ${panel}, locator1 = "Panel#PANEL");
                • 30
                  if ((IsElementPresent(locator1 = "Panel#PANEL_COLLAPSED")) && (IsVisible(locator1 = "Panel#PANEL_COLLAPSED"))) {
                  • 31
                    AssertClick( locator1 = "Panel#PANEL_COLLAPSED", value1 = ${panel});
                  }
                • 36
                  AssertElementPresent(locator1 = "Panel#PANEL_EXPANDED");
              • 110
                Select( locator1 = "Select#PERMISSIONS", value1 = ${viewableBy});
              }
            • 115
              if (isSet(webContentId)) {
              • 116
                Uncheck(locator1 = "WCEditWebContent#AUTOGENERATEID");
              • 118
                Type( locator1 = "WCEditWebContent#WEB_CONTENT_ID", value1 = ${webContentId});
              }
          • 16
            if (isSet(structureName)) {
            • 17
              for (var fieldLabel : list ${fieldLabelList}) {
              • 18
                if (${fieldLabel} == "Text Box") {
                • 19
                  WebContent.addWithStructureCP( fieldType = "Multiple Lines", webContentText = ${webContentTextMultipleLines}, webContentTextFieldLabel = "Text Box");
                  • 461
                    AssertVisible(locator1 = "WCEditWebContent#SIDEBAR");
                  • 463
                    if (isSet(webContentTitle)) {
                    • 464
                      PortletEntry.inputTitle(title = ${webContentTitle});
                      • 139
                        Type( locator1 = "TextInput#TITLE", value1 = ${title});
                    }
                  • 467
                    if (isSet(webContentColor)) {
                    • 468
                      if (!(isSet(webContentColorFieldLabel))) {
                      • 469
                        var webContentColorFieldLabel = "Color";
                      }
                    • 472
                      Click( key_fieldFieldLabel = ${webContentColorFieldLabel}, locator1 = "WCEditWebContent#COLOR_PICKER");
                    • 476
                      Click( key_colorSwatchItem = "#${webContentColor}", locator1 = "Button#COLOR_SWATCH_ITEM");
                    }
                  • 481
                    if (isSet(webContentDate)) {
                    • 482
                      if (!(isSet(webContentDateFieldLabel))) {
                      • 483
                        var webContentDateFieldLabel = "Date";
                      }
                    • 486
                      Type( key_fieldFieldLabel = ${webContentDateFieldLabel}, locator1 = "WCEditWebContent#DATE_INPUT", value1 = ${webContentDate});
                    }
                  • 492
                    if (isSet(webContentGeolocation)) {
                    • 493
                      var lat = StringUtil.extractFirst(${webContentGeolocation}, ",");
                    • 494
                      var lng = StringUtil.extractLast(${webContentGeolocation}, ",");
                    • 496
                      Geolocation.setMarkerPosition( lat = ${lat}, lng = ${lng});
                      • 21
                        WaitForVisible(locator1 = "DDMField#GEOLOCATION_MAP");
                      • 23
                        if (IsElementPresent(locator1 = "//div[contains(@class,'ddm-geolocation')]")) {
                        • 24
                          var javascript = ''' Liferay.MapBase.get(document.evaluate("//div[contains(@class,'form-group')][*//div[contains(@class,'lfr-map')]]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.dataset.fieldName.replace('$$en_US', '').replace('ddm', 'map'), (map) => map.position = {location: {lat: ${lat}, lng: ${lng}}}) ''';
                        • 28
                          var result = selenium.getEval(${javascript});
                        }
                      • 30
                        else if (IsElementPresent(locator1 = "//div[contains(@id,'Location')]")) {
                        • 31
                          var javascript = ''' Liferay.MapBase.get(document.evaluate("//div[contains(@class,'lfr-map')]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.id.replace('Map', ''), (map) => map.position = {location: {lat: ${lat}, lng: ${lng}}}) ''';
                        • 35
                          var result = selenium.getEval(${javascript});
                        }
                    }
                  • 501
                    if (isSet(webContentGrid)) {
                    • 502
                      if (!(isSet(webContentGridFieldLabel))) {
                      • 503
                        var webContentGridFieldLabel = "Grid";
                      }
                    • 506
                      var column = ${column} + 1;
                    • 508
                      Check.checkNotVisible( key_column = ${column}, key_fieldFieldLabel = ${webContentGridFieldLabel}, key_row = ${row}, locator1 = "WCEditWebContent#GRID_OPTION");
                    }
                  • 515
                    if (isSet(webContentImage)) {
                    • 516
                      if (!(isSet(webContentImageFieldLabel))) {
                      • 517
                        var webContentImageFieldLabel = "Image";
                      }
                    • 520
                      WaitForLiferayEvent.initializeLiferayEventLog();
                    • 522
                      Click( fieldLabel = ${webContentImageFieldLabel}, locator1 = "Button#BUTTON_LABEL", text = "Select");
                    • 527
                      if (${navTab} == "Documents and Media") {
                      • 528
                        if (isSet(depotName)) {
                        • 529
                          ItemSelector.selectRepositoryImage( depotName = ${depotName}, folderName = ${folderName}, imageFileName = ${webContentImage}, navTab = ${navTab});
                          • 500
                            var key_imageFileName = ${imageFileName};
                          • 502
                            ItemSelector.changeWorkspaces( customImage = ${customImage}, navTab = ${navTab}, workspacesType = "Asset Library");
                            • 179
                              if (!(isSet(customImage))) {
                              • 180
                                SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                              }
                            • 183
                              if (isSet(navTab)) {
                              • 184
                                AssertClick( key_navTab = ${navTab}, locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                              }
                            • 190
                              AssertClick( key_breadcrumbName = "Sites and Libraries", locator1 = "Breadcrumb#BREADCRUMB_ENTRY", value1 = "Sites and Libraries");
                            • 195
                              AssertClick( key_groupTab = ${workspacesType}, locator1 = "ItemSelector#NAVIGATION_GROUP_TAB", value1 = ${workspacesType});
                          • 507
                            LexiconCard.clickCard(card = ${depotName});
                            • 14
                              WaitForLiferayEvent.initializeLiferayEventLog();
                            • 16
                              WaitForPageLoad();
                            • 18
                              Click( key_card = ${card}, locator1 = "Card#CARD");
                          • 509
                            if (isSet(folderName)) {
                            • 510
                              LexiconCard.clickCard(card = ${folderName});
                              • 14
                                WaitForLiferayEvent.initializeLiferayEventLog();
                              • 16
                                WaitForPageLoad();
                              • 18
                                Click( key_card = ${card}, locator1 = "Card#CARD");
                            }
                          • 513
                            if (isSet(noViewPermission)) {
                            • 514
                              AssertElementNotPresent(locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
                            }
                          • 516
                            else {
                            • 517
                              Click(locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
                            }
                          • 520
                            SelectFrameTop();
                        }
                      • 535
                        else if (isSet(imageFileName)) {
                        • 536
                          ItemSelector.selectDMImage( imageFileName = ${webContentImage}, navTab = ${navTab});
                          • 465
                            var key_navTab = ${navTab};
                          • 466
                            var key_uploadFileName = ${imageFileName};
                          • 468
                            SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                          • 470
                            if (IsElementPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB")) {
                            • 471
                              AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                            }
                          • 476
                            if (isSet(dmFolderName)) {
                            • 477
                              var key_dmFolderName = ${dmFolderName};
                            • 479
                              AssertClick( locator1 = "DocumentsAndMedia#ICON_FOLDER_TITLE", value1 = ${dmFolderName});
                            }
                          • 484
                            if (isSet(dmSubFolderName)) {
                            • 485
                              var key_dmFolderName = ${dmSubFolderName};
                            • 487
                              AssertClick( locator1 = "DocumentsAndMedia#ICON_FOLDER_TITLE", value1 = ${dmSubFolderName});
                            }
                          • 492
                            var key_imageFileName = StringUtil.replace(${imageFileName}, " ", "+");
                          • 494
                            LexiconCard.clickCard(card = ${imageFileName});
                            • 14
                              WaitForLiferayEvent.initializeLiferayEventLog();
                            • 16
                              WaitForPageLoad();
                            • 18
                              Click( key_card = ${card}, locator1 = "Card#CARD");
                          • 496
                            SelectFrameTop();
                        }
                      • 540
                        else {
                        • 541
                          ItemSelector.uploadFile( navTab = ${navTab}, uploadFileName = ${webContentImage});
                          • 553
                            var key_navTab = ${navTab};
                          • 554
                            var key_uploadFileName = ${uploadFileName};
                          • 556
                            SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                          • 558
                            if (IsElementPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB")) {
                            • 559
                              AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                            }
                          • 564
                            UploadCommonFile.uploadCommonFileHiddenNoMouseOver( locator1 = "TextInput#FILE", value1 = ${uploadFileName});
                          • 568
                            if (isSet(invalidFileValidation)) {
                            • 569
                              AssertTextEquals( locator1 = "Message#ERROR_FORM_FIELD_REQUIRED", value1 = ${invalidFileValidation});
                            • 573
                              AssertElementNotPresent( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                            • 577
                              SelectFrame(value1 = "relative=top");
                            • 579
                              Click.clickNoMouseOver(locator1 = "Modal#CLOSE_BUTTON");
                            }
                          • 581
                            else {
                            • 582
                              WaitForVisible(locator1 = "ItemSelector#ADD_BUTTON");
                            • 584
                              AssertClick( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                            • 588
                              SelectFrameTop();
                            }
                        }
                      }
                    • 546
                      else if (${navTab} == "Web Content Images") {
                      • 547
                        ItemSelector.uploadFile( navTab = ${navTab}, uploadFileName = ${webContentImage});
                        • 553
                          var key_navTab = ${navTab};
                        • 554
                          var key_uploadFileName = ${uploadFileName};
                        • 556
                          SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                        • 558
                          if (IsElementPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB")) {
                          • 559
                            AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                          }
                        • 564
                          UploadCommonFile.uploadCommonFileHiddenNoMouseOver( locator1 = "TextInput#FILE", value1 = ${uploadFileName});
                        • 568
                          if (isSet(invalidFileValidation)) {
                          • 569
                            AssertTextEquals( locator1 = "Message#ERROR_FORM_FIELD_REQUIRED", value1 = ${invalidFileValidation});
                          • 573
                            AssertElementNotPresent( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                          • 577
                            SelectFrame(value1 = "relative=top");
                          • 579
                            Click.clickNoMouseOver(locator1 = "Modal#CLOSE_BUTTON");
                          }
                        • 581
                          else {
                          • 582
                            WaitForVisible(locator1 = "ItemSelector#ADD_BUTTON");
                          • 584
                            AssertClick( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                          • 588
                            SelectFrameTop();
                          }
                      }
                    • 552
                      if (isSet(webContentImageDescription)) {
                      • 553
                        Type( key_fieldFieldLabel = ${webContentImageFieldLabel}, locator1 = "WCEditWebContent#IMAGE_DESCRIPTION", value1 = ${webContentImageDescription});
                      }
                    }
                  • 560
                    if (isSet(webContentLinkToPage)) {
                    • 561
                      if (!(isSet(webContentLinkToPageFieldLabel))) {
                      • 562
                        var webContentLinkToPageFieldLabel = "Link to Page";
                      }
                    • 565
                      WaitForLiferayEvent.initializeLiferayEventLog();
                    • 567
                      Click( fieldLabel = ${webContentLinkToPageFieldLabel}, locator1 = "Button#BUTTON_LABEL", text = "Select");
                    • 572
                      SelectFrame(locator1 = "IFrame#MODAL_BODY");
                    • 574
                      Portlet.expandTree();
                      • 501
                        WaitForVisible(locator1 = "Treeview#NODE_LIST");
                      • 503
                        while (IsElementPresent(locator1 = "Treeview#NODE_COLLAPSED")) {
                        • 504
                          Click(locator1 = "Treeview#NODE_COLLAPSED");
                        }
                      • 507
                        AssertElementNotPresent(locator1 = "Treeview#NODE_COLLAPSED");
                    • 576
                      Click( key_nodeName = ${webContentLinkToPage}, locator1 = "Treeview#NODE_UNSELECTED");
                    • 580
                      SelectFrameTop();
                    }
                  • 583
                    if (isSet(webContentMultipleSelection)) {
                    • 584
                      if (!(isSet(webContentMultipleSelectionFieldLabel))) {
                      • 585
                        var webContentMultipleSelectionFieldLabel = "Multiple Selection";
                      }
                    • 588
                      Check.checkNotVisible( key_fieldFieldLabel = ${webContentMultipleSelectionFieldLabel}, key_optionValue = ${webContentMultipleSelection}, locator1 = "WCEditWebContent#SELECTION_OPTION");
                    }
                  • 594
                    if (isSet(webContentNumeric)) {
                    • 595
                      if (!(isSet(webContentNumericFieldLabel))) {
                      • 596
                        var webContentNumericFieldLabel = "Numeric";
                      }
                    • 599
                      TripleClick( key_fieldFieldLabel = ${webContentNumericFieldLabel}, locator1 = "WCEditWebContent#TEXT_INPUT");
                    • 603
                      Type.sendKeys( key_fieldFieldLabel = ${webContentNumericFieldLabel}, locator1 = "WCEditWebContent#TEXT_INPUT", value1 = ${webContentNumeric});
                    }
                  • 609
                    if (isSet(webContentRichText)) {
                    • 610
                      if (!(isSet(webContentRichTextFieldLabel))) {
                      • 611
                        var webContentRichTextFieldLabel = "Rich Text";
                      }
                    • 614
                      if (isSet(source)) {
                      • 615
                        Click( key_fieldFieldLabel = ${webContentRichTextFieldLabel}, locator1 = "WCEditWebContent#SOURCE_BUTTON");
                      • 619
                        Type.typeCodeMirrorEditorNoError( locator1 = "CKEditor#BODY_FIELD_SOURCE_ON", value1 = ${webContentRichText});
                      }
                    • 623
                      else {
                      • 624
                        CKEditor.addContentInWebContent( content = ${webContentRichText}, fieldLabel = ${webContentRichTextFieldLabel});
                        • 21
                          SelectFrame.selectFrameNoLoading( key_fieldLabel = ${fieldLabel}, locator1 = "CKEditor#BODY_FIELD_IFRAME_WEB_CONTENT_ARTICLE");
                        • 25
                          Type( locator1 = "CKEditor#BODY", value1 = ${content});
                        • 29
                          SelectFrame(value1 = "relative=top");
                      }
                    }
                  • 630
                    if (isSet(webContentSelectFromList)) {
                    • 631
                      if (!(isSet(webContentSelectFromListFieldLabel))) {
                      • 632
                        var webContentSelectFromListFieldLabel = "Select from List";
                      }
                    • 635
                      Click( key_fieldFieldLabel = ${webContentSelectFromListFieldLabel}, locator1 = "WCEditWebContent#SELECT_FIELD_TRIGGER");
                    • 639
                      DropdownMenuItem.click(menuItem = ${webContentSelectFromList});
                      • 4
                        Click( key_menuItem = ${menuItem}, locator1 = "MenuItem#DROPDOWN_MENU_ITEM");
                    }
                  • 642
                    if (isSet(webContentSingleSelection)) {
                    • 643
                      if (!(isSet(webContentSingleSelectionFieldLabel))) {
                      • 644
                        var webContentSingleSelectionFieldLabel = "Single Selection";
                      }
                    • 647
                      Check.checkNotVisible( key_fieldFieldLabel = ${webContentSingleSelectionFieldLabel}, key_optionValue = ${webContentSingleSelection}, locator1 = "WCEditWebContent#SELECTION_OPTION");
                    }
                  • 653
                    if (isSet(webContentText)) {
                    • 654
                      if (!(isSet(webContentTextFieldLabel))) {
                      • 655
                        var webContentTextFieldLabel = "Text";
                      }
                    • 658
                      if (${fieldType} == "Multiple Lines") {
                      • 659
                        Type( key_fieldFieldLabel = ${webContentTextFieldLabel}, locator1 = "DDMField#MULTIPLE_LINES", value1 = ${webContentText});
                      }
                    • 664
                      else {
                      • 665
                        Type( key_fieldFieldLabel = ${webContentTextFieldLabel}, locator1 = "WCEditWebContent#TEXT_INPUT", value1 = ${webContentText});
                      }
                    • 671
                      if (isSet(duplicateField)) {
                      • 672
                        Click(locator1 = "FormFields#FIELD_ADD_DUPLICATE");
                      • 674
                        Type( key_fieldFieldLabel = ${webContentTextFieldLabel}, locator1 = "WCEditWebContent#TEXT_INPUT_2", value1 = "${webContentText} Duplicate Field");
                      }
                    }
                  • 681
                    if (isSet(webContentUpload)) {
                    • 682
                      if (!(isSet(webContentUploadFieldLabel))) {
                      • 683
                        var webContentUploadFieldLabel = "Upload";
                      }
                    • 686
                      WaitForLiferayEvent.initializeLiferayEventLog();
                    • 688
                      Click( fieldLabel = ${webContentUploadFieldLabel}, locator1 = "Button#BUTTON_LABEL", text = "Select");
                    • 693
                      if (${dmNavTab} == "Documents and Media") {
                      • 694
                        if (isSet(depotName)) {
                        • 695
                          ItemSelector.selectRepositoryImage( depotName = ${depotName}, folderName = ${folderName}, imageFileName = ${webContentUpload}, navTab = ${dmNavTab});
                          • 500
                            var key_imageFileName = ${imageFileName};
                          • 502
                            ItemSelector.changeWorkspaces( customImage = ${customImage}, navTab = ${navTab}, workspacesType = "Asset Library");
                            • 179
                              if (!(isSet(customImage))) {
                              • 180
                                SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                              }
                            • 183
                              if (isSet(navTab)) {
                              • 184
                                AssertClick( key_navTab = ${navTab}, locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                              }
                            • 190
                              AssertClick( key_breadcrumbName = "Sites and Libraries", locator1 = "Breadcrumb#BREADCRUMB_ENTRY", value1 = "Sites and Libraries");
                            • 195
                              AssertClick( key_groupTab = ${workspacesType}, locator1 = "ItemSelector#NAVIGATION_GROUP_TAB", value1 = ${workspacesType});
                          • 507
                            LexiconCard.clickCard(card = ${depotName});
                            • 14
                              WaitForLiferayEvent.initializeLiferayEventLog();
                            • 16
                              WaitForPageLoad();
                            • 18
                              Click( key_card = ${card}, locator1 = "Card#CARD");
                          • 509
                            if (isSet(folderName)) {
                            • 510
                              LexiconCard.clickCard(card = ${folderName});
                              • 14
                                WaitForLiferayEvent.initializeLiferayEventLog();
                              • 16
                                WaitForPageLoad();
                              • 18
                                Click( key_card = ${card}, locator1 = "Card#CARD");
                            }
                          • 513
                            if (isSet(noViewPermission)) {
                            • 514
                              AssertElementNotPresent(locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
                            }
                          • 516
                            else {
                            • 517
                              Click(locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
                            }
                          • 520
                            SelectFrameTop();
                        }
                      • 701
                        else if (isSet(dmDocumentTitle)) {
                        • 702
                          ItemSelector.selectDMImage( imageFileName = ${dmDocumentTitle}, navTab = ${dmNavTab});
                          • 465
                            var key_navTab = ${navTab};
                          • 466
                            var key_uploadFileName = ${imageFileName};
                          • 468
                            SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                          • 470
                            if (IsElementPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB")) {
                            • 471
                              AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                            }
                          • 476
                            if (isSet(dmFolderName)) {
                            • 477
                              var key_dmFolderName = ${dmFolderName};
                            • 479
                              AssertClick( locator1 = "DocumentsAndMedia#ICON_FOLDER_TITLE", value1 = ${dmFolderName});
                            }
                          • 484
                            if (isSet(dmSubFolderName)) {
                            • 485
                              var key_dmFolderName = ${dmSubFolderName};
                            • 487
                              AssertClick( locator1 = "DocumentsAndMedia#ICON_FOLDER_TITLE", value1 = ${dmSubFolderName});
                            }
                          • 492
                            var key_imageFileName = StringUtil.replace(${imageFileName}, " ", "+");
                          • 494
                            LexiconCard.clickCard(card = ${imageFileName});
                            • 14
                              WaitForLiferayEvent.initializeLiferayEventLog();
                            • 16
                              WaitForPageLoad();
                            • 18
                              Click( key_card = ${card}, locator1 = "Card#CARD");
                          • 496
                            SelectFrameTop();
                        }
                      • 706
                        else {
                        • 707
                          ItemSelector.uploadFile( navTab = ${dmNavTab}, uploadFileName = ${webContentUpload});
                          • 553
                            var key_navTab = ${navTab};
                          • 554
                            var key_uploadFileName = ${uploadFileName};
                          • 556
                            SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                          • 558
                            if (IsElementPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB")) {
                            • 559
                              AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                            }
                          • 564
                            UploadCommonFile.uploadCommonFileHiddenNoMouseOver( locator1 = "TextInput#FILE", value1 = ${uploadFileName});
                          • 568
                            if (isSet(invalidFileValidation)) {
                            • 569
                              AssertTextEquals( locator1 = "Message#ERROR_FORM_FIELD_REQUIRED", value1 = ${invalidFileValidation});
                            • 573
                              AssertElementNotPresent( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                            • 577
                              SelectFrame(value1 = "relative=top");
                            • 579
                              Click.clickNoMouseOver(locator1 = "Modal#CLOSE_BUTTON");
                            }
                          • 581
                            else {
                            • 582
                              WaitForVisible(locator1 = "ItemSelector#ADD_BUTTON");
                            • 584
                              AssertClick( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                            • 588
                              SelectFrameTop();
                            }
                        }
                      }
                    • 712
                      else if (${dmNavTab} == "User Personal Folder") {
                      • 713
                        ItemSelector.uploadFile( navTab = ${dmNavTab}, uploadFileName = ${webContentUpload});
                        • 553
                          var key_navTab = ${navTab};
                        • 554
                          var key_uploadFileName = ${uploadFileName};
                        • 556
                          SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                        • 558
                          if (IsElementPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB")) {
                          • 559
                            AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                          }
                        • 564
                          UploadCommonFile.uploadCommonFileHiddenNoMouseOver( locator1 = "TextInput#FILE", value1 = ${uploadFileName});
                        • 568
                          if (isSet(invalidFileValidation)) {
                          • 569
                            AssertTextEquals( locator1 = "Message#ERROR_FORM_FIELD_REQUIRED", value1 = ${invalidFileValidation});
                          • 573
                            AssertElementNotPresent( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                          • 577
                            SelectFrame(value1 = "relative=top");
                          • 579
                            Click.clickNoMouseOver(locator1 = "Modal#CLOSE_BUTTON");
                          }
                        • 581
                          else {
                          • 582
                            WaitForVisible(locator1 = "ItemSelector#ADD_BUTTON");
                          • 584
                            AssertClick( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                          • 588
                            SelectFrameTop();
                          }
                      }
                    }
                  • 719
                    if (isSet(webContentWebContent)) {
                    • 720
                      if (!(isSet(webContentWebContentFieldLabel))) {
                      • 721
                        var webContentWebContentFieldLabel = "Web Content";
                      }
                    • 724
                      WaitForLiferayEvent.initializeLiferayEventLog();
                    • 726
                      Click( fieldLabel = ${webContentWebContentFieldLabel}, locator1 = "Button#BUTTON_LABEL", text = "Select");
                    • 731
                      if (isSet(depotName)) {
                      • 732
                        WebContent.selectRepositoryWC( available = ${available}, contentName = ${webContentWebContent}, depotName = ${depotName}, folderName = ${folderName});
                        • 1802
                          var key_contentName = ${contentName};
                        • 1804
                          ItemSelector.changeWorkspaces(workspacesType = "Asset Library");
                          • 179
                            if (!(isSet(customImage))) {
                            • 180
                              SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                            }
                          • 183
                            if (isSet(navTab)) {
                            • 184
                              AssertClick( key_navTab = ${navTab}, locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                            }
                          • 190
                            AssertClick( key_breadcrumbName = "Sites and Libraries", locator1 = "Breadcrumb#BREADCRUMB_ENTRY", value1 = "Sites and Libraries");
                          • 195
                            AssertClick( key_groupTab = ${workspacesType}, locator1 = "ItemSelector#NAVIGATION_GROUP_TAB", value1 = ${workspacesType});
                        • 1806
                          LexiconCard.clickCard(card = ${depotName});
                          • 14
                            WaitForLiferayEvent.initializeLiferayEventLog();
                          • 16
                            WaitForPageLoad();
                          • 18
                            Click( key_card = ${card}, locator1 = "Card#CARD");
                        • 1808
                          if (isSet(folderName)) {
                          • 1809
                            LexiconList.clickListEntryTitle(listEntry = ${folderName});
                            • 25
                              Click( key_listEntry = ${listEntry}, locator1 = "LexiconList#LIST_ENTRY_TITLE_LINK");
                          }
                        • 1812
                          if (${available} == "false") {
                          • 1813
                            AssertElementNotPresent(locator1 = "ItemSelector#SELECT_FILE_WEB_CONTENT");
                          }
                        • 1815
                          else {
                          • 1816
                            Click(locator1 = "ItemSelector#SELECT_FILE_WEB_CONTENT");
                          }
                      }
                    • 738
                      else if (isSet(otherSiteName)) {
                      • 739
                        SelectFrame(locator1 = "IFrame#MODAL_BODY");
                      • 741
                        AssertClick( key_breadcrumbName = "Sites and Libraries", locator1 = "Breadcrumb#BREADCRUMB_ENTRY_LINK", value1 = "Sites and Libraries");
                      • 746
                        AssertClick( key_siteName = ${otherSiteName}, locator1 = "ItemSelector#SITE_SELECTOR", value1 = ${otherSiteName});
                      • 751
                        AssertClick.assertPartialTextClickAt( key_listEntry = ${webContentWebContent}, locator1 = "LexiconList#LIST_ENTRY", value1 = ${webContentWebContent});
                      • 756
                        SelectFrame(value1 = "relative=top");
                      }
                    • 758
                      else {
                      • 759
                        SelectFrame(locator1 = "IFrame#MODAL_BODY");
                      • 761
                        AssertClick.assertPartialTextClickAt( key_listEntry = ${webContentWebContent}, locator1 = "LexiconList#LIST_ENTRY", value1 = ${webContentWebContent});
                      • 766
                        SelectFrame(value1 = "relative=top");
                      }
                    }
                  • 770
                    if (isSet(description)) {
                    • 771
                      CKEditor.addContentInWebContent( content = ${description}, fieldLabel = "Description");
                      • 21
                        SelectFrame.selectFrameNoLoading( key_fieldLabel = ${fieldLabel}, locator1 = "CKEditor#BODY_FIELD_IFRAME_WEB_CONTENT_ARTICLE");
                      • 25
                        Type( locator1 = "CKEditor#BODY", value1 = ${content});
                      • 29
                        SelectFrame(value1 = "relative=top");
                    }
                  • 776
                    if (isSet(templateName)) {
                    • 777
                      SelectFrameTop();
                    • 779
                      Panel.expandPanel(panel = "Default Template");
                      • 22
                        Portlet.waitForForm();
                        • 902
                          AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
                      • 24
                        var key_panel = ${panel};
                      • 26
                        AssertVisible( key_panel = ${panel}, locator1 = "Panel#PANEL");
                      • 30
                        if ((IsElementPresent(locator1 = "Panel#PANEL_COLLAPSED")) && (IsVisible(locator1 = "Panel#PANEL_COLLAPSED"))) {
                        • 31
                          AssertClick( locator1 = "Panel#PANEL_COLLAPSED", value1 = ${panel});
                        }
                      • 36
                        AssertElementPresent(locator1 = "Panel#PANEL_EXPANDED");
                    • 781
                      if (IsTextNotEqual(inputFieldId = "ddmTemplateName", locator1 = "TextInput#INPUT_ID", value1 = ${templateName})) {
                      • 782
                        WebContent.selectTemplateCP( structureName = ${structureName}, templateName = ${templateName});
                        • 1821
                          ScrollBy(value1 = "0, 50");
                        • 1823
                          AssertTextEquals.assertPartialText( locator1 = "WCEditWebContent#SELECTED_STRUCTURE", value1 = ${structureName});
                        • 1827
                          Panel.expandPanel(panel = "Default Template");
                          • 22
                            Portlet.waitForForm();
                            • 902
                              AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
                          • 24
                            var key_panel = ${panel};
                          • 26
                            AssertVisible( key_panel = ${panel}, locator1 = "Panel#PANEL");
                          • 30
                            if ((IsElementPresent(locator1 = "Panel#PANEL_COLLAPSED")) && (IsVisible(locator1 = "Panel#PANEL_COLLAPSED"))) {
                            • 31
                              AssertClick( locator1 = "Panel#PANEL_COLLAPSED", value1 = ${panel});
                            }
                          • 36
                            AssertElementPresent(locator1 = "Panel#PANEL_EXPANDED");
                        • 1829
                          Click( buttonId = "selectDDMTemplate", locator1 = "Button#BUTTON_ID");
                        • 1833
                          IFrame.selectTopFrame();
                          • 60
                            SelectFrame(value1 = "relative=top");
                        • 1835
                          SelectFrame(locator1 = "IFrame#MODAL_BODY");
                        • 1837
                          if (isSet(confirm)) {
                          • 1838
                            LexiconCard.clickCard(card = ${templateName});
                            • 14
                              WaitForLiferayEvent.initializeLiferayEventLog();
                            • 16
                              WaitForPageLoad();
                            • 18
                              Click( key_card = ${card}, locator1 = "Card#CARD");
                          }
                        • 1840
                          else {
                          • 1841
                            LexiconCard.clickCardWithConfirmation(card = ${templateName});
                            • 36
                              ClickNoError( key_card = ${card}, locator1 = "Card#CARD");
                            • 40
                              Confirm();
                          }
                        • 1844
                          IFrame.selectTopFrame();
                          • 60
                            SelectFrame(value1 = "relative=top");
                        • 1846
                          WaitForPageLoad();
                        • 1848
                          Panel.expandPanel(panel = "Default Template");
                          • 22
                            Portlet.waitForForm();
                            • 902
                              AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
                          • 24
                            var key_panel = ${panel};
                          • 26
                            AssertVisible( key_panel = ${panel}, locator1 = "Panel#PANEL");
                          • 30
                            if ((IsElementPresent(locator1 = "Panel#PANEL_COLLAPSED")) && (IsVisible(locator1 = "Panel#PANEL_COLLAPSED"))) {
                            • 31
                              AssertClick( locator1 = "Panel#PANEL_COLLAPSED", value1 = ${panel});
                            }
                          • 36
                            AssertElementPresent(locator1 = "Panel#PANEL_EXPANDED");
                        • 1850
                          AssertTextEquals( inputFieldId = "ddmTemplateName", locator1 = "TextInput#INPUT_ID", value1 = ${templateName});
                      }
                    }
                  • 788
                    if (${saveAsDraft} == "true") {
                    • 789
                      PortletEntry.saveAsDraft();
                      • 169
                        Button.clickSaveAsDraft();
                        • 116
                          Button.click(button = "Save as Draft");
                          • 4
                            Click.mouseDownMouseUp( key_text = ${button}, locator1 = "Button#ANY");
                      • 171
                        Alert.viewSuccessMessage();
                        • 138
                          VerifyElementPresent(locator1 = "Message#SUCCESS_DISMISSIBLE");
                    • 791
                      AssertTextEquals( key_status = "Draft", locator1 = "WCEditWebContent#WORKFLOW_STATUS", value1 = "Draft");
                    }
                }
              • 24
                else {
                • 25
                  WebContent.addWithStructureCP(webContentText = ${webContentTextSingleLine});
                  • 461
                    AssertVisible(locator1 = "WCEditWebContent#SIDEBAR");
                  • 463
                    if (isSet(webContentTitle)) {
                    • 464
                      PortletEntry.inputTitle(title = ${webContentTitle});
                      • 139
                        Type( locator1 = "TextInput#TITLE", value1 = ${title});
                    }
                  • 467
                    if (isSet(webContentColor)) {
                    • 468
                      if (!(isSet(webContentColorFieldLabel))) {
                      • 469
                        var webContentColorFieldLabel = "Color";
                      }
                    • 472
                      Click( key_fieldFieldLabel = ${webContentColorFieldLabel}, locator1 = "WCEditWebContent#COLOR_PICKER");
                    • 476
                      Click( key_colorSwatchItem = "#${webContentColor}", locator1 = "Button#COLOR_SWATCH_ITEM");
                    }
                  • 481
                    if (isSet(webContentDate)) {
                    • 482
                      if (!(isSet(webContentDateFieldLabel))) {
                      • 483
                        var webContentDateFieldLabel = "Date";
                      }
                    • 486
                      Type( key_fieldFieldLabel = ${webContentDateFieldLabel}, locator1 = "WCEditWebContent#DATE_INPUT", value1 = ${webContentDate});
                    }
                  • 492
                    if (isSet(webContentGeolocation)) {
                    • 493
                      var lat = StringUtil.extractFirst(${webContentGeolocation}, ",");
                    • 494
                      var lng = StringUtil.extractLast(${webContentGeolocation}, ",");
                    • 496
                      Geolocation.setMarkerPosition( lat = ${lat}, lng = ${lng});
                      • 21
                        WaitForVisible(locator1 = "DDMField#GEOLOCATION_MAP");
                      • 23
                        if (IsElementPresent(locator1 = "//div[contains(@class,'ddm-geolocation')]")) {
                        • 24
                          var javascript = ''' Liferay.MapBase.get(document.evaluate("//div[contains(@class,'form-group')][*//div[contains(@class,'lfr-map')]]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.dataset.fieldName.replace('$$en_US', '').replace('ddm', 'map'), (map) => map.position = {location: {lat: ${lat}, lng: ${lng}}}) ''';
                        • 28
                          var result = selenium.getEval(${javascript});
                        }
                      • 30
                        else if (IsElementPresent(locator1 = "//div[contains(@id,'Location')]")) {
                        • 31
                          var javascript = ''' Liferay.MapBase.get(document.evaluate("//div[contains(@class,'lfr-map')]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.id.replace('Map', ''), (map) => map.position = {location: {lat: ${lat}, lng: ${lng}}}) ''';
                        • 35
                          var result = selenium.getEval(${javascript});
                        }
                    }
                  • 501
                    if (isSet(webContentGrid)) {
                    • 502
                      if (!(isSet(webContentGridFieldLabel))) {
                      • 503
                        var webContentGridFieldLabel = "Grid";
                      }
                    • 506
                      var column = ${column} + 1;
                    • 508
                      Check.checkNotVisible( key_column = ${column}, key_fieldFieldLabel = ${webContentGridFieldLabel}, key_row = ${row}, locator1 = "WCEditWebContent#GRID_OPTION");
                    }
                  • 515
                    if (isSet(webContentImage)) {
                    • 516
                      if (!(isSet(webContentImageFieldLabel))) {
                      • 517
                        var webContentImageFieldLabel = "Image";
                      }
                    • 520
                      WaitForLiferayEvent.initializeLiferayEventLog();
                    • 522
                      Click( fieldLabel = ${webContentImageFieldLabel}, locator1 = "Button#BUTTON_LABEL", text = "Select");
                    • 527
                      if (${navTab} == "Documents and Media") {
                      • 528
                        if (isSet(depotName)) {
                        • 529
                          ItemSelector.selectRepositoryImage( depotName = ${depotName}, folderName = ${folderName}, imageFileName = ${webContentImage}, navTab = ${navTab});
                          • 500
                            var key_imageFileName = ${imageFileName};
                          • 502
                            ItemSelector.changeWorkspaces( customImage = ${customImage}, navTab = ${navTab}, workspacesType = "Asset Library");
                            • 179
                              if (!(isSet(customImage))) {
                              • 180
                                SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                              }
                            • 183
                              if (isSet(navTab)) {
                              • 184
                                AssertClick( key_navTab = ${navTab}, locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                              }
                            • 190
                              AssertClick( key_breadcrumbName = "Sites and Libraries", locator1 = "Breadcrumb#BREADCRUMB_ENTRY", value1 = "Sites and Libraries");
                            • 195
                              AssertClick( key_groupTab = ${workspacesType}, locator1 = "ItemSelector#NAVIGATION_GROUP_TAB", value1 = ${workspacesType});
                          • 507
                            LexiconCard.clickCard(card = ${depotName});
                            • 14
                              WaitForLiferayEvent.initializeLiferayEventLog();
                            • 16
                              WaitForPageLoad();
                            • 18
                              Click( key_card = ${card}, locator1 = "Card#CARD");
                          • 509
                            if (isSet(folderName)) {
                            • 510
                              LexiconCard.clickCard(card = ${folderName});
                              • 14
                                WaitForLiferayEvent.initializeLiferayEventLog();
                              • 16
                                WaitForPageLoad();
                              • 18
                                Click( key_card = ${card}, locator1 = "Card#CARD");
                            }
                          • 513
                            if (isSet(noViewPermission)) {
                            • 514
                              AssertElementNotPresent(locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
                            }
                          • 516
                            else {
                            • 517
                              Click(locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
                            }
                          • 520
                            SelectFrameTop();
                        }
                      • 535
                        else if (isSet(imageFileName)) {
                        • 536
                          ItemSelector.selectDMImage( imageFileName = ${webContentImage}, navTab = ${navTab});
                          • 465
                            var key_navTab = ${navTab};
                          • 466
                            var key_uploadFileName = ${imageFileName};
                          • 468
                            SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                          • 470
                            if (IsElementPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB")) {
                            • 471
                              AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                            }
                          • 476
                            if (isSet(dmFolderName)) {
                            • 477
                              var key_dmFolderName = ${dmFolderName};
                            • 479
                              AssertClick( locator1 = "DocumentsAndMedia#ICON_FOLDER_TITLE", value1 = ${dmFolderName});
                            }
                          • 484
                            if (isSet(dmSubFolderName)) {
                            • 485
                              var key_dmFolderName = ${dmSubFolderName};
                            • 487
                              AssertClick( locator1 = "DocumentsAndMedia#ICON_FOLDER_TITLE", value1 = ${dmSubFolderName});
                            }
                          • 492
                            var key_imageFileName = StringUtil.replace(${imageFileName}, " ", "+");
                          • 494
                            LexiconCard.clickCard(card = ${imageFileName});
                            • 14
                              WaitForLiferayEvent.initializeLiferayEventLog();
                            • 16
                              WaitForPageLoad();
                            • 18
                              Click( key_card = ${card}, locator1 = "Card#CARD");
                          • 496
                            SelectFrameTop();
                        }
                      • 540
                        else {
                        • 541
                          ItemSelector.uploadFile( navTab = ${navTab}, uploadFileName = ${webContentImage});
                          • 553
                            var key_navTab = ${navTab};
                          • 554
                            var key_uploadFileName = ${uploadFileName};
                          • 556
                            SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                          • 558
                            if (IsElementPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB")) {
                            • 559
                              AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                            }
                          • 564
                            UploadCommonFile.uploadCommonFileHiddenNoMouseOver( locator1 = "TextInput#FILE", value1 = ${uploadFileName});
                          • 568
                            if (isSet(invalidFileValidation)) {
                            • 569
                              AssertTextEquals( locator1 = "Message#ERROR_FORM_FIELD_REQUIRED", value1 = ${invalidFileValidation});
                            • 573
                              AssertElementNotPresent( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                            • 577
                              SelectFrame(value1 = "relative=top");
                            • 579
                              Click.clickNoMouseOver(locator1 = "Modal#CLOSE_BUTTON");
                            }
                          • 581
                            else {
                            • 582
                              WaitForVisible(locator1 = "ItemSelector#ADD_BUTTON");
                            • 584
                              AssertClick( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                            • 588
                              SelectFrameTop();
                            }
                        }
                      }
                    • 546
                      else if (${navTab} == "Web Content Images") {
                      • 547
                        ItemSelector.uploadFile( navTab = ${navTab}, uploadFileName = ${webContentImage});
                        • 553
                          var key_navTab = ${navTab};
                        • 554
                          var key_uploadFileName = ${uploadFileName};
                        • 556
                          SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                        • 558
                          if (IsElementPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB")) {
                          • 559
                            AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                          }
                        • 564
                          UploadCommonFile.uploadCommonFileHiddenNoMouseOver( locator1 = "TextInput#FILE", value1 = ${uploadFileName});
                        • 568
                          if (isSet(invalidFileValidation)) {
                          • 569
                            AssertTextEquals( locator1 = "Message#ERROR_FORM_FIELD_REQUIRED", value1 = ${invalidFileValidation});
                          • 573
                            AssertElementNotPresent( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                          • 577
                            SelectFrame(value1 = "relative=top");
                          • 579
                            Click.clickNoMouseOver(locator1 = "Modal#CLOSE_BUTTON");
                          }
                        • 581
                          else {
                          • 582
                            WaitForVisible(locator1 = "ItemSelector#ADD_BUTTON");
                          • 584
                            AssertClick( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                          • 588
                            SelectFrameTop();
                          }
                      }
                    • 552
                      if (isSet(webContentImageDescription)) {
                      • 553
                        Type( key_fieldFieldLabel = ${webContentImageFieldLabel}, locator1 = "WCEditWebContent#IMAGE_DESCRIPTION", value1 = ${webContentImageDescription});
                      }
                    }
                  • 560
                    if (isSet(webContentLinkToPage)) {
                    • 561
                      if (!(isSet(webContentLinkToPageFieldLabel))) {
                      • 562
                        var webContentLinkToPageFieldLabel = "Link to Page";
                      }
                    • 565
                      WaitForLiferayEvent.initializeLiferayEventLog();
                    • 567
                      Click( fieldLabel = ${webContentLinkToPageFieldLabel}, locator1 = "Button#BUTTON_LABEL", text = "Select");
                    • 572
                      SelectFrame(locator1 = "IFrame#MODAL_BODY");
                    • 574
                      Portlet.expandTree();
                      • 501
                        WaitForVisible(locator1 = "Treeview#NODE_LIST");
                      • 503
                        while (IsElementPresent(locator1 = "Treeview#NODE_COLLAPSED")) {
                        • 504
                          Click(locator1 = "Treeview#NODE_COLLAPSED");
                        }
                      • 507
                        AssertElementNotPresent(locator1 = "Treeview#NODE_COLLAPSED");
                    • 576
                      Click( key_nodeName = ${webContentLinkToPage}, locator1 = "Treeview#NODE_UNSELECTED");
                    • 580
                      SelectFrameTop();
                    }
                  • 583
                    if (isSet(webContentMultipleSelection)) {
                    • 584
                      if (!(isSet(webContentMultipleSelectionFieldLabel))) {
                      • 585
                        var webContentMultipleSelectionFieldLabel = "Multiple Selection";
                      }
                    • 588
                      Check.checkNotVisible( key_fieldFieldLabel = ${webContentMultipleSelectionFieldLabel}, key_optionValue = ${webContentMultipleSelection}, locator1 = "WCEditWebContent#SELECTION_OPTION");
                    }
                  • 594
                    if (isSet(webContentNumeric)) {
                    • 595
                      if (!(isSet(webContentNumericFieldLabel))) {
                      • 596
                        var webContentNumericFieldLabel = "Numeric";
                      }
                    • 599
                      TripleClick( key_fieldFieldLabel = ${webContentNumericFieldLabel}, locator1 = "WCEditWebContent#TEXT_INPUT");
                    • 603
                      Type.sendKeys( key_fieldFieldLabel = ${webContentNumericFieldLabel}, locator1 = "WCEditWebContent#TEXT_INPUT", value1 = ${webContentNumeric});
                    }
                  • 609
                    if (isSet(webContentRichText)) {
                    • 610
                      if (!(isSet(webContentRichTextFieldLabel))) {
                      • 611
                        var webContentRichTextFieldLabel = "Rich Text";
                      }
                    • 614
                      if (isSet(source)) {
                      • 615
                        Click( key_fieldFieldLabel = ${webContentRichTextFieldLabel}, locator1 = "WCEditWebContent#SOURCE_BUTTON");
                      • 619
                        Type.typeCodeMirrorEditorNoError( locator1 = "CKEditor#BODY_FIELD_SOURCE_ON", value1 = ${webContentRichText});
                      }
                    • 623
                      else {
                      • 624
                        CKEditor.addContentInWebContent( content = ${webContentRichText}, fieldLabel = ${webContentRichTextFieldLabel});
                        • 21
                          SelectFrame.selectFrameNoLoading( key_fieldLabel = ${fieldLabel}, locator1 = "CKEditor#BODY_FIELD_IFRAME_WEB_CONTENT_ARTICLE");
                        • 25
                          Type( locator1 = "CKEditor#BODY", value1 = ${content});
                        • 29
                          SelectFrame(value1 = "relative=top");
                      }
                    }
                  • 630
                    if (isSet(webContentSelectFromList)) {
                    • 631
                      if (!(isSet(webContentSelectFromListFieldLabel))) {
                      • 632
                        var webContentSelectFromListFieldLabel = "Select from List";
                      }
                    • 635
                      Click( key_fieldFieldLabel = ${webContentSelectFromListFieldLabel}, locator1 = "WCEditWebContent#SELECT_FIELD_TRIGGER");
                    • 639
                      DropdownMenuItem.click(menuItem = ${webContentSelectFromList});
                      • 4
                        Click( key_menuItem = ${menuItem}, locator1 = "MenuItem#DROPDOWN_MENU_ITEM");
                    }
                  • 642
                    if (isSet(webContentSingleSelection)) {
                    • 643
                      if (!(isSet(webContentSingleSelectionFieldLabel))) {
                      • 644
                        var webContentSingleSelectionFieldLabel = "Single Selection";
                      }
                    • 647
                      Check.checkNotVisible( key_fieldFieldLabel = ${webContentSingleSelectionFieldLabel}, key_optionValue = ${webContentSingleSelection}, locator1 = "WCEditWebContent#SELECTION_OPTION");
                    }
                  • 653
                    if (isSet(webContentText)) {
                    • 654
                      if (!(isSet(webContentTextFieldLabel))) {
                      • 655
                        var webContentTextFieldLabel = "Text";
                      }
                    • 658
                      if (${fieldType} == "Multiple Lines") {
                      • 659
                        Type( key_fieldFieldLabel = ${webContentTextFieldLabel}, locator1 = "DDMField#MULTIPLE_LINES", value1 = ${webContentText});
                      }
                    • 664
                      else {
                      • 665
                        Type( key_fieldFieldLabel = ${webContentTextFieldLabel}, locator1 = "WCEditWebContent#TEXT_INPUT", value1 = ${webContentText});
                      }
                    • 671
                      if (isSet(duplicateField)) {
                      • 672
                        Click(locator1 = "FormFields#FIELD_ADD_DUPLICATE");
                      • 674
                        Type( key_fieldFieldLabel = ${webContentTextFieldLabel}, locator1 = "WCEditWebContent#TEXT_INPUT_2", value1 = "${webContentText} Duplicate Field");
                      }
                    }
                  • 681
                    if (isSet(webContentUpload)) {
                    • 682
                      if (!(isSet(webContentUploadFieldLabel))) {
                      • 683
                        var webContentUploadFieldLabel = "Upload";
                      }
                    • 686
                      WaitForLiferayEvent.initializeLiferayEventLog();
                    • 688
                      Click( fieldLabel = ${webContentUploadFieldLabel}, locator1 = "Button#BUTTON_LABEL", text = "Select");
                    • 693
                      if (${dmNavTab} == "Documents and Media") {
                      • 694
                        if (isSet(depotName)) {
                        • 695
                          ItemSelector.selectRepositoryImage( depotName = ${depotName}, folderName = ${folderName}, imageFileName = ${webContentUpload}, navTab = ${dmNavTab});
                          • 500
                            var key_imageFileName = ${imageFileName};
                          • 502
                            ItemSelector.changeWorkspaces( customImage = ${customImage}, navTab = ${navTab}, workspacesType = "Asset Library");
                            • 179
                              if (!(isSet(customImage))) {
                              • 180
                                SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                              }
                            • 183
                              if (isSet(navTab)) {
                              • 184
                                AssertClick( key_navTab = ${navTab}, locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                              }
                            • 190
                              AssertClick( key_breadcrumbName = "Sites and Libraries", locator1 = "Breadcrumb#BREADCRUMB_ENTRY", value1 = "Sites and Libraries");
                            • 195
                              AssertClick( key_groupTab = ${workspacesType}, locator1 = "ItemSelector#NAVIGATION_GROUP_TAB", value1 = ${workspacesType});
                          • 507
                            LexiconCard.clickCard(card = ${depotName});
                            • 14
                              WaitForLiferayEvent.initializeLiferayEventLog();
                            • 16
                              WaitForPageLoad();
                            • 18
                              Click( key_card = ${card}, locator1 = "Card#CARD");
                          • 509
                            if (isSet(folderName)) {
                            • 510
                              LexiconCard.clickCard(card = ${folderName});
                              • 14
                                WaitForLiferayEvent.initializeLiferayEventLog();
                              • 16
                                WaitForPageLoad();
                              • 18
                                Click( key_card = ${card}, locator1 = "Card#CARD");
                            }
                          • 513
                            if (isSet(noViewPermission)) {
                            • 514
                              AssertElementNotPresent(locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
                            }
                          • 516
                            else {
                            • 517
                              Click(locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
                            }
                          • 520
                            SelectFrameTop();
                        }
                      • 701
                        else if (isSet(dmDocumentTitle)) {
                        • 702
                          ItemSelector.selectDMImage( imageFileName = ${dmDocumentTitle}, navTab = ${dmNavTab});
                          • 465
                            var key_navTab = ${navTab};
                          • 466
                            var key_uploadFileName = ${imageFileName};
                          • 468
                            SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                          • 470
                            if (IsElementPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB")) {
                            • 471
                              AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                            }
                          • 476
                            if (isSet(dmFolderName)) {
                            • 477
                              var key_dmFolderName = ${dmFolderName};
                            • 479
                              AssertClick( locator1 = "DocumentsAndMedia#ICON_FOLDER_TITLE", value1 = ${dmFolderName});
                            }
                          • 484
                            if (isSet(dmSubFolderName)) {
                            • 485
                              var key_dmFolderName = ${dmSubFolderName};
                            • 487
                              AssertClick( locator1 = "DocumentsAndMedia#ICON_FOLDER_TITLE", value1 = ${dmSubFolderName});
                            }
                          • 492
                            var key_imageFileName = StringUtil.replace(${imageFileName}, " ", "+");
                          • 494
                            LexiconCard.clickCard(card = ${imageFileName});
                            • 14
                              WaitForLiferayEvent.initializeLiferayEventLog();
                            • 16
                              WaitForPageLoad();
                            • 18
                              Click( key_card = ${card}, locator1 = "Card#CARD");
                          • 496
                            SelectFrameTop();
                        }
                      • 706
                        else {
                        • 707
                          ItemSelector.uploadFile( navTab = ${dmNavTab}, uploadFileName = ${webContentUpload});
                          • 553
                            var key_navTab = ${navTab};
                          • 554
                            var key_uploadFileName = ${uploadFileName};
                          • 556
                            SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                          • 558
                            if (IsElementPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB")) {
                            • 559
                              AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                            }
                          • 564
                            UploadCommonFile.uploadCommonFileHiddenNoMouseOver( locator1 = "TextInput#FILE", value1 = ${uploadFileName});
                          • 568
                            if (isSet(invalidFileValidation)) {
                            • 569
                              AssertTextEquals( locator1 = "Message#ERROR_FORM_FIELD_REQUIRED", value1 = ${invalidFileValidation});
                            • 573
                              AssertElementNotPresent( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                            • 577
                              SelectFrame(value1 = "relative=top");
                            • 579
                              Click.clickNoMouseOver(locator1 = "Modal#CLOSE_BUTTON");
                            }
                          • 581
                            else {
                            • 582
                              WaitForVisible(locator1 = "ItemSelector#ADD_BUTTON");
                            • 584
                              AssertClick( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                            • 588
                              SelectFrameTop();
                            }
                        }
                      }
                    • 712
                      else if (${dmNavTab} == "User Personal Folder") {
                      • 713
                        ItemSelector.uploadFile( navTab = ${dmNavTab}, uploadFileName = ${webContentUpload});
                        • 553
                          var key_navTab = ${navTab};
                        • 554
                          var key_uploadFileName = ${uploadFileName};
                        • 556
                          SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                        • 558
                          if (IsElementPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB")) {
                          • 559
                            AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                          }
                        • 564
                          UploadCommonFile.uploadCommonFileHiddenNoMouseOver( locator1 = "TextInput#FILE", value1 = ${uploadFileName});
                        • 568
                          if (isSet(invalidFileValidation)) {
                          • 569
                            AssertTextEquals( locator1 = "Message#ERROR_FORM_FIELD_REQUIRED", value1 = ${invalidFileValidation});
                          • 573
                            AssertElementNotPresent( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                          • 577
                            SelectFrame(value1 = "relative=top");
                          • 579
                            Click.clickNoMouseOver(locator1 = "Modal#CLOSE_BUTTON");
                          }
                        • 581
                          else {
                          • 582
                            WaitForVisible(locator1 = "ItemSelector#ADD_BUTTON");
                          • 584
                            AssertClick( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                          • 588
                            SelectFrameTop();
                          }
                      }
                    }
                  • 719
                    if (isSet(webContentWebContent)) {
                    • 720
                      if (!(isSet(webContentWebContentFieldLabel))) {
                      • 721
                        var webContentWebContentFieldLabel = "Web Content";
                      }
                    • 724
                      WaitForLiferayEvent.initializeLiferayEventLog();
                    • 726
                      Click( fieldLabel = ${webContentWebContentFieldLabel}, locator1 = "Button#BUTTON_LABEL", text = "Select");
                    • 731
                      if (isSet(depotName)) {
                      • 732
                        WebContent.selectRepositoryWC( available = ${available}, contentName = ${webContentWebContent}, depotName = ${depotName}, folderName = ${folderName});
                        • 1802
                          var key_contentName = ${contentName};
                        • 1804
                          ItemSelector.changeWorkspaces(workspacesType = "Asset Library");
                          • 179
                            if (!(isSet(customImage))) {
                            • 180
                              SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                            }
                          • 183
                            if (isSet(navTab)) {
                            • 184
                              AssertClick( key_navTab = ${navTab}, locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = ${navTab});
                            }
                          • 190
                            AssertClick( key_breadcrumbName = "Sites and Libraries", locator1 = "Breadcrumb#BREADCRUMB_ENTRY", value1 = "Sites and Libraries");
                          • 195
                            AssertClick( key_groupTab = ${workspacesType}, locator1 = "ItemSelector#NAVIGATION_GROUP_TAB", value1 = ${workspacesType});
                        • 1806
                          LexiconCard.clickCard(card = ${depotName});
                          • 14
                            WaitForLiferayEvent.initializeLiferayEventLog();
                          • 16
                            WaitForPageLoad();
                          • 18
                            Click( key_card = ${card}, locator1 = "Card#CARD");
                        • 1808
                          if (isSet(folderName)) {
                          • 1809
                            LexiconList.clickListEntryTitle(listEntry = ${folderName});
                            • 25
                              Click( key_listEntry = ${listEntry}, locator1 = "LexiconList#LIST_ENTRY_TITLE_LINK");
                          }
                        • 1812
                          if (${available} == "false") {
                          • 1813
                            AssertElementNotPresent(locator1 = "ItemSelector#SELECT_FILE_WEB_CONTENT");
                          }
                        • 1815
                          else {
                          • 1816
                            Click(locator1 = "ItemSelector#SELECT_FILE_WEB_CONTENT");
                          }
                      }
                    • 738
                      else if (isSet(otherSiteName)) {
                      • 739
                        SelectFrame(locator1 = "IFrame#MODAL_BODY");
                      • 741
                        AssertClick( key_breadcrumbName = "Sites and Libraries", locator1 = "Breadcrumb#BREADCRUMB_ENTRY_LINK", value1 = "Sites and Libraries");
                      • 746
                        AssertClick( key_siteName = ${otherSiteName}, locator1 = "ItemSelector#SITE_SELECTOR", value1 = ${otherSiteName});
                      • 751
                        AssertClick.assertPartialTextClickAt( key_listEntry = ${webContentWebContent}, locator1 = "LexiconList#LIST_ENTRY", value1 = ${webContentWebContent});
                      • 756
                        SelectFrame(value1 = "relative=top");
                      }
                    • 758
                      else {
                      • 759
                        SelectFrame(locator1 = "IFrame#MODAL_BODY");
                      • 761
                        AssertClick.assertPartialTextClickAt( key_listEntry = ${webContentWebContent}, locator1 = "LexiconList#LIST_ENTRY", value1 = ${webContentWebContent});
                      • 766
                        SelectFrame(value1 = "relative=top");
                      }
                    }
                  • 770
                    if (isSet(description)) {
                    • 771
                      CKEditor.addContentInWebContent( content = ${description}, fieldLabel = "Description");
                      • 21
                        SelectFrame.selectFrameNoLoading( key_fieldLabel = ${fieldLabel}, locator1 = "CKEditor#BODY_FIELD_IFRAME_WEB_CONTENT_ARTICLE");
                      • 25
                        Type( locator1 = "CKEditor#BODY", value1 = ${content});
                      • 29
                        SelectFrame(value1 = "relative=top");
                    }
                  • 776
                    if (isSet(templateName)) {
                    • 777
                      SelectFrameTop();
                    • 779
                      Panel.expandPanel(panel = "Default Template");
                      • 22
                        Portlet.waitForForm();
                        • 902
                          AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
                      • 24
                        var key_panel = ${panel};
                      • 26
                        AssertVisible( key_panel = ${panel}, locator1 = "Panel#PANEL");
                      • 30
                        if ((IsElementPresent(locator1 = "Panel#PANEL_COLLAPSED")) && (IsVisible(locator1 = "Panel#PANEL_COLLAPSED"))) {
                        • 31
                          AssertClick( locator1 = "Panel#PANEL_COLLAPSED", value1 = ${panel});
                        }
                      • 36
                        AssertElementPresent(locator1 = "Panel#PANEL_EXPANDED");
                    • 781
                      if (IsTextNotEqual(inputFieldId = "ddmTemplateName", locator1 = "TextInput#INPUT_ID", value1 = ${templateName})) {
                      • 782
                        WebContent.selectTemplateCP( structureName = ${structureName}, templateName = ${templateName});
                        • 1821
                          ScrollBy(value1 = "0, 50");
                        • 1823
                          AssertTextEquals.assertPartialText( locator1 = "WCEditWebContent#SELECTED_STRUCTURE", value1 = ${structureName});
                        • 1827
                          Panel.expandPanel(panel = "Default Template");
                          • 22
                            Portlet.waitForForm();
                            • 902
                              AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
                          • 24
                            var key_panel = ${panel};
                          • 26
                            AssertVisible( key_panel = ${panel}, locator1 = "Panel#PANEL");
                          • 30
                            if ((IsElementPresent(locator1 = "Panel#PANEL_COLLAPSED")) && (IsVisible(locator1 = "Panel#PANEL_COLLAPSED"))) {
                            • 31
                              AssertClick( locator1 = "Panel#PANEL_COLLAPSED", value1 = ${panel});
                            }
                          • 36
                            AssertElementPresent(locator1 = "Panel#PANEL_EXPANDED");
                        • 1829
                          Click( buttonId = "selectDDMTemplate", locator1 = "Button#BUTTON_ID");
                        • 1833
                          IFrame.selectTopFrame();
                          • 60
                            SelectFrame(value1 = "relative=top");
                        • 1835
                          SelectFrame(locator1 = "IFrame#MODAL_BODY");
                        • 1837
                          if (isSet(confirm)) {
                          • 1838
                            LexiconCard.clickCard(card = ${templateName});
                            • 14
                              WaitForLiferayEvent.initializeLiferayEventLog();
                            • 16
                              WaitForPageLoad();
                            • 18
                              Click( key_card = ${card}, locator1 = "Card#CARD");
                          }
                        • 1840
                          else {
                          • 1841
                            LexiconCard.clickCardWithConfirmation(card = ${templateName});
                            • 36
                              ClickNoError( key_card = ${card}, locator1 = "Card#CARD");
                            • 40
                              Confirm();
                          }
                        • 1844
                          IFrame.selectTopFrame();
                          • 60
                            SelectFrame(value1 = "relative=top");
                        • 1846
                          WaitForPageLoad();
                        • 1848
                          Panel.expandPanel(panel = "Default Template");
                          • 22
                            Portlet.waitForForm();
                            • 902
                              AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
                          • 24
                            var key_panel = ${panel};
                          • 26
                            AssertVisible( key_panel = ${panel}, locator1 = "Panel#PANEL");
                          • 30
                            if ((IsElementPresent(locator1 = "Panel#PANEL_COLLAPSED")) && (IsVisible(locator1 = "Panel#PANEL_COLLAPSED"))) {
                            • 31
                              AssertClick( locator1 = "Panel#PANEL_COLLAPSED", value1 = ${panel});
                            }
                          • 36
                            AssertElementPresent(locator1 = "Panel#PANEL_EXPANDED");
                        • 1850
                          AssertTextEquals( inputFieldId = "ddmTemplateName", locator1 = "TextInput#INPUT_ID", value1 = ${templateName});
                      }
                    }
                  • 788
                    if (${saveAsDraft} == "true") {
                    • 789
                      PortletEntry.saveAsDraft();
                      • 169
                        Button.clickSaveAsDraft();
                        • 116
                          Button.click(button = "Save as Draft");
                          • 4
                            Click.mouseDownMouseUp( key_text = ${button}, locator1 = "Button#ANY");
                      • 171
                        Alert.viewSuccessMessage();
                        • 138
                          VerifyElementPresent(locator1 = "Message#SUCCESS_DISMISSIBLE");
                    • 791
                      AssertTextEquals( key_status = "Draft", locator1 = "WCEditWebContent#WORKFLOW_STATUS", value1 = "Draft");
                    }
                }
              }
            }
          • 29
            else {
            • 30
              var structureName = "Basic Web Content";
            }
          • 33
            if (isSet(templateName)) {
            • 34
              if (IsTextNotEqual(inputFieldId = "ddmTemplateName", locator1 = "TextInput#INPUT_ID", value1 = ${templateName})) {
              • 35
                WebContent.selectTemplateCP( structureName = ${structureName}, templateName = ${templateName});
                • 1821
                  ScrollBy(value1 = "0, 50");
                • 1823
                  AssertTextEquals.assertPartialText( locator1 = "WCEditWebContent#SELECTED_STRUCTURE", value1 = ${structureName});
                • 1827
                  Panel.expandPanel(panel = "Default Template");
                  • 22
                    Portlet.waitForForm();
                    • 902
                      AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
                  • 24
                    var key_panel = ${panel};
                  • 26
                    AssertVisible( key_panel = ${panel}, locator1 = "Panel#PANEL");
                  • 30
                    if ((IsElementPresent(locator1 = "Panel#PANEL_COLLAPSED")) && (IsVisible(locator1 = "Panel#PANEL_COLLAPSED"))) {
                    • 31
                      AssertClick( locator1 = "Panel#PANEL_COLLAPSED", value1 = ${panel});
                    }
                  • 36
                    AssertElementPresent(locator1 = "Panel#PANEL_EXPANDED");
                • 1829
                  Click( buttonId = "selectDDMTemplate", locator1 = "Button#BUTTON_ID");
                • 1833
                  IFrame.selectTopFrame();
                  • 60
                    SelectFrame(value1 = "relative=top");
                • 1835
                  SelectFrame(locator1 = "IFrame#MODAL_BODY");
                • 1837
                  if (isSet(confirm)) {
                  • 1838
                    LexiconCard.clickCard(card = ${templateName});
                    • 14
                      WaitForLiferayEvent.initializeLiferayEventLog();
                    • 16
                      WaitForPageLoad();
                    • 18
                      Click( key_card = ${card}, locator1 = "Card#CARD");
                  }
                • 1840
                  else {
                  • 1841
                    LexiconCard.clickCardWithConfirmation(card = ${templateName});
                    • 36
                      ClickNoError( key_card = ${card}, locator1 = "Card#CARD");
                    • 40
                      Confirm();
                  }
                • 1844
                  IFrame.selectTopFrame();
                  • 60
                    SelectFrame(value1 = "relative=top");
                • 1846
                  WaitForPageLoad();
                • 1848
                  Panel.expandPanel(panel = "Default Template");
                  • 22
                    Portlet.waitForForm();
                    • 902
                      AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
                  • 24
                    var key_panel = ${panel};
                  • 26
                    AssertVisible( key_panel = ${panel}, locator1 = "Panel#PANEL");
                  • 30
                    if ((IsElementPresent(locator1 = "Panel#PANEL_COLLAPSED")) && (IsVisible(locator1 = "Panel#PANEL_COLLAPSED"))) {
                    • 31
                      AssertClick( locator1 = "Panel#PANEL_COLLAPSED", value1 = ${panel});
                    }
                  • 36
                    AssertElementPresent(locator1 = "Panel#PANEL_EXPANDED");
                • 1850
                  AssertTextEquals( inputFieldId = "ddmTemplateName", locator1 = "TextInput#INPUT_ID", value1 = ${templateName});
              }
            }
          • 41
            PortletEntry.publish();
            • 145
              Button.clickPublish();
              • 98
                ScrollWebElementIntoView( key_text = "Publish", locator1 = "Button#ANY");
              • 102
                Button.click(button = "Publish");
                • 4
                  Click.mouseDownMouseUp( key_text = ${button}, locator1 = "Button#ANY");
            • 147
              Alert.viewSuccessMessage();
              • 138
                VerifyElementPresent(locator1 = "Message#SUCCESS_DISMISSIBLE");
        }
      • 299
        task ("View the displayed content in Web Content Display") {
        • 300
          AssertTextEquals( locator1 = "//div[contains(@class,'journal-content-article')]//h1[contains(@class,'text')]", value1 = "WC WebContent Text");
        • 304
          AssertTextEquals( locator1 = "//div[contains(@class,'journal-content-article')]//h2[contains(@class,'text-box')]", value1 = "Hello World Welcome to Liferay Community Edition Portal 7.4.0 CE GA1");
        }
      • 309
        task ("View defined contents in web content editor") {
        • 310
          WebContentNavigator.openWebContentAdmin(siteURLKey = "test-site-name");
          • 236
            Navigator.openWithAppendToBaseURL( baseURL = ${baseURL}, urlAppend = "group/${siteURLKey}/~/control_panel/manage?p_p_id=com_liferay_journal_web_portlet_JournalPortlet");
            • 384
              if (!(isSet(baseURL))) {
              • 385
                var baseURL = PropsUtil.get("portal.url");
              }
            • 388
              Open(locator1 = "${baseURL}/${urlAppend}");
        • 312
          WebContent.viewWithStructureCP( webContentText = "WC WebContent Text", webContentTitle = "WC WebContent Title");
          • 2610
            if (!(isSet(predefinedValue))) {
            • 2611
              if (${skipGotoEditCp} != "true") {
              • 2612
                LexiconEntry.changeDisplayStyle(displayStyle = "list");
                • 4
                  WaitForPageLoad();
                • 6
                  Click.mouseOverClick(locator1 = "Icon#CURRENT_DISPLAY_STYLE");
                • 8
                  MenuItem.click(menuItem = StringUtil.upperCaseFirstLetter(${displayStyle}));
                  • 4
                    Click( key_menuItem = ${menuItem}, locator1 = "MenuItem#ANY_MENU_ITEM");
              • 2614
                WebContentNavigator.gotoEditCP( webContentTitle = ${webContentTitle}, webContentTitleEscapeCharacter = ${webContentTitleEscapeCharacter});
                • 55
                  WebContentNavigator._openDescriptiveMenulistCP( webContentTitle = ${webContentTitle}, webContentTitleEscapeCharacter = ${webContentTitleEscapeCharacter});
                  • 4
                    if (isSet(webContentTitleEscapeCharacter)) {
                    • 5
                      var key_webContentTitle = ${webContentTitleEscapeCharacter};
                    }
                  • 7
                    else {
                    • 8
                      var key_webContentTitle = ${webContentTitle};
                    }
                  • 11
                    LexiconEntry.changeDisplayStyle(displayStyle = "list");
                    • 4
                      WaitForPageLoad();
                    • 6
                      Click.mouseOverClick(locator1 = "Icon#CURRENT_DISPLAY_STYLE");
                    • 8
                      MenuItem.click(menuItem = StringUtil.upperCaseFirstLetter(${displayStyle}));
                      • 4
                        Click( key_menuItem = ${menuItem}, locator1 = "MenuItem#ANY_MENU_ITEM");
                  • 13
                    if (${liveSite} == "true") {
                    • 14
                      AssertTextEquals.assertPartialText( locator1 = "WC#ENTRY_LIST_TITLE_ON_LIVE", value1 = ${webContentTitle});
                    }
                  • 18
                    else {
                    • 19
                      AssertTextEquals.assertPartialText( locator1 = "WC#ENTRY_LIST_TITLE", value1 = ${webContentTitle});
                    }
                  • 24
                    Click.waitForMenuToggleJSClick(locator1 = "WC#ENTRY_LIST_MENULIST_ICON");
                • 59
                  MenuItem.click(menuItem = "Edit");
                  • 4
                    Click( key_menuItem = ${menuItem}, locator1 = "MenuItem#ANY_MENU_ITEM");
                • 61
                  AssertElementPresent(locator1 = "Icon#BACK");
              • 2618
                AssertVisible(locator1 = "WCEditWebContent#SIDEBAR");
              }
            • 2621
              if (isSet(webContentLocaleFieldLabel)) {
              • 2622
                PortletEntry.changeLocale(locale = ${webContentLocaleFieldLabel});
                • 4
                  Portlet.waitForForm();
                  • 902
                    AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
                • 6
                  if (isSet(fieldName)) {
                  • 7
                    Click.clickNoMouseOver( key_fieldName = ${fieldName}, locator1 = "Button#LOCALIZATION");
                  }
                • 11
                  else if (isSet(friendlyURLHistory)) {
                  • 12
                    Click.clickNoMouseOver(locator1 = "Icon#FRIENDLY_URL_HISTORY_LOCALIZATION");
                  }
                • 14
                  else if (isSet(modal)) {
                  • 15
                    Click(locator1 = "Modal#LOCALIZATION_DROPDOWN_TOGGLE");
                  }
                • 17
                  else {
                  • 18
                    Click.clickNoMouseOver(locator1 = "Button#LOCALIZATION_GENERIC");
                  }
                • 21
                  if (isSet(localizedFriendlyURL)) {
                  • 22
                    Click.clickNoMouseOver(locator1 = "Icon#FRIENDLY_URL_HISTORY_SPANISH_LOCALIZATION");
                  }
                • 24
                  else if (isSet(modal)) {
                  • 25
                    Click( key_locale = ${locale}, locator1 = "Translation#DROPDOWN_MENU_ITEM");
                  }
                • 29
                  else {
                  • 30
                    Click( key_locale = ${locale}, locator1 = "Translation#LOCALIZATION_NAME");
                  }
              }
            • 2625
              if (isSet(webContentTitleTranslated)) {
              • 2626
                AssertTextEquals( locator1 = "TextInput#TITLE", value1 = ${webContentTitleTranslated});
              }
            • 2630
              else {
              • 2631
                AssertTextEquals( locator1 = "TextInput#TITLE", value1 = ${webContentTitle});
              }
            • 2636
              if (isSet(description)) {
              • 2637
                SelectFrame.selectFrameNoLoading( key_fieldLabel = "Description", locator1 = "CKEditor#BODY_FIELD_IFRAME_WEB_CONTENT_ARTICLE");
              • 2641
                AssertTextEquals( locator1 = "CKEditor#BODY", value1 = ${description});
              • 2645
                SelectFrameTop(value1 = "relative=top");
              }
            }
          • 2649
            if (${webContentBoolean} == "true") {
            • 2650
              var webContentBooleanFieldLabel = "Boolean";
            • 2652
              AssertChecked.assertCheckedNotVisible( checkboxName = ${webContentBooleanFieldLabel}, locator1 = "Checkbox#ANY_CHECKBOX");
            }
          • 2656
            else if (${webContentBoolean} == "false") {
            • 2657
              var webContentBooleanFieldLabel = "Boolean";
            • 2659
              AssertNotChecked.assertNotCheckedNotVisible( checkboxName = ${webContentBooleanFieldLabel}, locator1 = "Checkbox#ANY_CHECKBOX");
            }
          • 2664
            if (isSet(webContentColor)) {
            • 2665
              if (!(isSet(webContentColorFieldLabel))) {
              • 2666
                var webContentColorFieldLabel = "Color";
              }
            • 2669
              AssertTextEquals.assertValue( key_fieldFieldLabel = ${webContentColorFieldLabel}, locator1 = "TextInput#SELECTOR_INPUT", value1 = ${webContentColor});
            }
          • 2675
            if (isSet(webContentDate)) {
            • 2676
              if (!(isSet(webContentDateFieldLabel))) {
              • 2677
                var webContentDateFieldLabel = "Date";
              }
            • 2680
              if (${webContentDate} == "__/__/____") {
              • 2681
                AssertAttributeValue( attribute1 = "placeholder", key_fieldFieldLabel = ${webContentDateFieldLabel}, locator1 = "WCEditWebContent#DATE_INPUT", value1 = ${webContentDate});
              • 2687
                AssertAttributeValue( attribute1 = "value", key_fieldFieldLabel = ${webContentDateFieldLabel}, locator1 = "WCEditWebContent#DATE_INPUT", value1 = "");
              }
            • 2693
              else {
              • 2694
                AssertAttributeValue( attribute1 = "value", key_fieldFieldLabel = ${webContentDateFieldLabel}, locator1 = "WCEditWebContent#DATE_INPUT", value1 = ${webContentDate});
              }
            }
          • 2702
            if (isSet(webContentGeolocation)) {
            • 2703
              if (!(isSet(webContentGeolocationFieldLabel))) {
              • 2704
                var webContentGeolocationFieldLabel = "Geolocation";
              }
            • 2707
              AssertElementPresent( key_fieldFieldLabel = ${webContentGeolocationFieldLabel}, locator1 = "DDMEditStructure#FORM_FIELD_CONTAINER_LABEL");
            • 2711
              if (isSet(location)) {
              • 2712
                var lat = StringUtil.extractFirst(${location}, ",");
              • 2713
                var lng = StringUtil.extractLast(${location}, ",");
              • 2715
                Geolocation.assertMarkerPosition( lat = ${lat}, lng = ${lng});
                • 4
                  WaitForVisible(locator1 = "DDMField#GEOLOCATION_MAP");
                • 6
                  if (IsElementPresent(locator1 = "//div[contains(@class,'ddm-geolocation')]")) {
                  • 7
                    AssertAttributeValue( attribute1 = "value", locator1 = "DDMField#GEOLOCATION_MAP_INPUT", value1 = "{\"lat\":${lat},\"lng\":${lng}}");
                  }
                • 12
                  else if (IsElementPresent(locator1 = "//div[contains(@id,'Location')]")) {
                  • 13
                    AssertAttributeValue( attribute1 = "value", locator1 = "DDMField#GEOLOCATION_MAP_INPUT", value1 = "{\"latitude\":${lat},\"longitude\":${lng}}");
                  }
              }
            }
          • 2721
            if (isSet(webContentGrid)) {
            • 2722
              if (!(isSet(webContentGridFieldLabel))) {
              • 2723
                var webContentGridFieldLabel = "Grid";
              }
            • 2726
              var column = ${column} + 1;
            • 2728
              if (${webContentGrid} == "true") {
              • 2729
                AssertChecked.assertCheckedNotVisible( key_column = ${column}, key_fieldFieldLabel = ${webContentGridFieldLabel}, key_row = ${row}, locator1 = "WCEditWebContent#GRID_OPTION");
              }
            • 2735
              else if (${webContentGrid} == "false") {
              • 2736
                AssertNotChecked.assertNotCheckedNotVisible( key_column = ${column}, key_fieldFieldLabel = ${webContentGridFieldLabel}, key_row = ${row}, locator1 = "WCEditWebContent#GRID_OPTION");
              }
            }
          • 2744
            if (isSet(webContentImage)) {
            • 2745
              if (!(isSet(webContentImageFieldLabel))) {
              • 2746
                var webContentImageFieldLabel = "Image";
              }
            • 2749
              AssertTextEquals( key_fieldFieldLabel = ${webContentImageFieldLabel}, locator1 = "TextInput#SELECTOR_INPUT", value1 = ${webContentImage});
            • 2754
              AssertElementPresent( key_fieldFieldLabel = ${webContentImageFieldLabel}, key_image = "/documents/", locator1 = "WCEditWebContent#IMAGE_PICKER_PREVIEW");
            • 2759
              if (isSet(webContentImageDescription)) {
              • 2760
                AssertTextEquals( key_fieldFieldLabel = ${webContentImageFieldLabel}, locator1 = "WCEditWebContent#IMAGE_DESCRIPTION", value1 = ${webContentImageDescription});
              }
            }
          • 2767
            if (isSet(webContentLinkToPage)) {
            • 2768
              if (!(isSet(webContentLinkToPageFieldLabel))) {
              • 2769
                var webContentLinkToPageFieldLabel = "Link to Page";
              }
            • 2772
              WaitForEditable( key_fieldFieldLabel = ${webContentLinkToPageFieldLabel}, locator1 = "TextInput#SELECTOR_INPUT");
            • 2776
              var selectedPage = selenium.getElementValue("//label[normalize-space(text())='${webContentLinkToPageFieldLabel}']/following-sibling::div//div[contains(@class,'input-group')]//input[contains(@type,'text')]");
            • 2778
              if (contains(${selectedPage}, ${webContentLinkToPage})) {
              • 2779
                echo("The ${selectedPage} is shown in field.");
              }
            • 2781
              else {
              • 2782
                TestUtils.fail(message = "The ${selectedPage} is not shown in field.");
                • 103
                  if (!(isSet(message))) {
                  • 104
                    var message = "FAIL";
                  }
                • 107
                  echo(${message});
                • 109
                  takeScreenshot();
                • 111
                  fail(${message});
              }
            }
          • 2786
            if (isSet(webContentMultipleSelection)) {
            • 2787
              if (!(isSet(webContentMultipleSelectionFieldLabel))) {
              • 2788
                var webContentMultipleSelectionFieldLabel = "Multiple Selection";
              }
            • 2791
              AssertChecked.assertCheckedNotVisible( key_fieldFieldLabel = ${webContentMultipleSelectionFieldLabel}, key_optionValue = ${webContentMultipleSelection}, locator1 = "WCEditWebContent#SELECTION_OPTION");
            }
          • 2797
            if (isSet(webContentNumeric)) {
            • 2798
              if (!(isSet(webContentNumericFieldLabel))) {
              • 2799
                var webContentNumericFieldLabel = "Numeric";
              }
            • 2802
              AssertTextEquals.assertValue( key_fieldFieldLabel = ${webContentNumericFieldLabel}, locator1 = "WCEditWebContent#TEXT_INPUT", value1 = ${webContentNumeric});
            }
          • 2808
            if (isSet(webContentRichText)) {
            • 2809
              if (!(isSet(webContentRichTextFieldLabel))) {
              • 2810
                var webContentRichTextFieldLabel = "Rich Text";
              }
            • 2813
              SelectFrame.selectFrameNoLoading( key_fieldLabel = ${webContentRichTextFieldLabel}, locator1 = "CKEditor#BODY_FIELD_IFRAME_WEB_CONTENT_ARTICLE");
            • 2817
              AssertTextEquals( locator1 = "CKEditor#BODY", value1 = ${webContentRichText});
            • 2821
              SelectFrameTop();
            }
          • 2824
            if (isSet(webContentSelectFromList)) {
            • 2825
              if (!(isSet(webContentSelectFromListFieldLabel))) {
              • 2826
                var webContentSelectFromListFieldLabel = "Select from List";
              }
            • 2829
              AssertTextEquals( key_fieldFieldLabel = ${webContentSelectFromListFieldLabel}, locator1 = "WCEditWebContent#SELECT_FIELD_TRIGGER", value1 = ${webContentSelectFromList});
            }
          • 2835
            if (isSet(webContentSeparator)) {
            • 2836
              if (!(isSet(webContentSeparatorFieldLabel))) {
              • 2837
                var webContentSeparatorFieldLabel = "Separator";
              }
            • 2840
              AssertVisible( key_fieldFieldLabel = ${webContentSeparatorFieldLabel}, locator1 = "DDMField#SEPARATOR");
            }
          • 2845
            if (isSet(webContentSingleSelection)) {
            • 2846
              if (!(isSet(webContentSingleSelectionFieldLabel))) {
              • 2847
                var webContentSingleSelectionFieldLabel = "Single Selection";
              }
            • 2850
              AssertChecked.assertCheckedNotVisible( key_fieldFieldLabel = ${webContentSingleSelectionFieldLabel}, key_optionValue = ${webContentSingleSelection}, locator1 = "WCEditWebContent#SELECTION_OPTION");
            }
          • 2856
            if (isSet(webContentText)) {
            • 2857
              if (!(isSet(webContentTextFieldLabel))) {
              • 2858
                var webContentTextFieldLabel = "Text";
              }
            • 2861
              if (${fieldType} == "Multiple Lines") {
              • 2862
                WaitForElementPresent( key_fieldFieldLabel = ${webContentTextFieldLabel}, locator1 = "DDMField#MULTIPLE_LINES");
              • 2866
                var actual = TestUtils.getElementTextContent(element = "//label[normalize-space(text())='${webContentTextFieldLabel}']//..//textarea");
                • 115
                  WaitForSPARefresh();
                • 117
                  var javascript = ''' var element = document.evaluate("${element}", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; return element.textContent; ''';
                • 123
                  var textContent = selenium.getEval(${javascript});
                • 125
                  return ${textContent};
              • 2868
                TestUtils.assertEquals( actual = ${actual}, expected = ${webContentText});
                • 36
                  echo(${expected});
                • 38
                  echo(${actual});
                • 40
                  if (${expected} == ${actual}) {
                  • 41
                    echo("PASSED");
                  }
                • 43
                  else {
                  • 44
                    TestUtils.fail(message = "FAILED: expected '${expected}', actual was '${actual}'");
                    • 103
                      if (!(isSet(message))) {
                      • 104
                        var message = "FAIL";
                      }
                    • 107
                      echo(${message});
                    • 109
                      takeScreenshot();
                    • 111
                      fail(${message});
                  }
              }
            • 2872
              else {
              • 2873
                AssertTextEquals.assertValue( key_fieldFieldLabel = ${webContentTextFieldLabel}, locator1 = "WCEditWebContent#TEXT_INPUT", value1 = ${webContentText});
              }
            }
          • 2880
            if (isSet(webContentUpload)) {
            • 2881
              if (!(isSet(webContentUploadFieldLabel))) {
              • 2882
                var webContentUploadFieldLabel = "Upload";
              }
            • 2885
              AssertTextEquals( key_fieldFieldLabel = ${webContentUploadFieldLabel}, locator1 = "TextInput#SELECTOR_INPUT", value1 = ${webContentUpload});
            }
          • 2891
            if (isSet(webContentWebContent)) {
            • 2892
              if (!(isSet(webContentWebContentFieldLabel))) {
              • 2893
                var webContentWebContentFieldLabel = "Web Content";
              }
            • 2896
              AssertTextEquals( key_fieldFieldLabel = ${webContentWebContentFieldLabel}, locator1 = "TextInput#SELECTOR_INPUT", value1 = ${webContentWebContent});
            }
        • 316
          takeScreenshot();
        • 318
          WebContent.viewWithStructureCP( fieldType = "Multiple Lines", predefinedValue = "true", webContentText = ${content}, webContentTextFieldLabel = "Text Box");
          • 2610
            if (!(isSet(predefinedValue))) {
            • 2611
              if (${skipGotoEditCp} != "true") {
              • 2612
                LexiconEntry.changeDisplayStyle(displayStyle = "list");
                • 4
                  WaitForPageLoad();
                • 6
                  Click.mouseOverClick(locator1 = "Icon#CURRENT_DISPLAY_STYLE");
                • 8
                  MenuItem.click(menuItem = StringUtil.upperCaseFirstLetter(${displayStyle}));
                  • 4
                    Click( key_menuItem = ${menuItem}, locator1 = "MenuItem#ANY_MENU_ITEM");
              • 2614
                WebContentNavigator.gotoEditCP( webContentTitle = ${webContentTitle}, webContentTitleEscapeCharacter = ${webContentTitleEscapeCharacter});
                • 55
                  WebContentNavigator._openDescriptiveMenulistCP( webContentTitle = ${webContentTitle}, webContentTitleEscapeCharacter = ${webContentTitleEscapeCharacter});
                  • 4
                    if (isSet(webContentTitleEscapeCharacter)) {
                    • 5
                      var key_webContentTitle = ${webContentTitleEscapeCharacter};
                    }
                  • 7
                    else {
                    • 8
                      var key_webContentTitle = ${webContentTitle};
                    }
                  • 11
                    LexiconEntry.changeDisplayStyle(displayStyle = "list");
                    • 4
                      WaitForPageLoad();
                    • 6
                      Click.mouseOverClick(locator1 = "Icon#CURRENT_DISPLAY_STYLE");
                    • 8
                      MenuItem.click(menuItem = StringUtil.upperCaseFirstLetter(${displayStyle}));
                      • 4
                        Click( key_menuItem = ${menuItem}, locator1 = "MenuItem#ANY_MENU_ITEM");
                  • 13
                    if (${liveSite} == "true") {
                    • 14
                      AssertTextEquals.assertPartialText( locator1 = "WC#ENTRY_LIST_TITLE_ON_LIVE", value1 = ${webContentTitle});
                    }
                  • 18
                    else {
                    • 19
                      AssertTextEquals.assertPartialText( locator1 = "WC#ENTRY_LIST_TITLE", value1 = ${webContentTitle});
                    }
                  • 24
                    Click.waitForMenuToggleJSClick(locator1 = "WC#ENTRY_LIST_MENULIST_ICON");
                • 59
                  MenuItem.click(menuItem = "Edit");
                  • 4
                    Click( key_menuItem = ${menuItem}, locator1 = "MenuItem#ANY_MENU_ITEM");
                • 61
                  AssertElementPresent(locator1 = "Icon#BACK");
              • 2618
                AssertVisible(locator1 = "WCEditWebContent#SIDEBAR");
              }
            • 2621
              if (isSet(webContentLocaleFieldLabel)) {
              • 2622
                PortletEntry.changeLocale(locale = ${webContentLocaleFieldLabel});
                • 4
                  Portlet.waitForForm();
                  • 902
                    AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
                • 6
                  if (isSet(fieldName)) {
                  • 7
                    Click.clickNoMouseOver( key_fieldName = ${fieldName}, locator1 = "Button#LOCALIZATION");
                  }
                • 11
                  else if (isSet(friendlyURLHistory)) {
                  • 12
                    Click.clickNoMouseOver(locator1 = "Icon#FRIENDLY_URL_HISTORY_LOCALIZATION");
                  }
                • 14
                  else if (isSet(modal)) {
                  • 15
                    Click(locator1 = "Modal#LOCALIZATION_DROPDOWN_TOGGLE");
                  }
                • 17
                  else {
                  • 18
                    Click.clickNoMouseOver(locator1 = "Button#LOCALIZATION_GENERIC");
                  }
                • 21
                  if (isSet(localizedFriendlyURL)) {
                  • 22
                    Click.clickNoMouseOver(locator1 = "Icon#FRIENDLY_URL_HISTORY_SPANISH_LOCALIZATION");
                  }
                • 24
                  else if (isSet(modal)) {
                  • 25
                    Click( key_locale = ${locale}, locator1 = "Translation#DROPDOWN_MENU_ITEM");
                  }
                • 29
                  else {
                  • 30
                    Click( key_locale = ${locale}, locator1 = "Translation#LOCALIZATION_NAME");
                  }
              }
            • 2625
              if (isSet(webContentTitleTranslated)) {
              • 2626
                AssertTextEquals( locator1 = "TextInput#TITLE", value1 = ${webContentTitleTranslated});
              }
            • 2630
              else {
              • 2631
                AssertTextEquals( locator1 = "TextInput#TITLE", value1 = ${webContentTitle});
              }
            • 2636
              if (isSet(description)) {
              • 2637
                SelectFrame.selectFrameNoLoading( key_fieldLabel = "Description", locator1 = "CKEditor#BODY_FIELD_IFRAME_WEB_CONTENT_ARTICLE");
              • 2641
                AssertTextEquals( locator1 = "CKEditor#BODY", value1 = ${description});
              • 2645
                SelectFrameTop(value1 = "relative=top");
              }
            }
          • 2649
            if (${webContentBoolean} == "true") {
            • 2650
              var webContentBooleanFieldLabel = "Boolean";
            • 2652
              AssertChecked.assertCheckedNotVisible( checkboxName = ${webContentBooleanFieldLabel}, locator1 = "Checkbox#ANY_CHECKBOX");
            }
          • 2656
            else if (${webContentBoolean} == "false") {
            • 2657
              var webContentBooleanFieldLabel = "Boolean";
            • 2659
              AssertNotChecked.assertNotCheckedNotVisible( checkboxName = ${webContentBooleanFieldLabel}, locator1 = "Checkbox#ANY_CHECKBOX");
            }
          • 2664
            if (isSet(webContentColor)) {
            • 2665
              if (!(isSet(webContentColorFieldLabel))) {
              • 2666
                var webContentColorFieldLabel = "Color";
              }
            • 2669
              AssertTextEquals.assertValue( key_fieldFieldLabel = ${webContentColorFieldLabel}, locator1 = "TextInput#SELECTOR_INPUT", value1 = ${webContentColor});
            }
          • 2675
            if (isSet(webContentDate)) {
            • 2676
              if (!(isSet(webContentDateFieldLabel))) {
              • 2677
                var webContentDateFieldLabel = "Date";
              }
            • 2680
              if (${webContentDate} == "__/__/____") {
              • 2681
                AssertAttributeValue( attribute1 = "placeholder", key_fieldFieldLabel = ${webContentDateFieldLabel}, locator1 = "WCEditWebContent#DATE_INPUT", value1 = ${webContentDate});
              • 2687
                AssertAttributeValue( attribute1 = "value", key_fieldFieldLabel = ${webContentDateFieldLabel}, locator1 = "WCEditWebContent#DATE_INPUT", value1 = "");
              }
            • 2693
              else {
              • 2694
                AssertAttributeValue( attribute1 = "value", key_fieldFieldLabel = ${webContentDateFieldLabel}, locator1 = "WCEditWebContent#DATE_INPUT", value1 = ${webContentDate});
              }
            }
          • 2702
            if (isSet(webContentGeolocation)) {
            • 2703
              if (!(isSet(webContentGeolocationFieldLabel))) {
              • 2704
                var webContentGeolocationFieldLabel = "Geolocation";
              }
            • 2707
              AssertElementPresent( key_fieldFieldLabel = ${webContentGeolocationFieldLabel}, locator1 = "DDMEditStructure#FORM_FIELD_CONTAINER_LABEL");
            • 2711
              if (isSet(location)) {
              • 2712
                var lat = StringUtil.extractFirst(${location}, ",");
              • 2713
                var lng = StringUtil.extractLast(${location}, ",");
              • 2715
                Geolocation.assertMarkerPosition( lat = ${lat}, lng = ${lng});
                • 4
                  WaitForVisible(locator1 = "DDMField#GEOLOCATION_MAP");
                • 6
                  if (IsElementPresent(locator1 = "//div[contains(@class,'ddm-geolocation')]")) {
                  • 7
                    AssertAttributeValue( attribute1 = "value", locator1 = "DDMField#GEOLOCATION_MAP_INPUT", value1 = "{\"lat\":${lat},\"lng\":${lng}}");
                  }
                • 12
                  else if (IsElementPresent(locator1 = "//div[contains(@id,'Location')]")) {
                  • 13
                    AssertAttributeValue( attribute1 = "value", locator1 = "DDMField#GEOLOCATION_MAP_INPUT", value1 = "{\"latitude\":${lat},\"longitude\":${lng}}");
                  }
              }
            }
          • 2721
            if (isSet(webContentGrid)) {
            • 2722
              if (!(isSet(webContentGridFieldLabel))) {
              • 2723
                var webContentGridFieldLabel = "Grid";
              }
            • 2726
              var column = ${column} + 1;
            • 2728
              if (${webContentGrid} == "true") {
              • 2729
                AssertChecked.assertCheckedNotVisible( key_column = ${column}, key_fieldFieldLabel = ${webContentGridFieldLabel}, key_row = ${row}, locator1 = "WCEditWebContent#GRID_OPTION");
              }
            • 2735
              else if (${webContentGrid} == "false") {
              • 2736
                AssertNotChecked.assertNotCheckedNotVisible( key_column = ${column}, key_fieldFieldLabel = ${webContentGridFieldLabel}, key_row = ${row}, locator1 = "WCEditWebContent#GRID_OPTION");
              }
            }
          • 2744
            if (isSet(webContentImage)) {
            • 2745
              if (!(isSet(webContentImageFieldLabel))) {
              • 2746
                var webContentImageFieldLabel = "Image";
              }
            • 2749
              AssertTextEquals( key_fieldFieldLabel = ${webContentImageFieldLabel}, locator1 = "TextInput#SELECTOR_INPUT", value1 = ${webContentImage});
            • 2754
              AssertElementPresent( key_fieldFieldLabel = ${webContentImageFieldLabel}, key_image = "/documents/", locator1 = "WCEditWebContent#IMAGE_PICKER_PREVIEW");
            • 2759
              if (isSet(webContentImageDescription)) {
              • 2760
                AssertTextEquals( key_fieldFieldLabel = ${webContentImageFieldLabel}, locator1 = "WCEditWebContent#IMAGE_DESCRIPTION", value1 = ${webContentImageDescription});
              }
            }
          • 2767
            if (isSet(webContentLinkToPage)) {
            • 2768
              if (!(isSet(webContentLinkToPageFieldLabel))) {
              • 2769
                var webContentLinkToPageFieldLabel = "Link to Page";
              }
            • 2772
              WaitForEditable( key_fieldFieldLabel = ${webContentLinkToPageFieldLabel}, locator1 = "TextInput#SELECTOR_INPUT");
            • 2776
              var selectedPage = selenium.getElementValue("//label[normalize-space(text())='${webContentLinkToPageFieldLabel}']/following-sibling::div//div[contains(@class,'input-group')]//input[contains(@type,'text')]");
            • 2778
              if (contains(${selectedPage}, ${webContentLinkToPage})) {
              • 2779
                echo("The ${selectedPage} is shown in field.");
              }
            • 2781
              else {
              • 2782
                TestUtils.fail(message = "The ${selectedPage} is not shown in field.");
                • 103
                  if (!(isSet(message))) {
                  • 104
                    var message = "FAIL";
                  }
                • 107
                  echo(${message});
                • 109
                  takeScreenshot();
                • 111
                  fail(${message});
              }
            }
          • 2786
            if (isSet(webContentMultipleSelection)) {
            • 2787
              if (!(isSet(webContentMultipleSelectionFieldLabel))) {
              • 2788
                var webContentMultipleSelectionFieldLabel = "Multiple Selection";
              }
            • 2791
              AssertChecked.assertCheckedNotVisible( key_fieldFieldLabel = ${webContentMultipleSelectionFieldLabel}, key_optionValue = ${webContentMultipleSelection}, locator1 = "WCEditWebContent#SELECTION_OPTION");
            }
          • 2797
            if (isSet(webContentNumeric)) {
            • 2798
              if (!(isSet(webContentNumericFieldLabel))) {
              • 2799
                var webContentNumericFieldLabel = "Numeric";
              }
            • 2802
              AssertTextEquals.assertValue( key_fieldFieldLabel = ${webContentNumericFieldLabel}, locator1 = "WCEditWebContent#TEXT_INPUT", value1 = ${webContentNumeric});
            }
          • 2808
            if (isSet(webContentRichText)) {
            • 2809
              if (!(isSet(webContentRichTextFieldLabel))) {
              • 2810
                var webContentRichTextFieldLabel = "Rich Text";
              }
            • 2813
              SelectFrame.selectFrameNoLoading( key_fieldLabel = ${webContentRichTextFieldLabel}, locator1 = "CKEditor#BODY_FIELD_IFRAME_WEB_CONTENT_ARTICLE");
            • 2817
              AssertTextEquals( locator1 = "CKEditor#BODY", value1 = ${webContentRichText});
            • 2821
              SelectFrameTop();
            }
          • 2824
            if (isSet(webContentSelectFromList)) {
            • 2825
              if (!(isSet(webContentSelectFromListFieldLabel))) {
              • 2826
                var webContentSelectFromListFieldLabel = "Select from List";
              }
            • 2829
              AssertTextEquals( key_fieldFieldLabel = ${webContentSelectFromListFieldLabel}, locator1 = "WCEditWebContent#SELECT_FIELD_TRIGGER", value1 = ${webContentSelectFromList});
            }
          • 2835
            if (isSet(webContentSeparator)) {
            • 2836
              if (!(isSet(webContentSeparatorFieldLabel))) {
              • 2837
                var webContentSeparatorFieldLabel = "Separator";
              }
            • 2840
              AssertVisible( key_fieldFieldLabel = ${webContentSeparatorFieldLabel}, locator1 = "DDMField#SEPARATOR");
            }
          • 2845
            if (isSet(webContentSingleSelection)) {
            • 2846
              if (!(isSet(webContentSingleSelectionFieldLabel))) {
              • 2847
                var webContentSingleSelectionFieldLabel = "Single Selection";
              }
            • 2850
              AssertChecked.assertCheckedNotVisible( key_fieldFieldLabel = ${webContentSingleSelectionFieldLabel}, key_optionValue = ${webContentSingleSelection}, locator1 = "WCEditWebContent#SELECTION_OPTION");
            }
          • 2856
            if (isSet(webContentText)) {
            • 2857
              if (!(isSet(webContentTextFieldLabel))) {
              • 2858
                var webContentTextFieldLabel = "Text";
              }
            • 2861
              if (${fieldType} == "Multiple Lines") {
              • 2862
                WaitForElementPresent( key_fieldFieldLabel = ${webContentTextFieldLabel}, locator1 = "DDMField#MULTIPLE_LINES");
              • 2866
                var actual = TestUtils.getElementTextContent(element = "//label[normalize-space(text())='${webContentTextFieldLabel}']//..//textarea");
                • 115
                  WaitForSPARefresh();
                • 117
                  var javascript = ''' var element = document.evaluate("${element}", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; return element.textContent; ''';
                • 123
                  var textContent = selenium.getEval(${javascript});
                • 125
                  return ${textContent};
              • 2868
                TestUtils.assertEquals( actual = ${actual}, expected = ${webContentText});
                • 36
                  echo(${expected});
                • 38
                  echo(${actual});
                • 40
                  if (${expected} == ${actual}) {
                  • 41
                    echo("PASSED");
                  }
                • 43
                  else {
                  • 44
                    TestUtils.fail(message = "FAILED: expected '${expected}', actual was '${actual}'");
                    • 103
                      if (!(isSet(message))) {
                      • 104
                        var message = "FAIL";
                      }
                    • 107
                      echo(${message});
                    • 109
                      takeScreenshot();
                    • 111
                      fail(${message});
                  }
              }
            • 2872
              else {
              • 2873
                AssertTextEquals.assertValue( key_fieldFieldLabel = ${webContentTextFieldLabel}, locator1 = "WCEditWebContent#TEXT_INPUT", value1 = ${webContentText});
              }
            }
          • 2880
            if (isSet(webContentUpload)) {
            • 2881
              if (!(isSet(webContentUploadFieldLabel))) {
              • 2882
                var webContentUploadFieldLabel = "Upload";
              }
            • 2885
              AssertTextEquals( key_fieldFieldLabel = ${webContentUploadFieldLabel}, locator1 = "TextInput#SELECTOR_INPUT", value1 = ${webContentUpload});
            }
          • 2891
            if (isSet(webContentWebContent)) {
            • 2892
              if (!(isSet(webContentWebContentFieldLabel))) {
              • 2893
                var webContentWebContentFieldLabel = "Web Content";
              }
            • 2896
              AssertTextEquals( key_fieldFieldLabel = ${webContentWebContentFieldLabel}, locator1 = "TextInput#SELECTOR_INPUT", value1 = ${webContentWebContent});
            }
        }
      }
    • 33
      tearDown {
      • 34
        var testPortalInstance = PropsUtil.get("test.portal.instance");
      • 36
        if (${testPortalInstance} == "true") {
        • 37
          PortalInstances.tearDownCP();
          • 173
            JSONUser.tearDownNonAdminUsers(authenticationMethod = ${authenticationMethod});
            • 284
              var userIds = JSONUserAPI._getUserIds(authenticationMethod = ${authenticationMethod});
              • 294
                var companyId = JSONCompany.getCompanyId(authenticationMethod = ${authenticationMethod});
                • 23
                  if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                  • 24
                    var portalInstanceName = JSONCompany.getPortalInstanceName();
                    • 107
                      var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                    • 108
                      var testPortalInstance = PropsUtil.get("test.portal.instance");
                    • 110
                      if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                      • 111
                        var portalURL = JSONCompany.getPortalURL();
                        • 138
                          var portalURL = PropsUtil.get("portal.url");
                        • 140
                          return ${portalURL};
                      • 113
                        var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                        • 144
                          Variables.assertDefined(parameterList = ${portalURL});
                          • 5
                            if (!(isSet(parameterList))) {
                            • 6
                              fail("Please define a parameter list in 'parameterList'");
                            }
                          • 9
                            for (var parameter : list ${parameterList}) {
                            • 13
                              var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                            • 17
                              if ((${undefined} == "true") && (${parameter} != "false")) {
                              • 18
                                fail("Please set '${parameter}'");
                              }
                            }
                        • 146
                          var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                        • 148
                          var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                        • 150
                          return ${portalInstanceName};
                      • 115
                        return ${portalInstanceName};
                      }
                    • 117
                      else {
                      • 118
                        return "localhost";
                      }
                  }
                • 27
                  if (!(isSet(portalURL))) {
                  • 28
                    var portalURL = JSONCompany.getPortalURL();
                    • 138
                      var portalURL = PropsUtil.get("portal.url");
                    • 140
                      return ${portalURL};
                  }
                • 31
                  if (!(isSet(creatorEmailAddress))) {
                  • 32
                    if (${authenticationMethod} == "By Screen Name") {
                    • 33
                      if (!(isSet(userScreenName))) {
                      • 34
                        var creatorEmailAddress = "test";
                      }
                    • 36
                      else {
                      • 37
                        var creatorEmailAddress = ${userScreenName};
                      }
                    }
                  • 40
                    else {
                    • 41
                      var creatorEmailAddress = "test@liferay.com";
                    }
                  }
                • 45
                  if (!(isSet(creatorPassword))) {
                  • 46
                    var creatorPassword = "test";
                  }
                • 49
                  var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                • 54
                  var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                • 56
                  return ${companyId};
              • 296
                if (isSet(specificURL)) {
                • 297
                  var portalURL = ${specificURL};
                }
              • 299
                else {
                • 300
                  var portalURL = JSONCompany.getPortalURL();
                  • 138
                    var portalURL = PropsUtil.get("portal.url");
                  • 140
                    return ${portalURL};
                }
              • 303
                if (${authenticationMethod} == "By Screen Name") {
                • 304
                  var userName = "test";
                }
              • 306
                else {
                • 307
                  var userName = "test@liferay.com";
                }
              • 310
                var curl = ''' ${portalURL}/api/jsonws/user/get-company-users \ -u ${userName}:test \ -d companyId=${companyId} \ -d \ -d ''';
              • 318
                var userIds = JSONCurlUtil.post(${curl}, "$..['userId']");
              • 320
                return ${userIds};
            • 286
              for (var userId : list ${userIds}) {
              • 287
                var currentEmailAddress = JSONUserGetter.getEmailAddress( authenticationMethod = ${authenticationMethod}, userId = ${userId});
                • 46
                  Variables.assertDefined(parameterList = ${userId});
                  • 5
                    if (!(isSet(parameterList))) {
                    • 6
                      fail("Please define a parameter list in 'parameterList'");
                    }
                  • 9
                    for (var parameter : list ${parameterList}) {
                    • 13
                      var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                    • 17
                      if ((${undefined} == "true") && (${parameter} != "false")) {
                      • 18
                        fail("Please set '${parameter}'");
                      }
                    }
                • 48
                  var curl = JSONUserGetter._getUserByIdCurl( authenticationMethod = ${authenticationMethod}, userId = ${userId});
                  • 4
                    Variables.assertDefined(parameterList = ${userId});
                    • 5
                      if (!(isSet(parameterList))) {
                      • 6
                        fail("Please define a parameter list in 'parameterList'");
                      }
                    • 9
                      for (var parameter : list ${parameterList}) {
                      • 13
                        var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                      • 17
                        if ((${undefined} == "true") && (${parameter} != "false")) {
                        • 18
                          fail("Please set '${parameter}'");
                        }
                      }
                  • 6
                    var companyId = JSONCompany.getCompanyId(authenticationMethod = ${authenticationMethod});
                    • 23
                      if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                      • 24
                        var portalInstanceName = JSONCompany.getPortalInstanceName();
                        • 107
                          var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                        • 108
                          var testPortalInstance = PropsUtil.get("test.portal.instance");
                        • 110
                          if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                          • 111
                            var portalURL = JSONCompany.getPortalURL();
                            • 138
                              var portalURL = PropsUtil.get("portal.url");
                            • 140
                              return ${portalURL};
                          • 113
                            var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                            • 144
                              Variables.assertDefined(parameterList = ${portalURL});
                              • 5
                                if (!(isSet(parameterList))) {
                                • 6
                                  fail("Please define a parameter list in 'parameterList'");
                                }
                              • 9
                                for (var parameter : list ${parameterList}) {
                                • 13
                                  var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                                • 17
                                  if ((${undefined} == "true") && (${parameter} != "false")) {
                                  • 18
                                    fail("Please set '${parameter}'");
                                  }
                                }
                            • 146
                              var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                            • 148
                              var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                            • 150
                              return ${portalInstanceName};
                          • 115
                            return ${portalInstanceName};
                          }
                        • 117
                          else {
                          • 118
                            return "localhost";
                          }
                      }
                    • 27
                      if (!(isSet(portalURL))) {
                      • 28
                        var portalURL = JSONCompany.getPortalURL();
                        • 138
                          var portalURL = PropsUtil.get("portal.url");
                        • 140
                          return ${portalURL};
                      }
                    • 31
                      if (!(isSet(creatorEmailAddress))) {
                      • 32
                        if (${authenticationMethod} == "By Screen Name") {
                        • 33
                          if (!(isSet(userScreenName))) {
                          • 34
                            var creatorEmailAddress = "test";
                          }
                        • 36
                          else {
                          • 37
                            var creatorEmailAddress = ${userScreenName};
                          }
                        }
                      • 40
                        else {
                        • 41
                          var creatorEmailAddress = "test@liferay.com";
                        }
                      }
                    • 45
                      if (!(isSet(creatorPassword))) {
                      • 46
                        var creatorPassword = "test";
                      }
                    • 49
                      var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                    • 54
                      var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                    • 56
                      return ${companyId};
                  • 7
                    var portalURL = JSONCompany.getPortalURL();
                    • 138
                      var portalURL = PropsUtil.get("portal.url");
                    • 140
                      return ${portalURL};
                  • 9
                    if (${authenticationMethod} == "By Screen Name") {
                    • 10
                      var userName = "test";
                    }
                  • 12
                    else {
                    • 13
                      var userName = "test@liferay.com";
                    }
                  • 16
                    var curl = ''' ${portalURL}/api/jsonws/user/get-user-by-id/user-id/${userId} \ -u ${userName}:test \ ''';
                  • 21
                    return ${curl};
                • 52
                  var userEmailAddress = JSONCurlUtil.get(${curl}, "$['emailAddress']");
                • 54
                  return ${userEmailAddress};
              • 291
                if (${currentEmailAddress} != "test@liferay.com") {
                • 292
                  JSONUser.deleteUserByUserId( authenticationMethod = ${authenticationMethod}, userId = ${userId});
                  • 227
                    Variables.assertDefined(parameterList = ${userId});
                    • 5
                      if (!(isSet(parameterList))) {
                      • 6
                        fail("Please define a parameter list in 'parameterList'");
                      }
                    • 9
                      for (var parameter : list ${parameterList}) {
                      • 13
                        var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                      • 17
                        if ((${undefined} == "true") && (${parameter} != "false")) {
                        • 18
                          fail("Please set '${parameter}'");
                        }
                      }
                  • 229
                    JSONUserAPI._deleteUser( authenticationMethod = ${authenticationMethod}, userId = ${userId});
                    • 152
                      Variables.assertDefined(parameterList = ${userId});
                      • 5
                        if (!(isSet(parameterList))) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list ${parameterList}) {
                        • 13
                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                        • 17
                          if ((${undefined} == "true") && (${parameter} != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 154
                      if (isSet(specificURL)) {
                      • 155
                        var portalURL = ${specificURL};
                      }
                    • 157
                      else {
                      • 158
                        var portalURL = JSONCompany.getPortalURL();
                        • 138
                          var portalURL = PropsUtil.get("portal.url");
                        • 140
                          return ${portalURL};
                      }
                    • 161
                      if (${authenticationMethod} == "By Screen Name") {
                      • 162
                        var userName = "test";
                      }
                    • 164
                      else {
                      • 165
                        var userName = "test@liferay.com";
                      }
                    • 168
                      var curl = ''' ${portalURL}/api/jsonws/user/delete-user \ -u ${userName}:test \ -d userId=${userId} ''';
                    • 174
                      com.liferay.poshi.runner.util.JSONCurlUtil.post(${curl});
                }
              }
          • 175
            HeadlessPortalInstanceAPI.cleanAllPortalInstances(authenticationMethod = ${authenticationMethod});
            • 106
              var portalInstanceJson = HeadlessPortalInstanceAPI._getPortalInstances(authenticationMethod = ${authenticationMethod});
              • 5
                var portalURL = JSONCompany.getDefaultPortalURL();
                • 97
                  var portalURL = PropsUtil.get("default.portal.url");
                • 99
                  if (!(contains(${portalURL}, "http"))) {
                  • 100
                    var portalURL = "http://${portalURL}";
                  }
                • 103
                  return ${portalURL};
              • 7
                if (${authenticationMethod} == "By Screen Name") {
                • 8
                  var userName = "test";
                }
              • 10
                else {
                • 11
                  var userName = "test@liferay.com";
                }
              • 14
                var curl = ''' ${portalURL}/o/headless-portal-instances/v1.0/portal-instances \ -u ${userName}:test \ -H Content-Type: application/json ''';
              • 20
                var json = JSONCurlUtil.get(${curl});
              • 22
                return ${json};
            • 108
              var portalInstanceIds = JSONUtil.getWithJSONPath(${portalInstanceJson}, "$.items..portalInstanceId");
            • 110
              for (var portalInstanceId : list ${portalInstanceIds}) {
              • 111
                if (${portalInstanceId} != "liferay.com") {
                • 112
                  HeadlessPortalInstanceAPI.deletePortalInstance( authenticationMethod = ${authenticationMethod}, portalInstanceId = ${portalInstanceId});
                  • 121
                    Variables.assertDefined(parameterList = ${portalInstanceId});
                    • 5
                      if (!(isSet(parameterList))) {
                      • 6
                        fail("Please define a parameter list in 'parameterList'");
                      }
                    • 9
                      for (var parameter : list ${parameterList}) {
                      • 13
                        var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                      • 17
                        if ((${undefined} == "true") && (${parameter} != "false")) {
                        • 18
                          fail("Please set '${parameter}'");
                        }
                      }
                  • 123
                    var portalURL = JSONCompany.getDefaultPortalURL();
                    • 97
                      var portalURL = PropsUtil.get("default.portal.url");
                    • 99
                      if (!(contains(${portalURL}, "http"))) {
                      • 100
                        var portalURL = "http://${portalURL}";
                      }
                    • 103
                      return ${portalURL};
                  • 124
                    var portalInstanceId = StringUtil.replace(${portalInstanceId}, " ", "%20");
                  • 126
                    if (${authenticationMethod} == "By Screen Name") {
                    • 127
                      var userName = "test";
                    }
                  • 129
                    else {
                    • 130
                      var userName = "test@liferay.com";
                    }
                  • 133
                    var curl = ''' ${portalURL}/o/headless-portal-instances/v1.0/portal-instances/${portalInstanceId} \ -u ${userName}:test \ -H Content-Type: application/json ''';
                  • 139
                    JSONCurlUtil.delete(${curl});
                }
              }
        }
      • 39
        else {
        • 40
          JSONGroup.deleteGroupByName(groupName = "Test Site Name");
          • 111
            Variables.assertDefined(parameterList = ${groupName});
            • 5
              if (!(isSet(parameterList))) {
              • 6
                fail("Please define a parameter list in 'parameterList'");
              }
            • 9
              for (var parameter : list ${parameterList}) {
              • 13
                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
              • 17
                if ((${undefined} == "true") && (${parameter} != "false")) {
                • 18
                  fail("Please set '${parameter}'");
                }
              }
          • 113
            var groupId = JSONGroupSetter.setGroupId( groupName = ${groupName}, portalURL = ${portalURL});
            • 44
              Variables.assertDefined(parameterList = ${groupName});
              • 5
                if (!(isSet(parameterList))) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list ${parameterList}) {
                • 13
                  var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                • 17
                  if ((${undefined} == "true") && (${parameter} != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 46
              if (!(isSet(site))) {
              • 47
                var site = "true";
              }
            • 50
              var groupId = JSONGroupAPI._getGroupIdByName( groupName = ${groupName}, parentGroupName = ${parentGroupName}, portalURL = ${portalURL}, site = ${site});
              • 245
                Variables.assertDefined(parameterList = "${groupName},${site}");
                • 5
                  if (!(isSet(parameterList))) {
                  • 6
                    fail("Please define a parameter list in 'parameterList'");
                  }
                • 9
                  for (var parameter : list ${parameterList}) {
                  • 13
                    var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                  • 17
                    if ((${undefined} == "true") && (${parameter} != "false")) {
                    • 18
                      fail("Please set '${parameter}'");
                    }
                  }
              • 247
                if (!(isSet(portalURL))) {
                • 248
                  var portalURL = JSONCompany.getPortalURL();
                  • 138
                    var portalURL = PropsUtil.get("portal.url");
                  • 140
                    return ${portalURL};
                }
              • 251
                if (isSet(noSelenium)) {
                • 252
                  var companyId = JSONCompany.getCompanyIdNoSelenium(portalURL = ${portalURL});
                  • 60
                    if (!(isSet(portalInstanceName))) {
                    • 61
                      var portalInstanceName = JSONCompany.getPortalInstanceNameNoSelenium();
                      • 123
                        var testPortalInstance = PropsUtil.get("test.portal.instance");
                      • 125
                        if (${testPortalInstance} == "true") {
                        • 126
                          var portalURL = JSONCompany.getPortalURL();
                          • 138
                            var portalURL = PropsUtil.get("portal.url");
                          • 140
                            return ${portalURL};
                        • 128
                          var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                          • 144
                            Variables.assertDefined(parameterList = ${portalURL});
                            • 5
                              if (!(isSet(parameterList))) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list ${parameterList}) {
                              • 13
                                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                              • 17
                                if ((${undefined} == "true") && (${parameter} != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 146
                            var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                          • 148
                            var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                          • 150
                            return ${portalInstanceName};
                        • 130
                          return ${portalInstanceName};
                        }
                      • 132
                        else {
                        • 133
                          return "localhost";
                        }
                    }
                  • 64
                    if (!(isSet(portalURL))) {
                    • 65
                      var portalURL = JSONCompany.getPortalURL();
                      • 138
                        var portalURL = PropsUtil.get("portal.url");
                      • 140
                        return ${portalURL};
                    }
                  • 68
                    if (!(isSet(creatorEmailAddress))) {
                    • 69
                      if (${authenticationMethod} == "By Screen Name") {
                      • 70
                        if (!(isSet(userScreenName))) {
                        • 71
                          var creatorEmailAddress = "test";
                        }
                      • 73
                        else {
                        • 74
                          var creatorEmailAddress = ${userScreenName};
                        }
                      }
                    • 77
                      else {
                      • 78
                        var creatorEmailAddress = "test@liferay.com";
                      }
                    }
                  • 82
                    if (!(isSet(creatorPassword))) {
                    • 83
                      var creatorPassword = "test";
                    }
                  • 86
                    var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                  • 91
                    var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                  • 93
                    return ${companyId};
                }
              • 254
                else {
                • 255
                  var companyId = JSONCompany.getCompanyId(portalURL = ${portalURL});
                  • 23
                    if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                    • 24
                      var portalInstanceName = JSONCompany.getPortalInstanceName();
                      • 107
                        var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                      • 108
                        var testPortalInstance = PropsUtil.get("test.portal.instance");
                      • 110
                        if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                        • 111
                          var portalURL = JSONCompany.getPortalURL();
                          • 138
                            var portalURL = PropsUtil.get("portal.url");
                          • 140
                            return ${portalURL};
                        • 113
                          var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                          • 144
                            Variables.assertDefined(parameterList = ${portalURL});
                            • 5
                              if (!(isSet(parameterList))) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list ${parameterList}) {
                              • 13
                                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                              • 17
                                if ((${undefined} == "true") && (${parameter} != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 146
                            var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                          • 148
                            var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                          • 150
                            return ${portalInstanceName};
                        • 115
                          return ${portalInstanceName};
                        }
                      • 117
                        else {
                        • 118
                          return "localhost";
                        }
                    }
                  • 27
                    if (!(isSet(portalURL))) {
                    • 28
                      var portalURL = JSONCompany.getPortalURL();
                      • 138
                        var portalURL = PropsUtil.get("portal.url");
                      • 140
                        return ${portalURL};
                    }
                  • 31
                    if (!(isSet(creatorEmailAddress))) {
                    • 32
                      if (${authenticationMethod} == "By Screen Name") {
                      • 33
                        if (!(isSet(userScreenName))) {
                        • 34
                          var creatorEmailAddress = "test";
                        }
                      • 36
                        else {
                        • 37
                          var creatorEmailAddress = ${userScreenName};
                        }
                      }
                    • 40
                      else {
                      • 41
                        var creatorEmailAddress = "test@liferay.com";
                      }
                    }
                  • 45
                    if (!(isSet(creatorPassword))) {
                    • 46
                      var creatorPassword = "test";
                    }
                  • 49
                    var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                  • 54
                    var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                  • 56
                    return ${companyId};
                }
              • 258
                var parentGroupId = JSONGroupSetter.setParentGroupId( grandParentGroupName = ${grandParentGroupName}, parentGroupName = ${parentGroupName});
                • 83
                  if (isSet(parentGroupName)) {
                  • 84
                    var parentGroupId = JSONGroupAPI._getParentGroupIdByName( grandParentGroupName = ${grandParentGroupName}, groupName = ${parentGroupName});
                    • 371
                      Variables.assertDefined(parameterList = ${groupName});
                      • 5
                        if (!(isSet(parameterList))) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list ${parameterList}) {
                        • 13
                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                        • 17
                          if ((${undefined} == "true") && (${parameter} != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 373
                      var companyId = JSONCompany.getCompanyId();
                      • 23
                        if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                        • 24
                          var portalInstanceName = JSONCompany.getPortalInstanceName();
                          • 107
                            var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                          • 108
                            var testPortalInstance = PropsUtil.get("test.portal.instance");
                          • 110
                            if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                            • 111
                              var portalURL = JSONCompany.getPortalURL();
                              • 138
                                var portalURL = PropsUtil.get("portal.url");
                              • 140
                                return ${portalURL};
                            • 113
                              var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                              • 144
                                Variables.assertDefined(parameterList = ${portalURL});
                                • 5
                                  if (!(isSet(parameterList))) {
                                  • 6
                                    fail("Please define a parameter list in 'parameterList'");
                                  }
                                • 9
                                  for (var parameter : list ${parameterList}) {
                                  • 13
                                    var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                                  • 17
                                    if ((${undefined} == "true") && (${parameter} != "false")) {
                                    • 18
                                      fail("Please set '${parameter}'");
                                    }
                                  }
                              • 146
                                var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                              • 148
                                var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                              • 150
                                return ${portalInstanceName};
                            • 115
                              return ${portalInstanceName};
                            }
                          • 117
                            else {
                            • 118
                              return "localhost";
                            }
                        }
                      • 27
                        if (!(isSet(portalURL))) {
                        • 28
                          var portalURL = JSONCompany.getPortalURL();
                          • 138
                            var portalURL = PropsUtil.get("portal.url");
                          • 140
                            return ${portalURL};
                        }
                      • 31
                        if (!(isSet(creatorEmailAddress))) {
                        • 32
                          if (${authenticationMethod} == "By Screen Name") {
                          • 33
                            if (!(isSet(userScreenName))) {
                            • 34
                              var creatorEmailAddress = "test";
                            }
                          • 36
                            else {
                            • 37
                              var creatorEmailAddress = ${userScreenName};
                            }
                          }
                        • 40
                          else {
                          • 41
                            var creatorEmailAddress = "test@liferay.com";
                          }
                        }
                      • 45
                        if (!(isSet(creatorPassword))) {
                        • 46
                          var creatorPassword = "test";
                        }
                      • 49
                        var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                      • 54
                        var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                      • 56
                        return ${companyId};
                    • 374
                      var grandParentGroupId = JSONGroupSetter.setGrandParentGroupId(grandParentGroupName = ${grandParentGroupName});
                      • 15
                        if (isSet(grandParentGroupName)) {
                        • 16
                          if (!(isSet(site))) {
                          • 17
                            var site = "true";
                          }
                        • 20
                          var grandParentGroupId = JSONGroupAPI._getGrandParentGroupIdByName( groupName = ${grandParentGroupName}, site = ${site});
                          • 193
                            Variables.assertDefined(parameterList = ${groupName});
                            • 5
                              if (!(isSet(parameterList))) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list ${parameterList}) {
                              • 13
                                var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                              • 17
                                if ((${undefined} == "true") && (${parameter} != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 195
                            var companyId = JSONCompany.getCompanyId();
                            • 23
                              if (!(isSet(portalInstanceName)) || (${portalInstanceName} == "liferay.com")) {
                              • 24
                                var portalInstanceName = JSONCompany.getPortalInstanceName();
                                • 107
                                  var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                                • 108
                                  var testPortalInstance = PropsUtil.get("test.portal.instance");
                                • 110
                                  if ((${testPortalInstance} == "true") && !(IsTestName(locator1 = "", value1 = ${testNameSkipPortalInstance}))) {
                                  • 111
                                    var portalURL = JSONCompany.getPortalURL();
                                    • 138
                                      var portalURL = PropsUtil.get("portal.url");
                                    • 140
                                      return ${portalURL};
                                  • 113
                                    var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = ${portalURL});
                                    • 144
                                      Variables.assertDefined(parameterList = ${portalURL});
                                      • 5
                                        if (!(isSet(parameterList))) {
                                        • 6
                                          fail("Please define a parameter list in 'parameterList'");
                                        }
                                      • 9
                                        for (var parameter : list ${parameterList}) {
                                        • 13
                                          var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                                        • 17
                                          if ((${undefined} == "true") && (${parameter} != "false")) {
                                          • 18
                                            fail("Please set '${parameter}'");
                                          }
                                        }
                                    • 146
                                      var portalInstanceName = StringUtil.replace(${portalURL}, "http://", "");
                                    • 148
                                      var portalInstanceName = StringUtil.replace(${portalInstanceName}, ":8080", "");
                                    • 150
                                      return ${portalInstanceName};
                                  • 115
                                    return ${portalInstanceName};
                                  }
                                • 117
                                  else {
                                  • 118
                                    return "localhost";
                                  }
                              }
                            • 27
                              if (!(isSet(portalURL))) {
                              • 28
                                var portalURL = JSONCompany.getPortalURL();
                                • 138
                                  var portalURL = PropsUtil.get("portal.url");
                                • 140
                                  return ${portalURL};
                              }
                            • 31
                              if (!(isSet(creatorEmailAddress))) {
                              • 32
                                if (${authenticationMethod} == "By Screen Name") {
                                • 33
                                  if (!(isSet(userScreenName))) {
                                  • 34
                                    var creatorEmailAddress = "test";
                                  }
                                • 36
                                  else {
                                  • 37
                                    var creatorEmailAddress = ${userScreenName};
                                  }
                                }
                              • 40
                                else {
                                • 41
                                  var creatorEmailAddress = "test@liferay.com";
                                }
                              }
                            • 45
                              if (!(isSet(creatorPassword))) {
                              • 46
                                var creatorPassword = "test";
                              }
                            • 49
                              var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                            • 54
                              var companyId = JSONCurlUtil.get(${curl}, "$['companyId']");
                            • 56
                              return ${companyId};
                          • 196
                            var portalURL = JSONCompany.getPortalURL();
                            • 138
                              var portalURL = PropsUtil.get("portal.url");
                            • 140
                              return ${portalURL};
                          • 198
                            if (!(isSet(site))) {
                            • 199
                              var site = "true";
                            }
                          • 202
                            var curl = ''' ${portalURL}/api/jsonws/group/get-groups \ -u test@liferay.com:test \ -d companyId=${companyId} \ -d parentGroupId=0 \ -d site=${site} ''';
                          • 210
                            var groupId = JSONCurlUtil.post(${curl}, "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                          • 212
                            if (${groupId} == "") {
                            • 213
                              fail("FAIL. Cannot find group.");
                            }
                          • 216
                            return ${groupId};
                        }
                      • 24
                        else {
                        • 25
                          var grandParentGroupId = 0;
                        }
                      • 28
                        return ${grandParentGroupId};
                    • 375
                      var portalURL = JSONCompany.getPortalURL();
                      • 138
                        var portalURL = PropsUtil.get("portal.url");
                      • 140
                        return ${portalURL};
                    • 377
                      var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${grandParentGroupId}/site/true \ -u test@liferay.com:test ''';
                    • 382
                      var groupId = JSONCurlUtil.get(${curl}, "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                    • 384
                      if (${groupId} == "") {
                      • 385
                        fail("FAIL. Cannot find group.");
                      }
                    • 388
                      return ${groupId};
                  }
                • 88
                  else {
                  • 89
                    var parentGroupId = 0;
                  }
                • 92
                  return ${parentGroupId};
              • 262
                var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${parentGroupId}/site/${site} \ -u test@liferay.com:test ''';
              • 267
                var groupId = JSONCurlUtil.get(${curl}, "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
              • 269
                if (${groupId} == "") {
                • 270
                  fail("FAIL. Cannot find group.");
                }
              • 273
                echo("## * GroupId: ${groupId}");
              • 275
                return ${groupId};
            • 56
              return ${groupId};
          • 117
            JSONGroupAPI._deleteGroup( groupId = ${groupId}, portalURL = ${portalURL});
            • 112
              Variables.assertDefined(parameterList = ${groupId});
              • 5
                if (!(isSet(parameterList))) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list ${parameterList}) {
                • 13
                  var undefined = StringUtil.matches(${parameter}, "\$\{[^\$\{\s]*\}");
                • 17
                  if ((${undefined} == "true") && (${parameter} != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 114
              if (!(isSet(portalURL))) {
              • 115
                var portalURL = JSONCompany.getPortalURL();
                • 138
                  var portalURL = PropsUtil.get("portal.url");
                • 140
                  return ${portalURL};
              }
            • 118
              var curl = ''' ${portalURL}/api/jsonws/group/delete-group \ -u test@liferay.com:test \ -d groupId=${groupId} ''';
            • 124
              com.liferay.poshi.runner.util.JSONCurlUtil.post(${curl});
        }
      }