LocalFile.Grid#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 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 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 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 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 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":"20099","contactId":"20129","createDate":1651497054929,"ctCollectionId":"0","defaultUser":false,"emailAddress":"test@liferay.com","emailAddressVerified":true,"externalReferenceCode":"","facebookId":"0","failedLoginAttempts":0,"firstName":"Test","googleUserId":"","graceLoginCount":0,"greeting":"Welcome Test Test!","jobTitle":"","languageId":"en_US","lastFailedLoginDate":null,"lastLoginDate":1651505321292,"lastLoginIP":"127.0.0.1","lastName":"Test","ldapServerId":"-1","lockout":false,"lockoutDate":null,"loginDate":1651505696806,"loginIP":"127.0.0.1","middleName":"","modifiedDate":1651505772527,"mvccVersion":"50","openId":"","portraitId":"0","reminderQueryAnswer":"test","reminderQueryQuestion":"what-is-your-father's-middle-name","screenName":"test","status":0,"timeZoneId":"UTC","userId":"20127","uuid":"5b93efbe-e124-4df9-b731-44d52a75afd9"}Finished executing commands.
  • Running post with parametersArg: ${curl}Return: {"agreedToTermsOfUse":true,"comments":"","companyId":"20099","contactId":"20129","createDate":1651497054929,"ctCollectionId":"0","defaultUser":false,"emailAddress":"test@liferay.com","emailAddressVerified":true,"externalReferenceCode":"","facebookId":"0","failedLoginAttempts":0,"firstName":"Test","googleUserId":"","graceLoginCount":0,"greeting":"Welcome Test Test!","jobTitle":"","languageId":"en_US","lastFailedLoginDate":null,"lastLoginDate":1651505321292,"lastLoginIP":"127.0.0.1","lastName":"Test","ldapServerId":"-1","lockout":false,"lockoutDate":null,"loginDate":1651505696806,"loginIP":"127.0.0.1","middleName":"","modifiedDate":1651505773180,"mvccVersion":"51","openId":"","portraitId":"0","reminderQueryAnswer":"test","reminderQueryQuestion":"what-is-your-father's-middle-name","screenName":"test","status":0,"timeZoneId":"UTC","userId":"20127","uuid":"5b93efbe-e124-4df9-b731-44d52a75afd9"}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 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 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 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 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 Pause with locator13000
    • 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 assertJavaScriptErrors with parameters3000
    • Running assertLiferayErrors
    • Running pause with parameters3000
  • 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 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 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":"20003","classPK":"43087","companyId":"20099","creatorUserId":"20127","ctCollectionId":"0","description":"","descriptionCurrentValue":"","descriptiveName":"Test Site Name","friendlyURL":"\/test-site-name","groupId":"43087","groupKey":"Test Site Name","inheritContent":false,"liveGroupId":"0","manualMembership":true,"membershipRestriction":0,"modifiedDate":1651505781062,"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":"\/43087\/","type":1,"uuid":"faaa91e3-e167-9421-a3d1-e90c59f939ad"}Finished executing commands.
  • ## * GroupId: 43087
  • LocalFile.Grid#ViewDefinedGridLayoutStyleInNonDesktopViewport
  • This is a use case for LPS-146029. View the defined layout style of Grid in the non-desktop viewport.
  • Running Open with locator1http://localhost:8080/web/test-site-name/content-page-name?p_l_mode=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 assertJavaScriptErrors with parametershttp://localhost:8080/web/test-site-name/content-page-name?p_l_mode=edit
    • Running assertLiferayErrors
    • Running selectWindow with parameters
    • Running selectFrame with parametersrelative=top
    • Running open with parametershttp://localhost:8080/web/test-site-name/content-page-name?p_l_mode=edit
    • 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/content-page-name?p_l_mode=edit
    • 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 assertJavaScriptErrors with parametershttp://localhost:8080/web/test-site-name/content-page-name?p_l_mode=edit
    • Running assertLiferayErrors
  • Running WaitForPageLoad
    • Running runScript with parameters window.onload = function() { setTimeout(() => { console.log("Page is fully loaded"); }, "0"); };
  • Running AssertVisible with locator1//div[contains(@class,'sidebar')]/div[contains(@class,'buttons')]/button
    • 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 assertJavaScriptErrors with parameters//div[contains(@class,'sidebar')]/div[contains(@class,'buttons')]/button
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'sidebar')]/div[contains(@class,'buttons')]/button
    • Running assertVisible with parameters//div[contains(@class,'sidebar')]/div[contains(@class,'buttons')]/button
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar')]/div[contains(@class,'buttons')]/button
    • Running assertLiferayErrors
  • Running WaitForPageLoad
    • Running runScript with parameters window.onload = function() { setTimeout(() => { console.log("Page is fully loaded"); }, "0"); };
  • Running AssertVisible with locator1//div[contains(@class,'sidebar')]/div[contains(@class,'buttons')]/button
    • 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 assertJavaScriptErrors with parameters//div[contains(@class,'sidebar')]/div[contains(@class,'buttons')]/button
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'sidebar')]/div[contains(@class,'buttons')]/button
    • Running assertVisible with parameters//div[contains(@class,'sidebar')]/div[contains(@class,'buttons')]/button
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar')]/div[contains(@class,'buttons')]/button
    • Running assertLiferayErrors
  • Running IsElementPresent with locator1//div[contains(@id,'sidenavSliderId') and contains(@class,'open') and not(contains(@class,'sidenav-transition')) and not(contains(@class,'closed'))]
    • 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 assertJavaScriptErrors with parameters//div[contains(@id,'sidenavSliderId') and contains(@class,'open') and not(contains(@class,'sidenav-transition')) and not(contains(@class,'closed'))]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//div[contains(@id,'sidenavSliderId') and contains(@class,'open') and not(contains(@class,'sidenav-transition')) and not(contains(@class,'closed'))]
  • Running IsElementNotPresent with locator1//*[@data-qa-id='productMenu']
    • 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 assertJavaScriptErrors with parameters//*[@data-qa-id='productMenu']
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//*[@data-qa-id='productMenu']
    • Running isNotVisible with parameters//*[@data-qa-id='productMenu']
  • 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 IsElementNotPresent with locator1//div[contains(@class,'content--open')]//h1[contains(@class,'page-editor__sidebar__panel-header') and contains(.,'Fragments and Widgets')]
    • 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 assertJavaScriptErrors with parameters//div[contains(@class,'content--open')]//h1[contains(@class,'page-editor__sidebar__panel-header') and contains(.,'Fragments and Widgets')]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//div[contains(@class,'content--open')]//h1[contains(@class,'page-editor__sidebar__panel-header') and contains(.,'Fragments and Widgets')]
    • Running isNotVisible with parameters//div[contains(@class,'content--open')]//h1[contains(@class,'page-editor__sidebar__panel-header') and contains(.,'Fragments and Widgets')]
  • Running IsElementNotPresent with locator1//div[contains(@class,'fragments-widgets-panel')]//button[contains(@class,'tooltip')][*[name()='svg'][contains(@class,'icon-card')]]
    • 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 assertJavaScriptErrors with parameters//div[contains(@class,'fragments-widgets-panel')]//button[contains(@class,'tooltip')][*[name()='svg'][contains(@class,'icon-card')]]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//div[contains(@class,'fragments-widgets-panel')]//button[contains(@class,'tooltip')][*[name()='svg'][contains(@class,'icon-card')]]
    • Running isNotVisible with parameters//div[contains(@class,'fragments-widgets-panel')]//button[contains(@class,'tooltip')][*[name()='svg'][contains(@class,'icon-card')]]
  • Running AssertVisible with locator1//div[contains(@class,'fragments-widgets-panel')]//button[contains(@class,'tooltip')][*[name()='svg'][contains(@class,'icon-card')]]
    • 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 assertJavaScriptErrors with parameters//div[contains(@class,'fragments-widgets-panel')]//button[contains(@class,'tooltip')][*[name()='svg'][contains(@class,'icon-card')]]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'fragments-widgets-panel')]//button[contains(@class,'tooltip')][*[name()='svg'][contains(@class,'icon-card')]]
    • Running assertVisible with parameters//div[contains(@class,'fragments-widgets-panel')]//button[contains(@class,'tooltip')][*[name()='svg'][contains(@class,'icon-card')]]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'fragments-widgets-panel')]//button[contains(@class,'tooltip')][*[name()='svg'][contains(@class,'icon-card')]]
    • Running assertLiferayErrors
  • Running IsElementNotPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fragments'][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 assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fragments'][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()='Fragments'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running isNotVisible with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fragments'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
  • Running AssertElementPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fragments'][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 assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fragments'][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()='Fragments'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fragments'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fragments'][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 IsElementPresent with locator1//div[contains(@id,'sidenavSliderId') and contains(@class,'open') and not(contains(@class,'sidenav-transition')) and not(contains(@class,'closed'))]
    • 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 assertJavaScriptErrors with parameters//div[contains(@id,'sidenavSliderId') and contains(@class,'open') and not(contains(@class,'sidenav-transition')) and not(contains(@class,'closed'))]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//div[contains(@id,'sidenavSliderId') and contains(@class,'open') and not(contains(@class,'sidenav-transition')) and not(contains(@class,'closed'))]
  • Running IsElementNotPresent with locator1//*[@data-qa-id='productMenu']
    • 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 assertJavaScriptErrors with parameters//*[@data-qa-id='productMenu']
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//*[@data-qa-id='productMenu']
    • Running isNotVisible with parameters//*[@data-qa-id='productMenu']
  • 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 IsElementNotPresent with locator1//div[contains(@class,'content--open')]//h1[contains(@class,'page-editor__sidebar__panel-header') and contains(.,'Fragments and Widgets')]
    • 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 assertJavaScriptErrors with parameters//div[contains(@class,'content--open')]//h1[contains(@class,'page-editor__sidebar__panel-header') and contains(.,'Fragments and Widgets')]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//div[contains(@class,'content--open')]//h1[contains(@class,'page-editor__sidebar__panel-header') and contains(.,'Fragments and Widgets')]
    • Running isNotVisible with parameters//div[contains(@class,'content--open')]//h1[contains(@class,'page-editor__sidebar__panel-header') and contains(.,'Fragments and Widgets')]
  • Running IsElementNotPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fragments'][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 assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fragments'][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()='Fragments'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running isNotVisible with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fragments'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
  • Running AssertElementPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fragments'][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 assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fragments'][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()='Fragments'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fragments'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Fragments'][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 AssertVisible with locator1//*[contains(@class,'collapse-icon')][normalize-space()='Layout Elements']
    • 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 assertJavaScriptErrors with parameters//*[contains(@class,'collapse-icon')][normalize-space()='Layout Elements']
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//*[contains(@class,'collapse-icon')][normalize-space()='Layout Elements']
    • Running assertVisible with parameters//*[contains(@class,'collapse-icon')][normalize-space()='Layout Elements']
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'collapse-icon')][normalize-space()='Layout Elements']
    • Running assertLiferayErrors
  • Running IsElementPresent with locator1//*[contains(@class,'sheet-subtitle collapsed')][normalize-space()='Layout Elements']
    • 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 assertJavaScriptErrors with parameters//*[contains(@class,'sheet-subtitle collapsed')][normalize-space()='Layout Elements']
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//*[contains(@class,'sheet-subtitle collapsed')][normalize-space()='Layout Elements']
  • Running AssertElementPresent with locator1//*[contains(@class,'collapse-icon sheet-subtitle')][normalize-space()='Layout Elements']
    • 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 assertJavaScriptErrors with parameters//*[contains(@class,'collapse-icon sheet-subtitle')][normalize-space()='Layout Elements']
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[contains(@class,'collapse-icon sheet-subtitle')][normalize-space()='Layout Elements']
    • Running assertElementPresent with parameters//*[contains(@class,'collapse-icon sheet-subtitle')][normalize-space()='Layout Elements']
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'collapse-icon sheet-subtitle')][normalize-space()='Layout Elements']
    • Running assertLiferayErrors
  • Running DragAndDrop#javaScriptDragAndDropToObject with locator1//button[normalize-space()='Layout Elements']/following-sibling::div/ul/li[contains(@class,'page-editor__fragments-widgets__tab-list-item')][normalize-space()='Grid'] with value1 with locator2//div[contains(@class,'page-editor__root page-editor__topper')]
    • 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 assertJavaScriptErrors with parameters//button[normalize-space()='Layout Elements']/following-sibling::div/ul/li[contains(@class,'page-editor__fragments-widgets__tab-list-item')][normalize-space()='Grid']
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//button[normalize-space()='Layout Elements']/following-sibling::div/ul/li[contains(@class,'page-editor__fragments-widgets__tab-list-item')][normalize-space()='Grid']
    • Running waitForElementPresent with parameters//div[contains(@class,'page-editor__root page-editor__topper')]
    • 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]); //button[normalize-space()='Layout Elements']/following-sibling::div/ul/li[contains(@class,'page-editor__fragments-widgets__tab-list-item')][normalize-space()='Grid']//div[contains(@class,'page-editor__root page-editor__topper')]
    • Running assertJavaScriptErrors with parameters//button[normalize-space()='Layout Elements']/following-sibling::div/ul/li[contains(@class,'page-editor__fragments-widgets__tab-list-item')][normalize-space()='Grid']
    • Running assertLiferayErrors
  • Running WaitForVisible with locator1//div[contains(@class,'management-bar')]//span[contains(@class,'text-success')]
    • Running waitForVisible with parameters//div[contains(@class,'management-bar')]//span[contains(@class,'text-success')]
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]
    • Running assertLiferayErrors
  • Running Click#javaScriptClick with locator1xpath=(//div[@aria-label='Grid'])[1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]
    • Running assertLiferayErrors
    • Running javaScriptClick with parametersxpath=(//div[@aria-label='Grid'])[1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]
    • Running assertLiferayErrors
  • Running AssertVisible with locator1//div[contains(@class,'content--open')]//h1[contains(@class,'page-editor__sidebar__panel-header') and contains(.,'Browser')]
    • 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 assertJavaScriptErrors with parameters//div[contains(@class,'content--open')]//h1[contains(@class,'page-editor__sidebar__panel-header') and contains(.,'Browser')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'content--open')]//h1[contains(@class,'page-editor__sidebar__panel-header') and contains(.,'Browser')]
    • Running assertVisible with parameters//div[contains(@class,'content--open')]//h1[contains(@class,'page-editor__sidebar__panel-header') and contains(.,'Browser')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'content--open')]//h1[contains(@class,'page-editor__sidebar__panel-header') and contains(.,'Browser')]
    • Running assertLiferayErrors
  • Running IsElementNotPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='General'][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 assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='General'][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()='General'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running isNotVisible with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='General'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
  • Running AssertElementPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='General'][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 assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='General'][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()='General'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='General'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='General'][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 Select with locator1//div[label[normalize-space(text())='Number of Modules']]/select with value16
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]6
    • 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;')]6
    • Running assertJavaScriptErrors with parameters//div[label[normalize-space(text())='Number of Modules']]/select
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[label[normalize-space(text())='Number of Modules']]/select6
    • Running mouseOver with parameters//div[label[normalize-space(text())='Number of Modules']]/select
    • Running select with parameters//div[label[normalize-space(text())='Number of Modules']]/select6
    • Running assertJavaScriptErrors with parameters//div[label[normalize-space(text())='Number of Modules']]/select
    • Running assertLiferayErrors
  • Running WaitForVisible with locator1//div[contains(@class,'management-bar')]//span[contains(@class,'text-success')]
    • Running waitForVisible with parameters//div[contains(@class,'management-bar')]//span[contains(@class,'text-success')]
  • Running Click with locator1//button[contains(@class,'btn')][@aria-label='Landscape Phone']
    • 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 assertJavaScriptErrors with parameters//button[contains(@class,'btn')][@aria-label='Landscape Phone']
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//button[contains(@class,'btn')][@aria-label='Landscape Phone']
    • Running mouseOver with parameters//button[contains(@class,'btn')][@aria-label='Landscape Phone']
    • Running click with parameters//button[contains(@class,'btn')][@aria-label='Landscape Phone']
    • Running assertJavaScriptErrors with parameters//button[contains(@class,'btn')][@aria-label='Landscape Phone']
    • Running assertLiferayErrors
  • Running WaitForVisible with locator1//div[contains(@class,'layout-viewport')][contains(@class,'landscapeMobile')]
    • Running waitForVisible with parameters//div[contains(@class,'layout-viewport')][contains(@class,'landscapeMobile')]
  • Running SelectFrame#selectFrameNoLoading with locator1//iframe[contains(@class,'page-editor__global-context-iframe')]
    • Running waitForVisible with parameters//iframe[contains(@class,'page-editor__global-context-iframe')]
    • Running mouseOver with parameters//iframe[contains(@class,'page-editor__global-context-iframe')]
    • Running selectFrame with parameters//iframe[contains(@class,'page-editor__global-context-iframe')]
    • Running assertJavaScriptErrors with parameters//iframe[contains(@class,'page-editor__global-context-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 assertJavaScriptErrors with parameters//iframe[contains(@class,'page-editor__global-context-iframe')]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementNotPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][7]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][7]
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][7]
    • Running assertElementNotPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][7]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][7]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'col-12')]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'col-12')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'col-12')]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'col-12')]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'col-12')]
    • Running assertLiferayErrors
  • Running SelectFrame with value1relative=top
    • Running selectFrame with parametersrelative=top
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]relative=top
    • 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;')]relative=top
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]relative=top
    • 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;')]relative=top
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
  • Running Select with locator1//div[label[normalize-space(text())='Layout']]/select with value12 Modules per Row
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]2 Modules per Row
    • 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;')]2 Modules per Row
    • Running assertJavaScriptErrors with parameters//div[label[normalize-space(text())='Layout']]/select
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[label[normalize-space(text())='Layout']]/select2 Modules per Row
    • Running mouseOver with parameters//div[label[normalize-space(text())='Layout']]/select
    • Running select with parameters//div[label[normalize-space(text())='Layout']]/select2 Modules per Row
    • Running assertJavaScriptErrors with parameters//div[label[normalize-space(text())='Layout']]/select
    • Running assertLiferayErrors
  • Running SelectFrame#selectFrameNoLoading with locator1//iframe[contains(@class,'page-editor__global-context-iframe')]
    • Running waitForVisible with parameters//iframe[contains(@class,'page-editor__global-context-iframe')]
    • Running mouseOver with parameters//iframe[contains(@class,'page-editor__global-context-iframe')]
    • Running selectFrame with parameters//iframe[contains(@class,'page-editor__global-context-iframe')]
    • Running assertJavaScriptErrors with parameters//iframe[contains(@class,'page-editor__global-context-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 assertJavaScriptErrors with parameters//iframe[contains(@class,'page-editor__global-context-iframe')]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][1]
    • Running assertLiferayErrors
  • Running AssertElementNotPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][7]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][7]
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][7]
    • Running assertElementNotPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][7]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'page-editor__col')][7]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'col-6')]
    • 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 assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'col-6')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'col-6')]
    • Running assertElementPresent with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'col-6')]
    • Running assertJavaScriptErrors with parametersxpath=(//div[@aria-label='Grid'])[1]//div[contains(@class,'col-6')]
    • Running assertLiferayErrors
  • LocalFile.Grid#tear-down
  • ## * GroupId: 43087
  • Running post with parametersArg: ${curl}Return: {}Finished executing commands.
  • LocalFile.Grid#ViewDefinedGridLayoutStyleInNonDesktopViewport

    • 8
      setUp {
      • 9
        TestCase.setUpPortalInstance();
        • 135
          var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
        • 136
          var testPortalInstance = PropsUtil.get("test.portal.instance");
        • 138
          if (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
          • 139
            HeadlessPortalInstanceAPI.cleanAllPortalInstances(authenticationMethod = "${authenticationMethod}");
            • 107
              var portalInstanceJson = HeadlessPortalInstanceAPI._getPortalInstances(authenticationMethod = "${authenticationMethod}");
              • 5
                var portalURL = JSONCompany.getDefaultPortalURL();
                • 40
                  var portalURL = PropsUtil.get("default.portal.url");
                • 42
                  if (!(contains("${portalURL}", "http"))) {
                  • 43
                    var portalURL = "http://${portalURL}";
                  }
                • 46
                  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 ''';
              • 19
                var json = JSONCurlUtil.get("${curl}");
              • 21
                return "${json}";
            • 109
              var portalInstanceIds = JSONUtil.getWithJSONPath("${portalInstanceJson}", "$.items..portalInstanceId");
            • 111
              for (var portalInstanceId : list "${portalInstanceIds}") {
              • 112
                if ("${portalInstanceId}" != "liferay.com") {
                • 113
                  HeadlessPortalInstanceAPI.deletePortalInstance( authenticationMethod = "${authenticationMethod}", portalInstanceId = "${portalInstanceId}");
                  • 122
                    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}'");
                        }
                      }
                  • 124
                    var portalURL = JSONCompany.getDefaultPortalURL();
                    • 40
                      var portalURL = PropsUtil.get("default.portal.url");
                    • 42
                      if (!(contains("${portalURL}", "http"))) {
                      • 43
                        var portalURL = "http://${portalURL}";
                      }
                    • 46
                      return "${portalURL}";
                  • 126
                    var portalInstanceId = StringUtil.replace("${portalInstanceId}", " ", "%20");
                  • 128
                    if ("${authenticationMethod}" == "By Screen Name") {
                    • 129
                      var userName = "test";
                    }
                  • 131
                    else {
                    • 132
                      var userName = "test@liferay.com";
                    }
                  • 135
                    var curl = ''' ${portalURL}/o/headless-portal-instances/v1.0/portal-instances/${portalInstanceId} \ -u ${userName}:test \ -H Content-Type: application/json ''';
                  • 141
                    JSONCurlUtil.delete("${curl}");
                }
              }
          • 141
            if ("${testPortalInstance}" == "true") {
            • 142
              SignIn.signInPortalInstanceSetUp();
              • 3
                var userEmailAddress = "test@liferay.com";
              • 4
                var userPassword = "test";
              • 5
                var userPasswordReminderAnswer = "test";
              • 48
                var portalURL = PropsUtil.get("portal.url");
              • 49
                var portalURL = StringUtil.replace("${portalURL}", "http://", "");
              • 50
                var portalURL = StringUtil.replace("${portalURL}", ":8080", "");
              • 52
                HeadlessPortalInstanceAPI.addPortalInstance( authenticationMethod = "${authenticationMethod}", domain = "liferay.com", portalInstanceId = "${portalURL}", virtualHost = "${portalURL}");
                • 26
                  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}'");
                      }
                    }
                • 28
                  var portalURL = JSONCompany.getDefaultPortalURL();
                  • 40
                    var portalURL = PropsUtil.get("default.portal.url");
                  • 42
                    if (!(contains("${portalURL}", "http"))) {
                    • 43
                      var portalURL = "http://${portalURL}";
                    }
                  • 46
                    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}");
                    • 132
                      var temp = RegexUtil.replace("${json}", "\"(${key})\"\s*:\s*", "1");
                    • 134
                      if ("${temp}" == "${key}") {
                      • 135
                        return "TRUE";
                      }
                    • 137
                      else {
                      • 138
                        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}");
                    • 132
                      var temp = RegexUtil.replace("${json}", "\"(${key})\"\s*:\s*", "1");
                    • 134
                      if ("${temp}" == "${key}") {
                      • 135
                        return "TRUE";
                      }
                    • 137
                      else {
                      • 138
                        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}");
                    • 132
                      var temp = RegexUtil.replace("${json}", "\"(${key})\"\s*:\s*", "1");
                    • 134
                      if ("${temp}" == "${key}") {
                      • 135
                        return "TRUE";
                      }
                    • 137
                      else {
                      • 138
                        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}");
            }
          }
      • 11
        User.firstLoginPG();
        • 3
          var password = "test";
        • 4
          var userEmailAddress = "test@liferay.com";
        • 1958
          if (isSet(virtualHostsURL)) {
          • 1959
            Navigator.openSpecificURL( domain = "${domain}", url = "${virtualHostsURL}");
            • 308
              Open(locator1 = "${url}");
            • 310
              Alert.confirmSecurity(domain = "${domain}");
              • 16
                if (IsElementPresent(key_title = "Your connection is not private", locator1 = "Header#H1_TITLE")) {
                • 17
                  Click(locator1 = "Button#ADVANCED");
                • 19
                  if (isSet(domain)) {
                  • 20
                    AssertElementPresent( key_text = "Proceed to ${domain}", locator1 = "Link#ANY");
                  • 24
                    Click( key_text = "Proceed to ${domain} (unsafe)", locator1 = "Link#ANY");
                  }
                • 28
                  else {
                  • 29
                    AssertElementPresent( key_text = "Proceed to localhost", locator1 = "Link#ANY");
                  • 33
                    Click( key_text = "Proceed to localhost (unsafe)", locator1 = "Link#ANY");
                  }
                }
          }
        • 1963
          else {
          • 1964
            Navigator.openURL();
            • 359
              WaitForSPARefresh();
            • 361
              var baseURL = "${baseURL}";
            • 363
              if (!(isSet(baseURL))) {
              • 364
                var baseURL = PropsUtil.get("portal.url");
              }
            • 367
              Open(locator1 = "${baseURL}/web/guest/home");
          }
        • 1967
          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");
            }
        • 1969
          JSONUser.agreeToTermsAndAnswerReminderQuery( portalURL = "${virtualHostsURL}", userEmailAddress = "${userEmailAddress}");
          • 172
            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}'");
                }
              }
          • 174
            var portalInstanceName = JSONUserSetter.setPortalInstanceName(portalURL = "${portalURL}");
            • 37
              if (isSet(portalURL)) {
              • 38
                var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                • 72
                  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}'");
                      }
                    }
                • 74
                  var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                • 75
                  var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                • 77
                  return "${portalInstanceName}";
              }
            • 41
              return "${portalInstanceName}";
          • 176
            var userId = JSONUserSetter.setUserId( portalInstanceName = "${portalInstanceName}", userEmailAddress = "${userEmailAddress}");
            • 92
              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}'");
                  }
                }
            • 94
              var userId = JSONUserAPI._getUserIdByEmailAddress( creatorEmailAddress = "${creatorEmailAddress}", creatorPassword = "${creatorPassword}", portalInstanceName = "${portalInstanceName}", userEmailAddress = "${userEmailAddress}");
              • 209
                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}'");
                    }
                  }
              • 211
                var companyId = JSONCompany.getCompanyId( creatorEmailAddress = "${creatorEmailAddress}", creatorPassword = "${creatorPassword}", portalInstanceName = "${portalInstanceName}");
                • 4
                  if (!(isSet(portalInstanceName))) {
                  • 5
                    var portalInstanceName = JSONCompany.getPortalInstanceName();
                    • 50
                      var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                    • 51
                      var testPortalInstance = PropsUtil.get("test.portal.instance");
                    • 53
                      if (("${testPortalInstance}" == "true") && !(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
                      • 54
                        var portalURL = JSONCompany.getPortalURL();
                        • 66
                          var portalURL = PropsUtil.get("portal.url");
                        • 68
                          return "${portalURL}";
                      • 56
                        var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                        • 72
                          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}'");
                              }
                            }
                        • 74
                          var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                        • 75
                          var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                        • 77
                          return "${portalInstanceName}";
                      • 58
                        return "${portalInstanceName}";
                      }
                    • 60
                      else {
                      • 61
                        return "localhost";
                      }
                  }
                • 8
                  if (!(isSet(portalURL))) {
                  • 9
                    var portalURL = JSONCompany.getPortalURL();
                    • 66
                      var portalURL = PropsUtil.get("portal.url");
                    • 68
                      return "${portalURL}";
                  }
                • 12
                  if (!(isSet(creatorEmailAddress))) {
                  • 13
                    if ("${authenticationMethod}" == "By Screen Name") {
                    • 14
                      if (!(isSet(userScreenName))) {
                      • 15
                        var creatorEmailAddress = "test";
                      }
                    • 17
                      else {
                      • 18
                        var creatorEmailAddress = "${userScreenName}";
                      }
                    }
                  • 21
                    else {
                    • 22
                      var creatorEmailAddress = "test@liferay.com";
                    }
                  }
                • 26
                  if (!(isSet(creatorPassword))) {
                  • 27
                    var creatorPassword = "test";
                  }
                • 30
                  var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                • 34
                  var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                • 36
                  return "${companyId}";
              • 216
                if (isSet(specificURL)) {
                • 217
                  var portalURL = "${specificURL}";
                }
              • 219
                else {
                • 220
                  var portalURL = JSONCompany.getPortalURL();
                  • 66
                    var portalURL = PropsUtil.get("portal.url");
                  • 68
                    return "${portalURL}";
                }
              • 223
                if (!(isSet(creatorEmailAddress))) {
                • 224
                  var creatorEmailAddress = "test@liferay.com";
                }
              • 227
                if (!(isSet(creatorPassword))) {
                • 228
                  var creatorPassword = "test";
                }
              • 231
                var curl = ''' ${portalURL}/api/jsonws/user/get-user-by-email-address/company-id/${companyId}/email-address/${userEmailAddress} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
              • 235
                var userId = JSONCurlUtil.get("${curl}", "$['userId']");
              • 237
                return "${userId}";
            • 100
              return "${userId}";
          • 180
            JSONUserAPI._agreeToTermsAndAnswerReminderQuery(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();
                • 66
                  var portalURL = PropsUtil.get("portal.url");
                • 68
                  return "${portalURL}";
              }
            • 98
              var curl = ''' ${portalURL}/api/jsonws/user/update-agreed-to-terms-of-use/user-id/${userId}/agreed-to-terms-of-use/true \ -u test@liferay.com:test ''';
            • 103
              com.liferay.poshi.runner.util.JSONCurlUtil.post("${curl}");
            • 105
              var curl = ''' ${portalURL}/api/jsonws/user/update-reminder-query/user-id/${userId}/question/what-is-your-father%27s-middle-name/answer/test \ -u test@liferay.com:test ''';
            • 110
              com.liferay.poshi.runner.util.JSONCurlUtil.post("${curl}");
        • 1973
          if (isSet(virtualHostsURL)) {
          • 1974
            Navigator.openSpecificURL(url = "${virtualHostsURL}/web/guest?SM_USER=${userEmailAddress}");
            • 308
              Open(locator1 = "${url}");
            • 310
              Alert.confirmSecurity(domain = "${domain}");
              • 16
                if (IsElementPresent(key_title = "Your connection is not private", locator1 = "Header#H1_TITLE")) {
                • 17
                  Click(locator1 = "Button#ADVANCED");
                • 19
                  if (isSet(domain)) {
                  • 20
                    AssertElementPresent( key_text = "Proceed to ${domain}", locator1 = "Link#ANY");
                  • 24
                    Click( key_text = "Proceed to ${domain} (unsafe)", locator1 = "Link#ANY");
                  }
                • 28
                  else {
                  • 29
                    AssertElementPresent( key_text = "Proceed to localhost", locator1 = "Link#ANY");
                  • 33
                    Click( key_text = "Proceed to localhost (unsafe)", locator1 = "Link#ANY");
                  }
                }
          }
        • 1976
          else {
          • 1977
            var baseURL = PropsUtil.get("portal.url");
          • 1979
            Navigator.openSpecificURL(url = "${baseURL}/web/guest?SM_USER=${userEmailAddress}");
            • 308
              Open(locator1 = "${url}");
            • 310
              Alert.confirmSecurity(domain = "${domain}");
              • 16
                if (IsElementPresent(key_title = "Your connection is not private", locator1 = "Header#H1_TITLE")) {
                • 17
                  Click(locator1 = "Button#ADVANCED");
                • 19
                  if (isSet(domain)) {
                  • 20
                    AssertElementPresent( key_text = "Proceed to ${domain}", locator1 = "Link#ANY");
                  • 24
                    Click( key_text = "Proceed to ${domain} (unsafe)", locator1 = "Link#ANY");
                  }
                • 28
                  else {
                  • 29
                    AssertElementPresent( key_text = "Proceed to localhost", locator1 = "Link#ANY");
                  • 33
                    Click( key_text = "Proceed to localhost (unsafe)", locator1 = "Link#ANY");
                  }
                }
          }
        • 1984
          User.resetPassword(newPassword = "${newPassword}");
          • 3
            var password = "test";
          • 4
            var userEmailAddress = "test@liferay.com";
          • 2482
            if (IsElementPresent.pauseIsElementPresent(locator1 = "TextInput#PASSWORD")) {
            • 2483
              if (isSet(newPassword)) {
              • 2484
                Type( locator1 = "TextInput#PASSWORD_1", value1 = "${newPassword}");
              • 2488
                Type( locator1 = "TextInput#PASSWORD_2", value1 = "${newPassword}");
              }
            • 2492
              else {
              • 2493
                Type( locator1 = "TextInput#PASSWORD_1", value1 = "test");
              • 2497
                Type( locator1 = "TextInput#PASSWORD_2", value1 = "test");
              }
            • 2502
              if (isSet(localizedSaveButton)) {
              • 2503
                Button.click(button = "${localizedSaveButton}");
                • 4
                  Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
              }
            • 2505
              else {
              • 2506
                Button.clickSubmitButton();
                • 122
                  Click(locator1 = "Button#SUBMIT");
              • 2508
                AssertElementNotPresent(locator1 = "TextInput#ENTER_AGAIN");
              }
            }
        • 1986
          User.answerPasswordReminder();
          • 3
            var password = "test";
          • 4
            var userEmailAddress = "test@liferay.com";
          • 755
            Pause(locator1 = "3000");
          • 757
            if (IsElementPresent.pauseIsElementPresent(locator1 = "TextInput#REMINDER_QUERY")) {
            • 758
              Type( locator1 = "TextInput#REMINDER_QUERY", value1 = "test");
            • 762
              Click(locator1 = "Button#SUBMIT");
            }
        • 1988
          if (IsElementNotPresent(locator1 = "UserBar#USER_AVATAR_IMAGE")) {
          • 1989
            takeScreenshot();
          • 1991
            echo("URL login failed, falling back to UI login.");
          • 1993
            User.firstLoginUI( idpName = "${idpName}", password = "${password}", rememberMeChecked = "${rememberMeChecked}", specificURL = "${virtualHostsURL}", userEmailAddress = "${userEmailAddress}", userScreenName = "${userScreenName}");
            • 3
              var password = "test";
            • 4
              var userEmailAddress = "test@liferay.com";
            • 2008
              if (isSet(specificURL)) {
              • 2009
                Navigator.openSpecificURL( domain = "${domain}", url = "${specificURL}");
                • 308
                  Open(locator1 = "${url}");
                • 310
                  Alert.confirmSecurity(domain = "${domain}");
                  • 16
                    if (IsElementPresent(key_title = "Your connection is not private", locator1 = "Header#H1_TITLE")) {
                    • 17
                      Click(locator1 = "Button#ADVANCED");
                    • 19
                      if (isSet(domain)) {
                      • 20
                        AssertElementPresent( key_text = "Proceed to ${domain}", locator1 = "Link#ANY");
                      • 24
                        Click( key_text = "Proceed to ${domain} (unsafe)", locator1 = "Link#ANY");
                      }
                    • 28
                      else {
                      • 29
                        AssertElementPresent( key_text = "Proceed to localhost", locator1 = "Link#ANY");
                      • 33
                        Click( key_text = "Proceed to localhost (unsafe)", locator1 = "Link#ANY");
                      }
                    }
              }
            • 2013
              else {
              • 2014
                Navigator.openURL();
                • 359
                  WaitForSPARefresh();
                • 361
                  var baseURL = "${baseURL}";
                • 363
                  if (!(isSet(baseURL))) {
                  • 364
                    var baseURL = PropsUtil.get("portal.url");
                  }
                • 367
                  Open(locator1 = "${baseURL}/web/guest/home");
              }
            • 2017
              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";
                • 42
                  if ("${localization}" == "JA") {
                  • 43
                    var localizedSignIn = "ログイン";
                  }
                • 45
                  else if ("${localization}" == "ZH") {
                  • 46
                    var localizedSignIn = "登录";
                  }
                • 48
                  else if ("${localization}" == "IT") {
                  • 49
                    var localizedSignIn = "Accedi";
                  }
                • 51
                  else if ("${localization}" == "ES") {
                  • 52
                    var localizedSignIn = "Acceder";
                  }
                • 54
                  else {
                  • 55
                    var localizedSignIn = "Sign In";
                  }
                • 58
                  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");
                  }
                }
            • 2022
              if ("${authenticationMethod}" == "By Screen Name") {
              • 2023
                Type( locator1 = "TextInput#SCREEN_NAME", value1 = "${userScreenName}");
              }
            • 2027
              else if ("${authenticationMethod}" == "By User ID") {
              • 2028
                Type.typePause( key_text = "ID", locator1 = "TextInput#ANY", value1 = "${userId}");
              }
            • 2033
              else {
              • 2034
                Type.typePause( locator1 = "TextInput#EMAIL_ADDRESS", value1 = "${userEmailAddress}");
              }
            • 2039
              Type.typePause( locator1 = "TextInput#PASSWORD", value1 = "${password}");
            • 2043
              if (isSet(rememberMeChecked) && ("${rememberMeChecked}" == "true")) {
              • 2044
                Check(locator1 = "Checkbox#REMEMBER_ME");
              }
            • 2047
              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";
                • 42
                  if ("${localization}" == "JA") {
                  • 43
                    var localizedSignIn = "ログイン";
                  }
                • 45
                  else if ("${localization}" == "ZH") {
                  • 46
                    var localizedSignIn = "登录";
                  }
                • 48
                  else if ("${localization}" == "IT") {
                  • 49
                    var localizedSignIn = "Accedi";
                  }
                • 51
                  else if ("${localization}" == "ES") {
                  • 52
                    var localizedSignIn = "Acceder";
                  }
                • 54
                  else {
                  • 55
                    var localizedSignIn = "Sign In";
                  }
                • 58
                  return "${localizedSignIn}";
              • 9
                Button.click(button = "${localizedSignIn}");
                • 4
                  Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
            • 2049
              if (isSet(localizedAgree)) {
              • 2050
                User.acceptEndUserLicenseAgreementLocalized(localizedAgree = "${localizedAgree}");
                • 3
                  var password = "test";
                • 4
                  var userEmailAddress = "test@liferay.com";
                • 78
                  var key_localizedAgree = "${localizedAgree}";
                • 80
                  if (IsElementPresent(locator1 = "Button#I_AGREE_LOCALIZED")) {
                  • 81
                    AssertClick( locator1 = "Button#I_AGREE_LOCALIZED", value1 = "${localizedAgree}");
                  • 85
                    AssertElementNotPresent(locator1 = "Button#I_AGREE_LOCALIZED");
                  }
              }
            • 2052
              else if (IsElementPresent(locator1 = "Button#I_AGREE")) {
              • 2053
                SignIn.agreeToTermsOfUse();
                • 3
                  var userEmailAddress = "test@liferay.com";
                • 4
                  var userPassword = "test";
                • 5
                  var userPasswordReminderAnswer = "test";
                • 24
                  AssertClick( locator1 = "Button#I_AGREE", value1 = "I Agree");
                • 28
                  AssertElementNotPresent(locator1 = "Button#I_AGREE");
              }
            • 2056
              if (IsElementPresent(locator1 = "TextInput#PASSWORD_2")) {
              • 2057
                User.resetPassword( localizedSaveButton = "${localizedSaveButton}", newPassword = "${newPassword}");
                • 3
                  var password = "test";
                • 4
                  var userEmailAddress = "test@liferay.com";
                • 2482
                  if (IsElementPresent.pauseIsElementPresent(locator1 = "TextInput#PASSWORD")) {
                  • 2483
                    if (isSet(newPassword)) {
                    • 2484
                      Type( locator1 = "TextInput#PASSWORD_1", value1 = "${newPassword}");
                    • 2488
                      Type( locator1 = "TextInput#PASSWORD_2", value1 = "${newPassword}");
                    }
                  • 2492
                    else {
                    • 2493
                      Type( locator1 = "TextInput#PASSWORD_1", value1 = "test");
                    • 2497
                      Type( locator1 = "TextInput#PASSWORD_2", value1 = "test");
                    }
                  • 2502
                    if (isSet(localizedSaveButton)) {
                    • 2503
                      Button.click(button = "${localizedSaveButton}");
                      • 4
                        Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
                    }
                  • 2505
                    else {
                    • 2506
                      Button.clickSubmitButton();
                      • 122
                        Click(locator1 = "Button#SUBMIT");
                    • 2508
                      AssertElementNotPresent(locator1 = "TextInput#ENTER_AGAIN");
                    }
                  }
              }
            • 2062
              if (isSet(localizedAnswer)) {
              • 2063
                User.answerPasswordReminderLocalized( localizedAnswer = "${localizedAnswer}", localizedSaveButton = "${localizedSaveButton}");
                • 3
                  var password = "test";
                • 4
                  var userEmailAddress = "test@liferay.com";
                • 767
                  Pause(locator1 = "3000");
                • 769
                  var key_localizedAnswer = "${localizedAnswer}";
                • 771
                  if (IsElementPresent.pauseIsElementPresent(locator1 = "TextInput#ANSWER_LOCALIZED")) {
                  • 772
                    Type( locator1 = "TextInput#ANSWER_LOCALIZED", value1 = "test");
                  • 776
                    Button.click(button = "${localizedSaveButton}");
                    • 4
                      Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
                  • 778
                    Button.viewNotPresent(button = "${localizedSaveButton}");
                    • 148
                      AssertElementNotPresent( key_text = "${button}", locator1 = "Button#ANY");
                  }
              }
            • 2067
              else if (IsElementPresent(locator1 = "Select#QUESTION")) {
              • 2068
                SignIn.setPasswordReminder();
                • 3
                  var userEmailAddress = "test@liferay.com";
                • 4
                  var userPassword = "test";
                • 5
                  var userPasswordReminderAnswer = "test";
                • 33
                  Type( locator1 = "TextInput#ANSWER", value1 = "${userPasswordReminderAnswer}");
                • 37
                  Button.clickSave();
                  • 102
                    Button.click(button = "Save");
                    • 4
                      Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
                  • 104
                    WaitForLiferayEvent.initializeLiferayEventLog();
              }
            • 2071
              WaitForLiferayEvent.initializeLiferayEventLog();
          }
        • 2001
          else {
          • 2002
            WaitForLiferayEvent.initializeLiferayEventLog();
          }
      • 13
        JSONGroup.addGroup(groupName = "Test Site Name");
        • 29
          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}'");
              }
            }
        • 31
          var groupDescriptionMap = JSONGroupSetter.setGroupDescriptionMap(groupDescription = "${groupDescription}");
          • 32
            if (isSet(groupDescription)) {
            • 33
              var groupDescription = URLUtil.encodeUTF8("${groupDescription}");
            • 35
              var groupDescriptionMap = '''{"en_US":"${groupDescriptionEncoded}"}''';
            }
          • 37
            else {
            • 38
              var groupDescriptionMap = "{}";
            }
          • 41
            return "${groupDescriptionMap}";
        • 33
          var groupNameMap = JSONGroupSetter.setGroupNameMap(groupName = "${groupName}");
          • 61
            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}'");
                }
              }
          • 63
            var groupNameMap = URLUtil.encodeUTF8("${groupName}");
          • 65
            var groupNameMap = '''{"en_US":"${groupName}"}''';
          • 67
            return "${groupNameMap}";
        • 35
          var parentGroupId = JSONGroupSetter.setParentGroupId(groupName = "${parentGroupName}");
          • 85
            if (isSet(parentGroupName)) {
            • 86
              var parentGroupId = JSONGroupAPI._getParentGroupIdByName( grandParentGroupName = "${grandParentGroupName}", groupName = "${parentGroupName}");
              • 253
                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}'");
                    }
                  }
              • 255
                var companyId = JSONCompany.getCompanyId();
                • 4
                  if (!(isSet(portalInstanceName))) {
                  • 5
                    var portalInstanceName = JSONCompany.getPortalInstanceName();
                    • 50
                      var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                    • 51
                      var testPortalInstance = PropsUtil.get("test.portal.instance");
                    • 53
                      if (("${testPortalInstance}" == "true") && !(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
                      • 54
                        var portalURL = JSONCompany.getPortalURL();
                        • 66
                          var portalURL = PropsUtil.get("portal.url");
                        • 68
                          return "${portalURL}";
                      • 56
                        var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                        • 72
                          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}'");
                              }
                            }
                        • 74
                          var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                        • 75
                          var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                        • 77
                          return "${portalInstanceName}";
                      • 58
                        return "${portalInstanceName}";
                      }
                    • 60
                      else {
                      • 61
                        return "localhost";
                      }
                  }
                • 8
                  if (!(isSet(portalURL))) {
                  • 9
                    var portalURL = JSONCompany.getPortalURL();
                    • 66
                      var portalURL = PropsUtil.get("portal.url");
                    • 68
                      return "${portalURL}";
                  }
                • 12
                  if (!(isSet(creatorEmailAddress))) {
                  • 13
                    if ("${authenticationMethod}" == "By Screen Name") {
                    • 14
                      if (!(isSet(userScreenName))) {
                      • 15
                        var creatorEmailAddress = "test";
                      }
                    • 17
                      else {
                      • 18
                        var creatorEmailAddress = "${userScreenName}";
                      }
                    }
                  • 21
                    else {
                    • 22
                      var creatorEmailAddress = "test@liferay.com";
                    }
                  }
                • 26
                  if (!(isSet(creatorPassword))) {
                  • 27
                    var creatorPassword = "test";
                  }
                • 30
                  var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                • 34
                  var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                • 36
                  return "${companyId}";
              • 257
                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}");
                    • 154
                      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}'");
                          }
                        }
                    • 156
                      var companyId = JSONCompany.getCompanyId();
                      • 4
                        if (!(isSet(portalInstanceName))) {
                        • 5
                          var portalInstanceName = JSONCompany.getPortalInstanceName();
                          • 50
                            var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                          • 51
                            var testPortalInstance = PropsUtil.get("test.portal.instance");
                          • 53
                            if (("${testPortalInstance}" == "true") && !(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
                            • 54
                              var portalURL = JSONCompany.getPortalURL();
                              • 66
                                var portalURL = PropsUtil.get("portal.url");
                              • 68
                                return "${portalURL}";
                            • 56
                              var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                              • 72
                                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}'");
                                    }
                                  }
                              • 74
                                var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                              • 75
                                var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                              • 77
                                return "${portalInstanceName}";
                            • 58
                              return "${portalInstanceName}";
                            }
                          • 60
                            else {
                            • 61
                              return "localhost";
                            }
                        }
                      • 8
                        if (!(isSet(portalURL))) {
                        • 9
                          var portalURL = JSONCompany.getPortalURL();
                          • 66
                            var portalURL = PropsUtil.get("portal.url");
                          • 68
                            return "${portalURL}";
                        }
                      • 12
                        if (!(isSet(creatorEmailAddress))) {
                        • 13
                          if ("${authenticationMethod}" == "By Screen Name") {
                          • 14
                            if (!(isSet(userScreenName))) {
                            • 15
                              var creatorEmailAddress = "test";
                            }
                          • 17
                            else {
                            • 18
                              var creatorEmailAddress = "${userScreenName}";
                            }
                          }
                        • 21
                          else {
                          • 22
                            var creatorEmailAddress = "test@liferay.com";
                          }
                        }
                      • 26
                        if (!(isSet(creatorPassword))) {
                        • 27
                          var creatorPassword = "test";
                        }
                      • 30
                        var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                      • 34
                        var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                      • 36
                        return "${companyId}";
                    • 158
                      var portalURL = JSONCompany.getPortalURL();
                      • 66
                        var portalURL = PropsUtil.get("portal.url");
                      • 68
                        return "${portalURL}";
                    • 160
                      if (!(isSet(site))) {
                      • 161
                        var site = "true";
                      }
                    • 164
                      var curl = ''' ${portalURL}/api/jsonws/group/get-groups \ -u test@liferay.com:test \ -d companyId=${companyId} \ -d parentGroupId=0 \ -d site=${site} ''';
                    • 171
                      var groupId = JSONCurlUtil.post("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                    • 173
                      if ("${groupId}" == "") {
                      • 174
                        fail("FAIL. Cannot find group.");
                      }
                    • 177
                      return "${groupId}";
                  }
                • 24
                  else {
                  • 25
                    var grandParentGroupId = "0";
                  }
                • 28
                  return "${grandParentGroupId}";
              • 259
                var portalURL = JSONCompany.getPortalURL();
                • 66
                  var portalURL = PropsUtil.get("portal.url");
                • 68
                  return "${portalURL}";
              • 261
                var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${grandParentGroupId}/site/true \ -u test@liferay.com:test ''';
              • 265
                var groupId = JSONCurlUtil.get("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
              • 267
                if ("${groupId}" == "") {
                • 268
                  fail("FAIL. Cannot find group.");
                }
              • 271
                return "${groupId}";
            }
          • 90
            else {
            • 91
              var parentGroupId = "0";
            }
          • 94
            return "${parentGroupId}";
        • 37
          var type = JSONGroupSetter.setMembershipType(membershipType = "${membershipType}");
          • 71
            if ("${membershipType}" == "Private") {
            • 72
              var type = "3";
            }
          • 74
            else if ("${membershipType}" == "Restricted") {
            • 75
              var type = "2";
            }
          • 77
            else {
            • 78
              var type = "1";
            }
          • 81
            return "${type}";
        • 39
          var manualMembership = JSONGroupSetter.setAllowManualMembershipManagement(allowManualMembershipManagement = "${allowManualMembershipManagement}");
          • 4
            if ("${allowManualMembershipManagement}" == "false") {
            • 5
              var manualMembership = "false";
            }
          • 7
            else {
            • 8
              var manualMembership = "true";
            }
          • 11
            return "${manualMembership}";
        • 41
          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();
              • 66
                var portalURL = PropsUtil.get("portal.url");
              • 68
                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}");
      • 15
        JSONLayout.addPublicLayout( groupName = "Test Site Name", layoutName = "Content Page Name", type = "content");
        • 42
          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}'");
              }
            }
        • 44
          var friendlyURL = JSONLayoutSetter.setFriendlyURL(friendlyURL = "${friendlyURL}");
          • 12
            if (!(isSet(friendlyURL))) {
            • 13
              var friendlyURL = "";
            }
          • 16
            return "${friendlyURL}";
        • 46
          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}");
            • 207
              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}'");
                  }
                }
            • 209
              if (!(isSet(portalURL))) {
              • 210
                var portalURL = JSONCompany.getPortalURL();
                • 66
                  var portalURL = PropsUtil.get("portal.url");
                • 68
                  return "${portalURL}";
              }
            • 213
              var companyId = JSONCompany.getCompanyId(portalURL = "${portalURL}");
              • 4
                if (!(isSet(portalInstanceName))) {
                • 5
                  var portalInstanceName = JSONCompany.getPortalInstanceName();
                  • 50
                    var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                  • 51
                    var testPortalInstance = PropsUtil.get("test.portal.instance");
                  • 53
                    if (("${testPortalInstance}" == "true") && !(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
                    • 54
                      var portalURL = JSONCompany.getPortalURL();
                      • 66
                        var portalURL = PropsUtil.get("portal.url");
                      • 68
                        return "${portalURL}";
                    • 56
                      var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                      • 72
                        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}'");
                            }
                          }
                      • 74
                        var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                      • 75
                        var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                      • 77
                        return "${portalInstanceName}";
                    • 58
                      return "${portalInstanceName}";
                    }
                  • 60
                    else {
                    • 61
                      return "localhost";
                    }
                }
              • 8
                if (!(isSet(portalURL))) {
                • 9
                  var portalURL = JSONCompany.getPortalURL();
                  • 66
                    var portalURL = PropsUtil.get("portal.url");
                  • 68
                    return "${portalURL}";
                }
              • 12
                if (!(isSet(creatorEmailAddress))) {
                • 13
                  if ("${authenticationMethod}" == "By Screen Name") {
                  • 14
                    if (!(isSet(userScreenName))) {
                    • 15
                      var creatorEmailAddress = "test";
                    }
                  • 17
                    else {
                    • 18
                      var creatorEmailAddress = "${userScreenName}";
                    }
                  }
                • 21
                  else {
                  • 22
                    var creatorEmailAddress = "test@liferay.com";
                  }
                }
              • 26
                if (!(isSet(creatorPassword))) {
                • 27
                  var creatorPassword = "test";
                }
              • 30
                var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
              • 34
                var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
              • 36
                return "${companyId}";
            • 215
              var parentGroupId = JSONGroupSetter.setParentGroupId( grandParentGroupName = "${grandParentGroupName}", parentGroupName = "${parentGroupName}");
              • 85
                if (isSet(parentGroupName)) {
                • 86
                  var parentGroupId = JSONGroupAPI._getParentGroupIdByName( grandParentGroupName = "${grandParentGroupName}", groupName = "${parentGroupName}");
                  • 253
                    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}'");
                        }
                      }
                  • 255
                    var companyId = JSONCompany.getCompanyId();
                    • 4
                      if (!(isSet(portalInstanceName))) {
                      • 5
                        var portalInstanceName = JSONCompany.getPortalInstanceName();
                        • 50
                          var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                        • 51
                          var testPortalInstance = PropsUtil.get("test.portal.instance");
                        • 53
                          if (("${testPortalInstance}" == "true") && !(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
                          • 54
                            var portalURL = JSONCompany.getPortalURL();
                            • 66
                              var portalURL = PropsUtil.get("portal.url");
                            • 68
                              return "${portalURL}";
                          • 56
                            var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                            • 72
                              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}'");
                                  }
                                }
                            • 74
                              var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                            • 75
                              var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                            • 77
                              return "${portalInstanceName}";
                          • 58
                            return "${portalInstanceName}";
                          }
                        • 60
                          else {
                          • 61
                            return "localhost";
                          }
                      }
                    • 8
                      if (!(isSet(portalURL))) {
                      • 9
                        var portalURL = JSONCompany.getPortalURL();
                        • 66
                          var portalURL = PropsUtil.get("portal.url");
                        • 68
                          return "${portalURL}";
                      }
                    • 12
                      if (!(isSet(creatorEmailAddress))) {
                      • 13
                        if ("${authenticationMethod}" == "By Screen Name") {
                        • 14
                          if (!(isSet(userScreenName))) {
                          • 15
                            var creatorEmailAddress = "test";
                          }
                        • 17
                          else {
                          • 18
                            var creatorEmailAddress = "${userScreenName}";
                          }
                        }
                      • 21
                        else {
                        • 22
                          var creatorEmailAddress = "test@liferay.com";
                        }
                      }
                    • 26
                      if (!(isSet(creatorPassword))) {
                      • 27
                        var creatorPassword = "test";
                      }
                    • 30
                      var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                    • 34
                      var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                    • 36
                      return "${companyId}";
                  • 257
                    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}");
                        • 154
                          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}'");
                              }
                            }
                        • 156
                          var companyId = JSONCompany.getCompanyId();
                          • 4
                            if (!(isSet(portalInstanceName))) {
                            • 5
                              var portalInstanceName = JSONCompany.getPortalInstanceName();
                              • 50
                                var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                              • 51
                                var testPortalInstance = PropsUtil.get("test.portal.instance");
                              • 53
                                if (("${testPortalInstance}" == "true") && !(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
                                • 54
                                  var portalURL = JSONCompany.getPortalURL();
                                  • 66
                                    var portalURL = PropsUtil.get("portal.url");
                                  • 68
                                    return "${portalURL}";
                                • 56
                                  var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                                  • 72
                                    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}'");
                                        }
                                      }
                                  • 74
                                    var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                                  • 75
                                    var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                                  • 77
                                    return "${portalInstanceName}";
                                • 58
                                  return "${portalInstanceName}";
                                }
                              • 60
                                else {
                                • 61
                                  return "localhost";
                                }
                            }
                          • 8
                            if (!(isSet(portalURL))) {
                            • 9
                              var portalURL = JSONCompany.getPortalURL();
                              • 66
                                var portalURL = PropsUtil.get("portal.url");
                              • 68
                                return "${portalURL}";
                            }
                          • 12
                            if (!(isSet(creatorEmailAddress))) {
                            • 13
                              if ("${authenticationMethod}" == "By Screen Name") {
                              • 14
                                if (!(isSet(userScreenName))) {
                                • 15
                                  var creatorEmailAddress = "test";
                                }
                              • 17
                                else {
                                • 18
                                  var creatorEmailAddress = "${userScreenName}";
                                }
                              }
                            • 21
                              else {
                              • 22
                                var creatorEmailAddress = "test@liferay.com";
                              }
                            }
                          • 26
                            if (!(isSet(creatorPassword))) {
                            • 27
                              var creatorPassword = "test";
                            }
                          • 30
                            var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                          • 34
                            var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                          • 36
                            return "${companyId}";
                        • 158
                          var portalURL = JSONCompany.getPortalURL();
                          • 66
                            var portalURL = PropsUtil.get("portal.url");
                          • 68
                            return "${portalURL}";
                        • 160
                          if (!(isSet(site))) {
                          • 161
                            var site = "true";
                          }
                        • 164
                          var curl = ''' ${portalURL}/api/jsonws/group/get-groups \ -u test@liferay.com:test \ -d companyId=${companyId} \ -d parentGroupId=0 \ -d site=${site} ''';
                        • 171
                          var groupId = JSONCurlUtil.post("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                        • 173
                          if ("${groupId}" == "") {
                          • 174
                            fail("FAIL. Cannot find group.");
                          }
                        • 177
                          return "${groupId}";
                      }
                    • 24
                      else {
                      • 25
                        var grandParentGroupId = "0";
                      }
                    • 28
                      return "${grandParentGroupId}";
                  • 259
                    var portalURL = JSONCompany.getPortalURL();
                    • 66
                      var portalURL = PropsUtil.get("portal.url");
                    • 68
                      return "${portalURL}";
                  • 261
                    var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${grandParentGroupId}/site/true \ -u test@liferay.com:test ''';
                  • 265
                    var groupId = JSONCurlUtil.get("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                  • 267
                    if ("${groupId}" == "") {
                    • 268
                      fail("FAIL. Cannot find group.");
                    }
                  • 271
                    return "${groupId}";
                }
              • 90
                else {
                • 91
                  var parentGroupId = "0";
                }
              • 94
                return "${parentGroupId}";
            • 219
              var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${parentGroupId}/site/${site} \ -u test@liferay.com:test ''';
            • 223
              var groupId = JSONCurlUtil.get("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
            • 225
              if ("${groupId}" == "") {
              • 226
                fail("FAIL. Cannot find group.");
              }
            • 229
              echo("## * GroupId: ${groupId}");
            • 231
              return "${groupId}";
          • 31
            return "${groupId}";
        • 52
          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}");
              • 70
                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}'");
                    }
                  }
              • 72
                var portalURL = JSONCompany.getPortalURL();
                • 66
                  var portalURL = PropsUtil.get("portal.url");
                • 68
                  return "${portalURL}";
              • 74
                var curl = ''' ${portalURL}/api/jsonws/layout/get-layouts \ -u test@liferay.com:test \ -d groupId=${groupId} \ -d privateLayout=${privateLayout} ''';
              • 80
                var layoutId = JSONCurlUtil.post("${curl}", "$.[?(@['nameCurrentValue'] == '${layoutName}')]['layoutId']");
              • 82
                if ("${layoutId}" == "") {
                • 83
                  fail("FAIL. Cannot find layout.");
                }
              • 86
                return "${layoutId}";
            }
          • 56
            else {
            • 57
              var parentLayoutId = "0";
            }
          • 60
            return "${parentLayoutId}";
        • 57
          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}");
                      • 120
                        var temp = RegexUtil.replace("${json}", "\"(${key})\"\s*:\s*\[.*?\]", "1");
                      • 122
                        if ("${temp}" == "${key}") {
                        • 123
                          return "TRUE";
                        }
                      • 125
                        else {
                        • 126
                          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}");
                      • 120
                        var temp = RegexUtil.replace("${json}", "\"(${key})\"\s*:\s*\[.*?\]", "1");
                      • 122
                        if ("${temp}" == "${key}") {
                        • 123
                          return "TRUE";
                        }
                      • 125
                        else {
                        • 126
                          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}");
                      • 120
                        var temp = RegexUtil.replace("${json}", "\"(${key})\"\s*:\s*\[.*?\]", "1");
                      • 122
                        if ("${temp}" == "${key}") {
                        • 123
                          return "TRUE";
                        }
                      • 125
                        else {
                        • 126
                          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}");
                      • 120
                        var temp = RegexUtil.replace("${json}", "\"(${key})\"\s*:\s*\[.*?\]", "1");
                      • 122
                        if ("${temp}" == "${key}") {
                        • 123
                          return "TRUE";
                        }
                      • 125
                        else {
                        • 126
                          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}");
                      • 132
                        var temp = RegexUtil.replace("${json}", "\"(${key})\"\s*:\s*", "1");
                      • 134
                        if ("${temp}" == "${key}") {
                        • 135
                          return "TRUE";
                        }
                      • 137
                        else {
                        • 138
                          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}");
                      • 132
                        var temp = RegexUtil.replace("${json}", "\"(${key})\"\s*:\s*", "1");
                      • 134
                        if ("${temp}" == "${key}") {
                        • 135
                          return "TRUE";
                        }
                      • 137
                        else {
                        • 138
                          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}");
                      • 132
                        var temp = RegexUtil.replace("${json}", "\"(${key})\"\s*:\s*", "1");
                      • 134
                        if ("${temp}" == "${key}") {
                        • 135
                          return "TRUE";
                        }
                      • 137
                        else {
                        • 138
                          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}");
                    • 207
                      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}'");
                          }
                        }
                    • 209
                      if (!(isSet(portalURL))) {
                      • 210
                        var portalURL = JSONCompany.getPortalURL();
                        • 66
                          var portalURL = PropsUtil.get("portal.url");
                        • 68
                          return "${portalURL}";
                      }
                    • 213
                      var companyId = JSONCompany.getCompanyId(portalURL = "${portalURL}");
                      • 4
                        if (!(isSet(portalInstanceName))) {
                        • 5
                          var portalInstanceName = JSONCompany.getPortalInstanceName();
                          • 50
                            var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                          • 51
                            var testPortalInstance = PropsUtil.get("test.portal.instance");
                          • 53
                            if (("${testPortalInstance}" == "true") && !(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
                            • 54
                              var portalURL = JSONCompany.getPortalURL();
                              • 66
                                var portalURL = PropsUtil.get("portal.url");
                              • 68
                                return "${portalURL}";
                            • 56
                              var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                              • 72
                                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}'");
                                    }
                                  }
                              • 74
                                var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                              • 75
                                var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                              • 77
                                return "${portalInstanceName}";
                            • 58
                              return "${portalInstanceName}";
                            }
                          • 60
                            else {
                            • 61
                              return "localhost";
                            }
                        }
                      • 8
                        if (!(isSet(portalURL))) {
                        • 9
                          var portalURL = JSONCompany.getPortalURL();
                          • 66
                            var portalURL = PropsUtil.get("portal.url");
                          • 68
                            return "${portalURL}";
                        }
                      • 12
                        if (!(isSet(creatorEmailAddress))) {
                        • 13
                          if ("${authenticationMethod}" == "By Screen Name") {
                          • 14
                            if (!(isSet(userScreenName))) {
                            • 15
                              var creatorEmailAddress = "test";
                            }
                          • 17
                            else {
                            • 18
                              var creatorEmailAddress = "${userScreenName}";
                            }
                          }
                        • 21
                          else {
                          • 22
                            var creatorEmailAddress = "test@liferay.com";
                          }
                        }
                      • 26
                        if (!(isSet(creatorPassword))) {
                        • 27
                          var creatorPassword = "test";
                        }
                      • 30
                        var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                      • 34
                        var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                      • 36
                        return "${companyId}";
                    • 215
                      var parentGroupId = JSONGroupSetter.setParentGroupId( grandParentGroupName = "${grandParentGroupName}", parentGroupName = "${parentGroupName}");
                      • 85
                        if (isSet(parentGroupName)) {
                        • 86
                          var parentGroupId = JSONGroupAPI._getParentGroupIdByName( grandParentGroupName = "${grandParentGroupName}", groupName = "${parentGroupName}");
                          • 253
                            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}'");
                                }
                              }
                          • 255
                            var companyId = JSONCompany.getCompanyId();
                            • 4
                              if (!(isSet(portalInstanceName))) {
                              • 5
                                var portalInstanceName = JSONCompany.getPortalInstanceName();
                                • 50
                                  var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                                • 51
                                  var testPortalInstance = PropsUtil.get("test.portal.instance");
                                • 53
                                  if (("${testPortalInstance}" == "true") && !(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
                                  • 54
                                    var portalURL = JSONCompany.getPortalURL();
                                    • 66
                                      var portalURL = PropsUtil.get("portal.url");
                                    • 68
                                      return "${portalURL}";
                                  • 56
                                    var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                                    • 72
                                      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}'");
                                          }
                                        }
                                    • 74
                                      var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                                    • 75
                                      var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                                    • 77
                                      return "${portalInstanceName}";
                                  • 58
                                    return "${portalInstanceName}";
                                  }
                                • 60
                                  else {
                                  • 61
                                    return "localhost";
                                  }
                              }
                            • 8
                              if (!(isSet(portalURL))) {
                              • 9
                                var portalURL = JSONCompany.getPortalURL();
                                • 66
                                  var portalURL = PropsUtil.get("portal.url");
                                • 68
                                  return "${portalURL}";
                              }
                            • 12
                              if (!(isSet(creatorEmailAddress))) {
                              • 13
                                if ("${authenticationMethod}" == "By Screen Name") {
                                • 14
                                  if (!(isSet(userScreenName))) {
                                  • 15
                                    var creatorEmailAddress = "test";
                                  }
                                • 17
                                  else {
                                  • 18
                                    var creatorEmailAddress = "${userScreenName}";
                                  }
                                }
                              • 21
                                else {
                                • 22
                                  var creatorEmailAddress = "test@liferay.com";
                                }
                              }
                            • 26
                              if (!(isSet(creatorPassword))) {
                              • 27
                                var creatorPassword = "test";
                              }
                            • 30
                              var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                            • 34
                              var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                            • 36
                              return "${companyId}";
                          • 257
                            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}");
                                • 154
                                  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}'");
                                      }
                                    }
                                • 156
                                  var companyId = JSONCompany.getCompanyId();
                                  • 4
                                    if (!(isSet(portalInstanceName))) {
                                    • 5
                                      var portalInstanceName = JSONCompany.getPortalInstanceName();
                                      • 50
                                        var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                                      • 51
                                        var testPortalInstance = PropsUtil.get("test.portal.instance");
                                      • 53
                                        if (("${testPortalInstance}" == "true") && !(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
                                        • 54
                                          var portalURL = JSONCompany.getPortalURL();
                                          • 66
                                            var portalURL = PropsUtil.get("portal.url");
                                          • 68
                                            return "${portalURL}";
                                        • 56
                                          var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                                          • 72
                                            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}'");
                                                }
                                              }
                                          • 74
                                            var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                                          • 75
                                            var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                                          • 77
                                            return "${portalInstanceName}";
                                        • 58
                                          return "${portalInstanceName}";
                                        }
                                      • 60
                                        else {
                                        • 61
                                          return "localhost";
                                        }
                                    }
                                  • 8
                                    if (!(isSet(portalURL))) {
                                    • 9
                                      var portalURL = JSONCompany.getPortalURL();
                                      • 66
                                        var portalURL = PropsUtil.get("portal.url");
                                      • 68
                                        return "${portalURL}";
                                    }
                                  • 12
                                    if (!(isSet(creatorEmailAddress))) {
                                    • 13
                                      if ("${authenticationMethod}" == "By Screen Name") {
                                      • 14
                                        if (!(isSet(userScreenName))) {
                                        • 15
                                          var creatorEmailAddress = "test";
                                        }
                                      • 17
                                        else {
                                        • 18
                                          var creatorEmailAddress = "${userScreenName}";
                                        }
                                      }
                                    • 21
                                      else {
                                      • 22
                                        var creatorEmailAddress = "test@liferay.com";
                                      }
                                    }
                                  • 26
                                    if (!(isSet(creatorPassword))) {
                                    • 27
                                      var creatorPassword = "test";
                                    }
                                  • 30
                                    var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                                  • 34
                                    var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                                  • 36
                                    return "${companyId}";
                                • 158
                                  var portalURL = JSONCompany.getPortalURL();
                                  • 66
                                    var portalURL = PropsUtil.get("portal.url");
                                  • 68
                                    return "${portalURL}";
                                • 160
                                  if (!(isSet(site))) {
                                  • 161
                                    var site = "true";
                                  }
                                • 164
                                  var curl = ''' ${portalURL}/api/jsonws/group/get-groups \ -u test@liferay.com:test \ -d companyId=${companyId} \ -d parentGroupId=0 \ -d site=${site} ''';
                                • 171
                                  var groupId = JSONCurlUtil.post("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                                • 173
                                  if ("${groupId}" == "") {
                                  • 174
                                    fail("FAIL. Cannot find group.");
                                  }
                                • 177
                                  return "${groupId}";
                              }
                            • 24
                              else {
                              • 25
                                var grandParentGroupId = "0";
                              }
                            • 28
                              return "${grandParentGroupId}";
                          • 259
                            var portalURL = JSONCompany.getPortalURL();
                            • 66
                              var portalURL = PropsUtil.get("portal.url");
                            • 68
                              return "${portalURL}";
                          • 261
                            var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${grandParentGroupId}/site/true \ -u test@liferay.com:test ''';
                          • 265
                            var groupId = JSONCurlUtil.get("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                          • 267
                            if ("${groupId}" == "") {
                            • 268
                              fail("FAIL. Cannot find group.");
                            }
                          • 271
                            return "${groupId}";
                        }
                      • 90
                        else {
                        • 91
                          var parentGroupId = "0";
                        }
                      • 94
                        return "${parentGroupId}";
                    • 219
                      var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${parentGroupId}/site/${site} \ -u test@liferay.com:test ''';
                    • 223
                      var groupId = JSONCurlUtil.get("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                    • 225
                      if ("${groupId}" == "") {
                      • 226
                        fail("FAIL. Cannot find group.");
                      }
                    • 229
                      echo("## * GroupId: ${groupId}");
                    • 231
                      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}");
                      • 132
                        var temp = RegexUtil.replace("${json}", "\"(${key})\"\s*:\s*", "1");
                      • 134
                        if ("${temp}" == "${key}") {
                        • 135
                          return "TRUE";
                        }
                      • 137
                        else {
                        • 138
                          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}");
                      • 132
                        var temp = RegexUtil.replace("${json}", "\"(${key})\"\s*:\s*", "1");
                      • 134
                        if ("${temp}" == "${key}") {
                        • 135
                          return "TRUE";
                        }
                      • 137
                        else {
                        • 138
                          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}";
        • 63
          var type = JSONLayoutSetter.setType(type = "${type}");
          • 93
            if (!(isSet(type))) {
            • 94
              var type = "portlet";
            }
          • 97
            return "${type}";
        • 65
          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();
            • 66
              var portalURL = PropsUtil.get("portal.url");
            • 68
              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} ''';
          • 23
            var plid = JSONCurlUtil.post("${curl}", "$['plid']");
          • 25
            return "${plid}";
        • 74
          return "${plid}";
      }
    • 595
      test ViewDefinedGridLayoutStyleInNonDesktopViewport {
      • 593
        @description = "This is a use case for LPS-146029. View the defined layout style of Grid in the non-desktop viewport."
      • 598
        task ("Add a Grid to page") {
        • 599
          ContentPagesNavigator.openEditContentPage( pageName = "Content Page Name", siteName = "Test Site Name");
          • 19
            if (!(isSet(siteURLKey))) {
            • 20
              var siteURLKey = ContentPagesNavigator._convertNameToKey(name = "${siteName}");
              • 4
                Variables.assertDefined(parameterList = "${name}");
                • 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 key = StringUtil.replace("${name}", " ", "-");
              • 7
                var key = StringUtil.lowerCase("${key}");
              • 9
                return "${key}";
            }
          • 23
            if (!(isSet(pageFriendlyURL))) {
            • 24
              var pageFriendlyURL = ContentPagesNavigator._convertNameToKey(name = "${pageName}");
              • 4
                Variables.assertDefined(parameterList = "${name}");
                • 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 key = StringUtil.replace("${name}", " ", "-");
              • 7
                var key = StringUtil.lowerCase("${key}");
              • 9
                return "${key}";
            }
          • 27
            if ("${privateLayout}" == "true") {
            • 28
              var type = "group";
            }
          • 30
            else {
            • 31
              var type = "web";
            }
          • 34
            Navigator.openWithAppendToBaseURL(urlAppend = "${type}/${siteURLKey}/${pageFriendlyURL}?p_l_mode=edit");
            • 371
              if (!(isSet(baseURL))) {
              • 372
                var baseURL = PropsUtil.get("portal.url");
              }
            • 375
              Open(locator1 = "${baseURL}/${urlAppend}");
          • 36
            PageEditor.assertFragmentSidebarLoaded();
            • 908
              WaitForPageLoad();
            • 910
              AssertVisible(locator1 = "PageEditor#FRAGMENT_SIDEBAR_LOADED");
        • 603
          PageEditor.addFragment( collectionName = "Layout Elements", fragmentName = "Grid");
          • 576
            PageEditor.assertFragmentSidebarLoaded();
            • 908
              WaitForPageLoad();
            • 910
              AssertVisible(locator1 = "PageEditor#FRAGMENT_SIDEBAR_LOADED");
          • 578
            PageEditor.gotoTab(tabName = "Fragments and Widgets");
            • 3239
              if (IsElementPresent(locator1 = "ProductMenu#PRODUCT_MENU_OPENED")) {
              • 3240
                Click( key_tabName = "${tabName}", locator1 = "PageEditor#FRAGMENT_SIDEBAR_TAB_BUTTON");
              }
            • 3244
              else if (IsElementNotPresent(locator1 = "ProductMenu#TOGGLE")) {
              • 3245
                Click( key_tabName = "${tabName}", locator1 = "PageEditor#FRAGMENT_SIDEBAR_TAB_BUTTON");
              }
            • 3249
              else {
              • 3250
                WaitForVisible(locator1 = "Sidebar#PANEL_OPEN");
              • 3252
                if (IsElementNotPresent(key_sidebarButton = "${tabName}", locator1 = "PageEditor#FRAGMENT_SIDEBAR_TITLE")) {
                • 3253
                  Click( key_tabName = "${tabName}", locator1 = "PageEditor#FRAGMENT_SIDEBAR_TAB_BUTTON");
                }
              }
          • 580
            if (!(isSet(displayStyle))) {
            • 581
              var displayStyle = "list";
            }
          • 584
            if ("${displayStyle}" == "list") {
            • 585
              var switchTo = "card";
            }
          • 587
            else {
            • 588
              var switchTo = "list";
            }
          • 591
            if (IsElementNotPresent(key_switchTo = "${switchTo}", locator1 = "PageEditor#FRAGMENTS_AND_WIDGETS_DISPLAY_STYLE_BUTTON")) {
            • 592
              Click( key_switchTo = "", locator1 = "PageEditor#FRAGMENTS_AND_WIDGETS_DISPLAY_STYLE_BUTTON");
            }
          • 597
            AssertVisible( key_switchTo = "${switchTo}", locator1 = "PageEditor#FRAGMENTS_AND_WIDGETS_DISPLAY_STYLE_BUTTON");
          • 601
            Navigator.gotoNavTab(navTab = "Fragments");
            • 115
              var key_tab = "${navTab}";
            • 117
              if (IsElementNotPresent(locator1 = "NavTab#ACTIVE_TAB_LINK")) {
              • 118
                AssertClick.assertPartialTextClickAt( locator1 = "NavTab#TAB_LINK", value1 = "${navTab}");
              }
            • 123
              AssertElementPresent(locator1 = "NavTab#ACTIVE_TAB_LINK");
            • 125
              WaitForLiferayEvent.initializeLiferayEventLog();
          • 603
            PageEditor.expandFragmentCollection(collectionName = "${collectionName}");
            • 3035
              PageEditor.gotoTab(tabName = "Fragments and Widgets");
              • 3239
                if (IsElementPresent(locator1 = "ProductMenu#PRODUCT_MENU_OPENED")) {
                • 3240
                  Click( key_tabName = "${tabName}", locator1 = "PageEditor#FRAGMENT_SIDEBAR_TAB_BUTTON");
                }
              • 3244
                else if (IsElementNotPresent(locator1 = "ProductMenu#TOGGLE")) {
                • 3245
                  Click( key_tabName = "${tabName}", locator1 = "PageEditor#FRAGMENT_SIDEBAR_TAB_BUTTON");
                }
              • 3249
                else {
                • 3250
                  WaitForVisible(locator1 = "Sidebar#PANEL_OPEN");
                • 3252
                  if (IsElementNotPresent(key_sidebarButton = "${tabName}", locator1 = "PageEditor#FRAGMENT_SIDEBAR_TITLE")) {
                  • 3253
                    Click( key_tabName = "${tabName}", locator1 = "PageEditor#FRAGMENT_SIDEBAR_TAB_BUTTON");
                  }
                }
            • 3037
              Navigator.gotoNavTab(navTab = "Fragments");
              • 115
                var key_tab = "${navTab}";
              • 117
                if (IsElementNotPresent(locator1 = "NavTab#ACTIVE_TAB_LINK")) {
                • 118
                  AssertClick.assertPartialTextClickAt( locator1 = "NavTab#TAB_LINK", value1 = "${navTab}");
                }
              • 123
                AssertElementPresent(locator1 = "NavTab#ACTIVE_TAB_LINK");
              • 125
                WaitForLiferayEvent.initializeLiferayEventLog();
            • 3039
              AssertVisible( key_collectionName = "${collectionName}", locator1 = "PageEditor#FRAGMENT_SIDEBAR_COLLECTION_PANEL");
            • 3043
              if (IsElementPresent(key_collectionName = "${collectionName}", locator1 = "PageEditor#FRAGMENT_SIDEBAR_COLLECTION_PANEL_COLLAPSED")) {
              • 3044
                AssertClick( key_collectionName = "${collectionName}", locator1 = "PageEditor#FRAGMENT_SIDEBAR_COLLECTION_PANEL_COLLAPSED", value1 = "${collectionName}");
              }
            • 3050
              AssertElementPresent( key_collectionName = "${collectionName}", locator1 = "PageEditor#FRAGMENT_SIDEBAR_COLLECTION_PANEL_EXPANDED");
          • 605
            if ("${displayStyle}" == "card") {
            • 606
              if (("${scope}" == "Master") && ("${dropTarget}" == "Header")) {
              • 607
                DragAndDrop.javaScriptDragAndDropToUp( key_collectionName = "${collectionName}", key_fragmentName = "${fragmentName}", locator1 = "PageEditor#FRAGMENTS_AND_WIDGETS_TAB_FRAGMENT_CARD_ITEM", locator2 = "PageEditor#HEADER_DROP_TARGET", value1 = "");
              }
            • 615
              if (("${scope}" == "Master") && ("${dropTarget}" == "Footer")) {
              • 616
                DragAndDrop.javaScriptDragAndDropToBottom( key_collectionName = "${collectionName}", key_fragmentName = "${fragmentName}", key_targetFragmentName = "Drop Zone", locator1 = "PageEditor#FRAGMENTS_AND_WIDGETS_TAB_FRAGMENT_CARD_ITEM", locator2 = "PageEditor#ANY_FRAGMENT_DROP_TARGET", value1 = "");
              }
            • 625
              if (isSet(targetFragmentName) && ("${dropTarget}" == "Header")) {
              • 626
                DragAndDrop.javaScriptDragAndDropToUp( key_collectionName = "${collectionName}", key_fragmentName = "${fragmentName}", key_targetFragmentName = "${targetFragmentName}", locator1 = "PageEditor#FRAGMENTS_AND_WIDGETS_TAB_FRAGMENT_CARD_ITEM", locator2 = "PageEditor#ANY_FRAGMENT_DROP_TARGET");
              }
            • 634
              if (isSet(targetFragmentName) && !(isSet(dropTarget))) {
              • 635
                DragAndDrop.javaScriptDragAndDropToBottom( key_collectionName = "${collectionName}", key_fragmentName = "${fragmentName}", key_targetFragmentName = "${targetFragmentName}", locator1 = "PageEditor#FRAGMENTS_AND_WIDGETS_TAB_FRAGMENT_CARD_ITEM", locator2 = "PageEditor#ANY_FRAGMENT_DROP_TARGET", value1 = "");
              }
            • 643
              else {
              • 644
                DragAndDrop.javaScriptDragAndDropToObject( key_collectionName = "${collectionName}", key_fragmentName = "${fragmentName}", locator1 = "PageEditor#FRAGMENTS_AND_WIDGETS_TAB_FRAGMENT_CARD_ITEM", locator2 = "PageEditor#FRAGMENT_DROP_TARGET", value1 = "");
              }
            }
          • 653
            if ("${displayStyle}" == "list") {
            • 654
              if (("${scope}" == "Master") && ("${dropTarget}" == "Header")) {
              • 655
                DragAndDrop.javaScriptDragAndDropToUp( key_collectionName = "${collectionName}", key_fragmentName = "${fragmentName}", locator1 = "PageEditor#FRAGMENTS_AND_WIDGETS_TAB_FRAGMENT", locator2 = "PageEditor#HEADER_DROP_TARGET", value1 = "");
              }
            • 663
              if (("${scope}" == "Master") && ("${dropTarget}" == "Footer")) {
              • 664
                DragAndDrop.javaScriptDragAndDropToBottom( key_collectionName = "${collectionName}", key_fragmentName = "${fragmentName}", key_targetFragmentName = "Drop Zone", locator1 = "PageEditor#FRAGMENTS_AND_WIDGETS_TAB_FRAGMENT", locator2 = "PageEditor#ANY_FRAGMENT_DROP_TARGET", value1 = "");
              }
            • 673
              if (isSet(targetFragmentName) && ("${dropTarget}" == "Header")) {
              • 674
                DragAndDrop.javaScriptDragAndDropToUp( key_collectionName = "${collectionName}", key_fragmentName = "${fragmentName}", key_targetFragmentName = "${targetFragmentName}", locator1 = "PageEditor#FRAGMENTS_AND_WIDGETS_TAB_FRAGMENT", locator2 = "PageEditor#ANY_FRAGMENT_DROP_TARGET");
              }
            • 682
              if (isSet(targetFragmentName) && !(isSet(dropTarget))) {
              • 683
                DragAndDrop.javaScriptDragAndDropToBottom( key_collectionName = "${collectionName}", key_fragmentName = "${fragmentName}", key_targetFragmentName = "${targetFragmentName}", locator1 = "PageEditor#FRAGMENTS_AND_WIDGETS_TAB_FRAGMENT", locator2 = "PageEditor#ANY_FRAGMENT_DROP_TARGET", value1 = "");
              }
            • 691
              else {
              • 692
                DragAndDrop.javaScriptDragAndDropToObject( key_collectionName = "${collectionName}", key_fragmentName = "${fragmentName}", locator1 = "PageEditor#FRAGMENTS_AND_WIDGETS_TAB_FRAGMENT", locator2 = "PageEditor#FRAGMENT_DROP_TARGET", value1 = "");
              }
            }
          • 701
            PageEditor.waitForAutoSave();
            • 4499
              WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
          • 703
            if (!(isSet(position))) {
            • 704
              var key_position = "1";
            }
          • 707
            if (("${fragmentName}" == "Grid") || ("${fragmentName}" == "Container")) {
            • 708
              PageEditor.viewFragment( fragmentName = "${fragmentName}", position = "${position}");
              • 4037
                if (!(isSet(position))) {
                • 4038
                  var position = "1";
                }
              • 4041
                AssertElementPresent( index = "${position}", key_fragmentName = "${fragmentName}", locator1 = "Fragment#FRAGMENT_LABEL");
            }
          • 713
            if (("${fragmentName}" == "Content Display") || ("${fragmentName}" == "Collection Display") || ("${fragmentName}" == "Display Page Content")) {
            • 714
              PageEditor.viewFragmentMessageInfo(fragmentName = "${fragmentName}");
              • 4127
                if ("${fragmentName}" == "Collection Display") {
                • 4128
                  if (!(isSet(messageInfo))) {
                  • 4129
                    var messageInfo = "No Collection Selected Yet";
                  }
                • 4132
                  AssertVisible( key_fragmentName = "${fragmentName}", key_messageInfo = "${messageInfo}", locator1 = "Fragment#NO_COLLECTION_SELECTED_MESSAGE");
                }
              • 4137
                else if ("${fragmentName}" == "Content Display") {
                • 4138
                  if (!(isSet(messageInfo))) {
                  • 4139
                    var messageInfo = "The selected content will be shown here.";
                  }
                • 4142
                  AssertVisible( key_fragmentName = "${fragmentName}", key_messageInfo = "${messageInfo}", locator1 = "Fragment#MESSAGE_INFO");
                }
              • 4147
                else if ("${fragmentName}" == "Display Page Content") {
                • 4148
                  if (!(isSet(messageInfo))) {
                  • 4149
                    var messageInfo = "The display page content will be shown here.";
                  }
                • 4152
                  AssertVisible( key_fragmentName = "${fragmentName}", key_messageInfo = "${messageInfo}", locator1 = "Fragment#MESSAGE_INFO");
                }
              • 4157
                else {
                • 4158
                  AssertVisible( key_fragmentName = "${fragmentName}", key_messageInfo = "${messageInfo}", locator1 = "Fragment#MESSAGE_INFO");
                }
            }
          • 717
            if (isSet(composition)) {
            • 718
              echo("## Adding a composition of fragments");
            }
          • 720
            else {
            • 721
              PageEditor.viewFragment( fragmentName = "${fragmentName}", position = "${position}");
              • 4037
                if (!(isSet(position))) {
                • 4038
                  var position = "1";
                }
              • 4041
                AssertElementPresent( index = "${position}", key_fragmentName = "${fragmentName}", locator1 = "Fragment#FRAGMENT_LABEL");
            }
        }
      • 608
        task ("Change the Number of Modules to 6") {
        • 609
          PageEditor.editLayoutGrid( columnCount = "6", panel = "General");
          • 2682
            if (isSet(position)) {
            • 2683
              var index = "${position}";
            }
          • 2685
            else {
            • 2686
              var index = "1";
            }
          • 2689
            PageEditor.clickConfigurableField( fragmentName = "Grid", index = "${index}");
            • 975
              if (!(isSet(index))) {
              • 976
                var index = "1";
              }
            • 979
              Click.javaScriptClick( index = "${index}", key_fragmentName = "${fragmentName}", locator1 = "Fragment#FRAGMENT_LABEL");
          • 2693
            AssertVisible( key_sidebarButton = "Browser", locator1 = "PageEditor#FRAGMENT_SIDEBAR_TITLE");
          • 2697
            if ("${panel}" == "Styles") {
            • 2698
              Navigator.gotoNavTab(navTab = "Styles");
              • 115
                var key_tab = "${navTab}";
              • 117
                if (IsElementNotPresent(locator1 = "NavTab#ACTIVE_TAB_LINK")) {
                • 118
                  AssertClick.assertPartialTextClickAt( locator1 = "NavTab#TAB_LINK", value1 = "${navTab}");
                }
              • 123
                AssertElementPresent(locator1 = "NavTab#ACTIVE_TAB_LINK");
              • 125
                WaitForLiferayEvent.initializeLiferayEventLog();
            • 2700
              if (isSet(backgroundColor)) {
              • 2701
                PageEditor.selectColorSwatchItem( colorSwatchItem = "${backgroundColor}", fieldLabel = "Background Color");
                • 3532
                  Click( key_fieldLabel = "${fieldLabel}", locator1 = "Button#COLOR_PICKER");
                • 3536
                  Click( key_colorSwatchItem = "${colorSwatchItem}", locator1 = "Button#COLOR_SWATCH_ITEM");
              • 2705
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              }
            • 2708
              if (isSet(backgroundImage)) {
              • 2709
                Select( key_fieldLabel = "Image Source", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${backgroundImage}");
              • 2714
                if ("${backgroundImage}" == "Mapping") {
                • 2715
                  if (isSet(entryTitle)) {
                  • 2716
                    PageEditorMapping.mapEditableFieldToAsset( entryTitle = "${entryTitle}", navItem = "${navItem}", uploadFileName = "${uploadFileName}");
                    • 49
                      if (IsTextEqual(key_fieldLabel = "Item", locator1 = "PageEditor#ITEM_SELECTOR_CONTENT_INPUT", value1 = "")) {
                      • 50
                        Click( key_fieldLabel = "Item", key_text = "plus", locator1 = "Icon#ANY_ITEM_SELECTOR");
                      }
                    • 55
                      else {
                      • 56
                        Click( key_fieldLabel = "Item", key_text = "change", locator1 = "Icon#ANY_ITEM_SELECTOR");
                      }
                    • 62
                      if (IsElementPresent(key_menuItem = "Select Item...", locator1 = "MenuItem#ANY_MENU_ITEM")) {
                      • 63
                        if (isSet(contentItem)) {
                        • 64
                          MenuItem.click(menuItem = "${contentItem}");
                          • 4
                            Click( key_menuItem = "${menuItem}", locator1 = "MenuItem#ANY_MENU_ITEM");
                        }
                      • 66
                        else {
                        • 67
                          MenuItem.click(menuItem = "Select Item...");
                          • 4
                            Click( key_menuItem = "${menuItem}", locator1 = "MenuItem#ANY_MENU_ITEM");
                        }
                      }
                    • 71
                      SelectFrame(locator1 = "IFrame#MODAL_BODY");
                    • 73
                      NavItem.click(navItem = "${navItem}");
                      • 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");
                    • 75
                      if (isSet(uploadFileName)) {
                      • 76
                        AssertElementPresent(locator1 = "ItemSelector#SELECT_FILE_UPLOAD_IMAGE");
                      • 78
                        UploadCommonFile.uploadCommonFileHiddenNoMouseOver( locator1 = "TextInput#FILE", value1 = "${uploadFileName}");
                      • 82
                        Pause(locator1 = "5000");
                      • 84
                        AssertElementPresent.pauseAssertVisible( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                      • 88
                        AssertClick( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                      }
                    • 92
                      else if ("${navItem}" == "Web Content") {
                      • 93
                        LexiconEntry.changeDisplayStyle(displayStyle = "cards");
                        • 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");
                      • 95
                        Click( key_card = "${entryTitle}", locator1 = "Card#CARD_TITLE");
                      }
                    • 99
                      else {
                      • 100
                        Click( key_card = "${entryTitle}", locator1 = "Card#CARD_TITLE");
                      }
                    • 105
                      AssertTextEquals( key_fieldLabel = "Item", locator1 = "PageEditor#ITEM_SELECTOR_CONTENT_INPUT", value1 = "${entryTitle}");
                    • 110
                      Pause(locator1 = "3000");
                  • 2721
                    if ("${navItem}" == "Documents and Media") {
                    • 2722
                      Select( locator1 = "PageEditorEditableLink#LAYOUT_BACKGROUND_IMAGE_FIELD", value1 = "${fieldName}");
                    }
                  • 2726
                    else {
                    • 2727
                      Select( locator1 = "PageEditorEditableLink#LAYOUT_BACKGROUND_IMAGE_FIELD", value1 = "Image");
                    }
                  • 2732
                    PageEditor.waitForAutoSave();
                    • 4499
                      WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                  }
                • 2734
                  else {
                  • 2735
                    if (isSet(source)) {
                    • 2736
                      Select( key_fieldLabel = "Source", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${source}");
                    }
                  • 2742
                    Pause(locator1 = "3000");
                  • 2744
                    Select( key_fieldLabel = "Field", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${fieldName}");
                  • 2749
                    PageEditor.waitForAutoSave();
                    • 4499
                      WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                  }
                }
              • 2753
                if ("${backgroundImage}" == "Direct") {
                • 2754
                  if (IsTextEqual(key_fieldLabel = "Background Image", locator1 = "PageEditor#ITEM_SELECTOR_CONTENT_INPUT", value1 = "")) {
                  • 2755
                    Click( key_fieldLabel = "Background Image", key_text = "plus", locator1 = "Icon#ANY_ITEM_SELECTOR");
                  }
                • 2760
                  else {
                  • 2761
                    Click( key_fieldLabel = "Background Image", key_text = "change", locator1 = "Icon#ANY_ITEM_SELECTOR");
                  }
                • 2767
                  if (isSet(depotName)) {
                  • 2768
                    ItemSelector.selectRepositoryImage( depotName = "${depotName}", imageFileName = "${imageFileName}", navTab = "Documents and Media");
                    • 500
                      var key_imageFileName = "${imageFileName}";
                    • 502
                      ItemSelector.changeWorkspaces( customImage = "${customImage}", navTab = "${navTab}", workspacesType = "Asset Library");
                      • 183
                        if (!(isSet(customImage))) {
                        • 184
                          SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                        }
                      • 187
                        if (isSet(navTab)) {
                        • 188
                          AssertClick( key_navTab = "${navTab}", locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = "${navTab}");
                        }
                      • 194
                        AssertClick( key_breadcrumbName = "Sites and Libraries", locator1 = "Breadcrumb#BREADCRUMB_ENTRY", value1 = "Sites and Libraries");
                      • 199
                        AssertClick( key_groupTab = "${workspacesType}", locator1 = "ItemSelector#NAVIGATION_GROUP_TAB", value1 = "${workspacesType}");
                    • 507
                      LexiconCard.clickCard(card = "${depotName}");
                      • 14
                        WaitForLiferayEvent.initializeLiferayEventLog();
                      • 16
                        Click.mouseDownMouseUp( key_card = "${card}", locator1 = "Card#CARD");
                    • 509
                      if (isSet(folderName)) {
                      • 510
                        LexiconCard.clickCard(card = "${folderName}");
                        • 14
                          WaitForLiferayEvent.initializeLiferayEventLog();
                        • 16
                          Click.mouseDownMouseUp( 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");
                      }
                  }
                • 2773
                  else {
                  • 2774
                    if (isSet(uploadFileName)) {
                    • 2775
                      ItemSelector.uploadFile( navTab = "Documents and Media", uploadFileName = "${uploadFileName}");
                      • 549
                        var key_navTab = "${navTab}";
                      • 550
                        var key_uploadFileName = "${uploadFileName}";
                      • 552
                        SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                      • 554
                        if (IsElementPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB")) {
                        • 555
                          AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = "${navTab}");
                        }
                      • 560
                        AssertElementPresent(locator1 = "ItemSelector#SELECT_FILE_UPLOAD_IMAGE");
                      • 562
                        UploadCommonFile.uploadCommonFileHiddenNoMouseOver( locator1 = "TextInput#FILE", value1 = "${uploadFileName}");
                      • 566
                        if (isSet(invalidFileValidation)) {
                        • 567
                          AssertTextEquals( key_alertMessage = "${invalidFileValidation}", locator1 = "Message#ERROR_ENTER_A_VALID_VALUE", value1 = "${invalidFileValidation}");
                        • 572
                          AssertElementNotPresent( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                        • 576
                          SelectFrame(value1 = "relative=top");
                        • 578
                          Click.clickNoMouseOver(locator1 = "Modal#CLOSE_BUTTON");
                        }
                      • 580
                        else {
                        • 581
                          Pause(locator1 = "3000");
                        • 583
                          AssertElementPresent.pauseAssertVisible( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                        • 587
                          AssertClick( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                        }
                    }
                  • 2779
                    else if (isSet(imageSourceURL)) {
                    • 2780
                      ItemSelector.addImageFromURL( imageSourceURL = "${imageSourceURL}", navTab = "URL");
                      • 34
                        var key_imageSourceURL = "${imageSourceURL}";
                      • 35
                        var key_navTab = "${navTab}";
                      • 37
                        SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                      • 39
                        if (isSet(wikiAdmin)) {
                        • 40
                          AssertElementNotPresent(locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB");
                        }
                      • 42
                        else {
                        • 43
                          AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = "URL");
                        }
                      • 48
                        AssertElementPresent(locator1 = "ItemSelector#URL_LABEL");
                      • 50
                        AssertElementNotPresent(locator1 = "ItemSelector#URL_IMAGE_PREVIEW");
                      • 52
                        AssertVisible( key_text = "Add", locator1 = "Button#ANY_DISABLED");
                      • 56
                        Click(locator1 = "TextInput#URL");
                      • 58
                        RobotType(locator1 = "${imageSourceURL}");
                      • 60
                        AssertTextEquals( locator1 = "TextInput#URL", value1 = "${imageSourceURL}");
                      • 64
                        if (contains("${imageSourceURL}", "/documents/")) {
                        • 65
                          AssertElementPresent.pauseAssertVisible(locator1 = "ItemSelector#URL_IMAGE_SOURCE");
                        • 67
                          if (IsElementPresent(locator1 = "ItemSelector#URL_IMAGE_EXAMPLE")) {
                          • 68
                            Click(locator1 = "ItemSelector#URL_IMAGE_EXAMPLE");
                          }
                        }
                      • 72
                        WaitForElementPresent( key_text = "Add", locator1 = "Button#ANY_ENABLED");
                      • 76
                        Button.clickAdd();
                        • 10
                          Button.click(button = "Add");
                          • 4
                            Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
                      • 78
                        SelectFrameTop(value1 = "relative=top");
                    }
                  • 2784
                    else {
                    • 2785
                      SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                    • 2787
                      Click( key_card = "${entryTitle}", locator1 = "Card#CARD_TITLE");
                    }
                  }
                • 2793
                  SelectFrame(value1 = "relative=top");
                }
              • 2796
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              }
            • 2799
              if (isSet(borderColor)) {
              • 2800
                PageEditor.selectColorSwatchItem( colorSwatchItem = "${borderColor}", fieldLabel = "Border Color");
                • 3532
                  Click( key_fieldLabel = "${fieldLabel}", locator1 = "Button#COLOR_PICKER");
                • 3536
                  Click( key_colorSwatchItem = "${colorSwatchItem}", locator1 = "Button#COLOR_SWATCH_ITEM");
              • 2804
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              }
            • 2807
              if (isSet(borderRadius)) {
              • 2808
                Select( key_fieldLabel = "Border Radius", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${borderRadius}");
              • 2813
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              }
            • 2816
              if (isSet(borderWidth)) {
              • 2817
                Type( key_fieldLabel = "Border Width", locator1 = "FormFields#NUMBER_FIELD", value1 = "${borderWidth}");
              • 2822
                Click( key_sidebarButton = "Browser", locator1 = "PageEditor#FRAGMENT_SIDEBAR_TITLE");
              • 2826
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              • 2828
                AssertTextEquals( key_fieldLabel = "Border Width", locator1 = "FormFields#NUMBER_FIELD", value1 = "${borderWidth}");
              }
            • 2834
              if (isSet(boxShadow)) {
              • 2835
                Select( key_fieldLabel = "Shadow", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${boxShadow}");
              • 2840
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              }
            • 2843
              PageEditor.configureFragment( marginBottom = "${marginBottom}", marginLeft = "${marginLeft}", marginRight = "${marginRight}", marginTop = "${marginTop}", paddingBottom = "${paddingBottom}", paddingLeft = "${paddingLeft}", paddingRight = "${paddingRight}", paddingTop = "${paddingTop}");
              • 1091
                if (isSet(alignment)) {
                • 1092
                  Select( key_fieldLabel = "Text Align", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${alignment}");
                • 1097
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1100
                if (isSet(backgroundColor)) {
                • 1101
                  PageEditor.selectColorSwatchItem( colorSwatchItem = "${backgroundColor}", fieldLabel = "Background Color");
                  • 3532
                    Click( key_fieldLabel = "${fieldLabel}", locator1 = "Button#COLOR_PICKER");
                  • 3536
                    Click( key_colorSwatchItem = "${colorSwatchItem}", locator1 = "Button#COLOR_SWATCH_ITEM");
                • 1105
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1108
                if (isSet(borderColor)) {
                • 1109
                  PageEditor.selectColorSwatchItem( colorSwatchItem = "${borderColor}", fieldLabel = "Border Color");
                  • 3532
                    Click( key_fieldLabel = "${fieldLabel}", locator1 = "Button#COLOR_PICKER");
                  • 3536
                    Click( key_colorSwatchItem = "${colorSwatchItem}", locator1 = "Button#COLOR_SWATCH_ITEM");
                • 1113
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1116
                if (isSet(borderRadius)) {
                • 1117
                  Select( key_fieldLabel = "Border Radius", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${borderRadius}");
                • 1122
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1125
                if (isSet(bottomSpacing)) {
                • 1126
                  Select( key_fieldLabel = "Bottom Spacing", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${bottomSpacing}");
                • 1131
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1134
                if (isSet(boxShadow)) {
                • 1135
                  Select( key_fieldLabel = "Shadow", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${boxShadow}");
                • 1140
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1143
                if (isSet(headingLevel)) {
                • 1144
                  Select( key_fieldLabel = "Heading Level", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${headingLevel}");
                • 1149
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1152
                if ("${hideFragment}" == "true") {
                • 1153
                  Check.checkNotVisible( checkboxName = "Hide Fragment", locator1 = "Checkbox#ANY_CHECKBOX");
                • 1157
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1160
                if ("${hideFragment}" == "false") {
                • 1161
                  Uncheck.uncheckToggleSwitch( checkboxName = "Hide Fragment", locator1 = "Checkbox#ANY_CHECKBOX");
                • 1165
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1168
                if ("${hideFromSiteSearchResults}" == "true") {
                • 1169
                  Check.checkNotVisible( checkboxName = "Hide from Site Search Results", locator1 = "Checkbox#ANY_CHECKBOX");
                • 1173
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1176
                if (isSet(height)) {
                • 1177
                  Select( key_fieldLabel = "Height", locator1 = "PageEditor#CUSTOM_STYLES_SELECT_FIELD", value1 = "${height}");
                • 1182
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1185
                if (isSet(imageSize)) {
                • 1186
                  Select( key_fieldLabel = "Image Size", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${imageSize}");
                • 1191
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1194
                if (isSet(marginBottom)) {
                • 1195
                  Click( ariaLabel = "Margin Bottom", locator1 = "Button#ANY_WITH_ARIA_LABEL");
                • 1199
                  DropdownMenuItem.click(menuItem = "${marginBottom}");
                  • 4
                    Click( key_menuItem = "${menuItem}", locator1 = "MenuItem#DROPDOWN_MENU_ITEM");
                • 1201
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1204
                if (isSet(marginLeft)) {
                • 1205
                  Click( ariaLabel = "Margin Left", locator1 = "Button#ANY_WITH_ARIA_LABEL");
                • 1209
                  DropdownMenuItem.click(menuItem = "${marginLeft}");
                  • 4
                    Click( key_menuItem = "${menuItem}", locator1 = "MenuItem#DROPDOWN_MENU_ITEM");
                • 1211
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1214
                if (isSet(marginRight)) {
                • 1215
                  Click( ariaLabel = "Margin Right", locator1 = "Button#ANY_WITH_ARIA_LABEL");
                • 1219
                  DropdownMenuItem.click(menuItem = "${marginRight}");
                  • 4
                    Click( key_menuItem = "${menuItem}", locator1 = "MenuItem#DROPDOWN_MENU_ITEM");
                • 1221
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1224
                if (isSet(marginTop)) {
                • 1225
                  Click( ariaLabel = "Margin Top", locator1 = "Button#ANY_WITH_ARIA_LABEL");
                • 1229
                  DropdownMenuItem.click(menuItem = "${marginTop}");
                  • 4
                    Click( key_menuItem = "${menuItem}", locator1 = "MenuItem#DROPDOWN_MENU_ITEM");
                • 1231
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1234
                if (isSet(numberOfSlides)) {
                • 1235
                  Type( key_fieldLabel = "Number of Slides", locator1 = "FormFields#NUMBER_FIELD", value1 = "${numberOfSlides}");
                • 1240
                  Click( key_sidebarButton = "Browser", locator1 = "PageEditor#FRAGMENT_SIDEBAR_TITLE");
                • 1244
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                • 1246
                  AssertTextEquals( key_fieldLabel = "Number of Slides", locator1 = "FormFields#NUMBER_FIELD", value1 = "${numberOfSlides}");
                }
              • 1252
                if (isSet(numberOfTabs)) {
                • 1253
                  Type( key_fieldLabel = "Number Of Tabs", locator1 = "FormFields#NUMBER_FIELD", value1 = "${numberOfTabs}");
                • 1258
                  Click( key_sidebarButton = "Browser", locator1 = "PageEditor#FRAGMENT_SIDEBAR_TITLE");
                • 1262
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                • 1264
                  AssertTextEquals( key_fieldLabel = "Number Of Tabs", locator1 = "FormFields#NUMBER_FIELD", value1 = "${numberOfTabs}");
                }
              • 1270
                if (isSet(paddingBottom)) {
                • 1271
                  Click( ariaLabel = "Padding Bottom", locator1 = "Button#ANY_WITH_ARIA_LABEL");
                • 1275
                  DropdownMenuItem.click(menuItem = "${paddingBottom}");
                  • 4
                    Click( key_menuItem = "${menuItem}", locator1 = "MenuItem#DROPDOWN_MENU_ITEM");
                • 1277
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1280
                if (isSet(paddingLeft)) {
                • 1281
                  Click( ariaLabel = "Padding Left", locator1 = "Button#ANY_WITH_ARIA_LABEL");
                • 1285
                  DropdownMenuItem.click(menuItem = "${paddingLeft}");
                  • 4
                    Click( key_menuItem = "${menuItem}", locator1 = "MenuItem#DROPDOWN_MENU_ITEM");
                • 1287
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1290
                if (isSet(paddingRight)) {
                • 1291
                  Click( ariaLabel = "Padding Right", locator1 = "Button#ANY_WITH_ARIA_LABEL");
                • 1295
                  DropdownMenuItem.click(menuItem = "${paddingRight}");
                  • 4
                    Click( key_menuItem = "${menuItem}", locator1 = "MenuItem#DROPDOWN_MENU_ITEM");
                • 1297
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1300
                if (isSet(paddingTop)) {
                • 1301
                  Click( ariaLabel = "Padding Top", locator1 = "Button#ANY_WITH_ARIA_LABEL");
                • 1305
                  DropdownMenuItem.click(menuItem = "${paddingTop}");
                  • 4
                    Click( key_menuItem = "${menuItem}", locator1 = "MenuItem#DROPDOWN_MENU_ITEM");
                • 1307
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1310
                if (isSet(separatorColor)) {
                • 1311
                  Click( key_borderBottom = "Separator Color", key_paletteItem = "${separatorColor}", locator1 = "Button#BORDER_BOTTOM_PALETTE_ITEM");
                • 1316
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1319
                if (isSet(size)) {
                • 1320
                  Select( key_fieldLabel = "Size", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${size}");
                • 1325
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1328
                if (isSet(textColor)) {
                • 1329
                  PageEditor.selectColorSwatchItem( colorSwatchItem = "${textColor}", fieldLabel = "Text Color");
                  • 3532
                    Click( key_fieldLabel = "${fieldLabel}", locator1 = "Button#COLOR_PICKER");
                  • 3536
                    Click( key_colorSwatchItem = "${colorSwatchItem}", locator1 = "Button#COLOR_SWATCH_ITEM");
                • 1333
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
              • 1336
                if (isSet(type)) {
                • 1337
                  Select( key_fieldLabel = "Type", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${type}");
                • 1342
                  PageEditor.waitForAutoSave();
                  • 4499
                    WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
                }
            • 2853
              if (isSet(opacity)) {
              • 2854
                Type( key_fieldLabel = "Opacity", locator1 = "FormFields#NUMBER_FIELD", value1 = "${opacity}");
              • 2859
                Click( key_sidebarButton = "Browser", locator1 = "PageEditor#FRAGMENT_SIDEBAR_TITLE");
              • 2863
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              • 2865
                AssertTextEquals( key_fieldLabel = "Opacity", locator1 = "FormFields#NUMBER_FIELD", value1 = "${opacity}");
              }
            }
          • 2872
            if ("${panel}" == "General") {
            • 2873
              Navigator.gotoNavTab(navTab = "General");
              • 115
                var key_tab = "${navTab}";
              • 117
                if (IsElementNotPresent(locator1 = "NavTab#ACTIVE_TAB_LINK")) {
                • 118
                  AssertClick.assertPartialTextClickAt( locator1 = "NavTab#TAB_LINK", value1 = "${navTab}");
                }
              • 123
                AssertElementPresent(locator1 = "NavTab#ACTIVE_TAB_LINK");
              • 125
                WaitForLiferayEvent.initializeLiferayEventLog();
            • 2875
              if (isSet(columnCount)) {
              • 2876
                Select( key_fieldLabel = "Number of Modules", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${columnCount}");
              • 2881
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              }
            • 2884
              if ("${spaceBetweenColumns}" == "true") {
              • 2885
                Check.checkNotVisible( checkboxName = "Show Gutter", locator1 = "Checkbox#ANY_CHECKBOX");
              • 2889
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              }
            • 2892
              if ("${spaceBetweenColumns}" == "false") {
              • 2893
                Uncheck.uncheckToggleSwitch( checkboxName = "Show Gutter", locator1 = "Checkbox#ANY_CHECKBOX");
              • 2897
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              }
            • 2900
              if (isSet(height)) {
              • 2901
                Type( key_borderBottom = "Frame", key_fieldLabel = "Height", locator1 = "TextInput#BORDER_BOTTOM_INPUT_FIELD", value1 = "${height}");
              • 2907
                Click( key_sidebarButton = "Browser", locator1 = "PageEditor#FRAGMENT_SIDEBAR_TITLE");
              • 2911
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              }
            • 2914
              if (isSet(layout)) {
              • 2915
                Select( key_fieldLabel = "Layout", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${layout}");
              • 2920
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              }
            • 2923
              if (isSet(verticalAlignment)) {
              • 2924
                Select( key_fieldLabel = "Vertical Alignment", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${verticalAlignment}");
              • 2929
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              }
            • 2932
              if ("${inverseOrder}" == "true") {
              • 2933
                Check.checkNotVisible( checkboxName = "Inverse order", locator1 = "Checkbox#ANY_CHECKBOX");
              • 2937
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              }
            • 2940
              if ("${inverseOrder}" == "false") {
              • 2941
                Uncheck.uncheckToggleSwitch( checkboxName = "Inverse order", locator1 = "Checkbox#ANY_CHECKBOX");
              • 2945
                PageEditor.waitForAutoSave();
                • 4499
                  WaitForVisible(locator1 = "PageEditor#AUTOSAVE_MESSAGE");
              }
            }
        }
      • 614
        task ("Change to the Landscape Phone viewport") {
        • 615
          PageEditor.switchViewport(deviceType = "Landscape Phone");
          • 3578
            if (isSet(modal)) {
            • 3579
              Click( key_deviceType = "${deviceType}", locator1 = "Modal#DEVICE_TYPE");
            }
          • 3583
            else {
            • 3584
              Click( key_deviceType = "${deviceType}", locator1 = "PageEditor#DEVICE_TYPE");
            }
          • 3589
            if ("${deviceType}" == "Desktop") {
            • 3590
              var viewport = "desktop";
            }
          • 3592
            else if ("${deviceType}" == "Tablet") {
            • 3593
              var viewport = "tablet";
            }
          • 3595
            else if ("${deviceType}" == "Landscape Phone") {
            • 3596
              var viewport = "landscapeMobile";
            }
          • 3598
            else if ("${deviceType}" == "Portrait Phone") {
            • 3599
              var viewport = "portraitMobile";
            }
          • 3602
            if (!(isSet(modal))) {
            • 3603
              WaitForVisible( key_deviceType = "${viewport}", locator1 = "PageEditor#VIEWPORT");
            }
        }
      • 618
        task ("View Grid styles in Landscape Phone viewport") {
        • 619
          SelectFrame.selectFrameNoLoading(locator1 = "IFrame#PAGE_EDITOR_GLOBAL_CONTEXT_IFRAME");
        • 621
          PageEditor.viewGridStyle( columnCount = "6", layout = "12", position = "1");
          • 4383
            if (isSet(columnCount)) {
            • 4384
              var i = "0";
            • 4386
              while ("${i}" != "${columnCount}") {
              • 4387
                var columnNumber = ${i} + 1;
              • 4389
                AssertElementPresent( key_columnNumber = "${columnNumber}", key_position = "${position}", locator1 = "PageEditor#GRID_COLUMN");
              }
            • 4395
              var columnNumber = ${columnCount} + 1;
            • 4397
              AssertElementNotPresent( key_columnNumber = "${columnNumber}", key_position = "${position}", locator1 = "PageEditor#GRID_COLUMN");
            }
          • 4403
            if (isSet(inverseOrder)) {
            • 4404
              AssertElementPresent( key_position = "${position}", locator1 = "PageEditor#GRID_CONFIGURATION_INVERSE_ORDER");
            }
          • 4409
            if (isSet(layout)) {
            • 4410
              AssertElementPresent( key_layout = "${layout}", key_position = "${position}", locator1 = "PageEditor#GRID_CONFIGURATION_LAYOUT");
            }
          • 4416
            if ("${spaceBetweenColumns}" == "true") {
            • 4417
              AssertElementNotPresent( key_position = "${position}", locator1 = "PageEditor#GRID_CONFIGURATION_COLUMNS_NO_GUTTER");
            }
          • 4421
            else if ("${spaceBetweenColumns}" == "false") {
            • 4422
              AssertElementPresent( key_position = "${position}", locator1 = "PageEditor#GRID_CONFIGURATION_COLUMNS_NO_GUTTER");
            }
          • 4427
            if ("${verticalAlignment}" == "Top") {
            • 4428
              AssertElementPresent( key_position = "${position}", key_verticalAlignment = "", locator1 = "PageEditor#GRID_CONFIGURATION_VERTICAL_ALIGNMENT");
            }
          • 4433
            else if ("${verticalAlignment}" == "Middle") {
            • 4434
              AssertElementPresent( key_position = "${position}", key_verticalAlignment = "middle", locator1 = "PageEditor#GRID_CONFIGURATION_VERTICAL_ALIGNMENT");
            }
          • 4439
            else if ("${verticalAlignment}" == "Bottom") {
            • 4440
              AssertElementPresent( key_position = "${position}", key_verticalAlignment = "bottom", locator1 = "PageEditor#GRID_CONFIGURATION_VERTICAL_ALIGNMENT");
            }
        • 626
          SelectFrame(value1 = "relative=top");
        }
      • 629
        task ("Change the Layout to 2 Modules per Row") {
        • 630
          Select( key_fieldLabel = "Layout", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "2 Modules per Row");
        }
      • 636
        task ("View edited Grid styles in shown") {
        • 637
          SelectFrame.selectFrameNoLoading(locator1 = "IFrame#PAGE_EDITOR_GLOBAL_CONTEXT_IFRAME");
        • 639
          PageEditor.viewGridStyle( columnCount = "6", layout = "6", position = "1");
          • 4383
            if (isSet(columnCount)) {
            • 4384
              var i = "0";
            • 4386
              while ("${i}" != "${columnCount}") {
              • 4387
                var columnNumber = ${i} + 1;
              • 4389
                AssertElementPresent( key_columnNumber = "${columnNumber}", key_position = "${position}", locator1 = "PageEditor#GRID_COLUMN");
              }
            • 4395
              var columnNumber = ${columnCount} + 1;
            • 4397
              AssertElementNotPresent( key_columnNumber = "${columnNumber}", key_position = "${position}", locator1 = "PageEditor#GRID_COLUMN");
            }
          • 4403
            if (isSet(inverseOrder)) {
            • 4404
              AssertElementPresent( key_position = "${position}", locator1 = "PageEditor#GRID_CONFIGURATION_INVERSE_ORDER");
            }
          • 4409
            if (isSet(layout)) {
            • 4410
              AssertElementPresent( key_layout = "${layout}", key_position = "${position}", locator1 = "PageEditor#GRID_CONFIGURATION_LAYOUT");
            }
          • 4416
            if ("${spaceBetweenColumns}" == "true") {
            • 4417
              AssertElementNotPresent( key_position = "${position}", locator1 = "PageEditor#GRID_CONFIGURATION_COLUMNS_NO_GUTTER");
            }
          • 4421
            else if ("${spaceBetweenColumns}" == "false") {
            • 4422
              AssertElementPresent( key_position = "${position}", locator1 = "PageEditor#GRID_CONFIGURATION_COLUMNS_NO_GUTTER");
            }
          • 4427
            if ("${verticalAlignment}" == "Top") {
            • 4428
              AssertElementPresent( key_position = "${position}", key_verticalAlignment = "", locator1 = "PageEditor#GRID_CONFIGURATION_VERTICAL_ALIGNMENT");
            }
          • 4433
            else if ("${verticalAlignment}" == "Middle") {
            • 4434
              AssertElementPresent( key_position = "${position}", key_verticalAlignment = "middle", locator1 = "PageEditor#GRID_CONFIGURATION_VERTICAL_ALIGNMENT");
            }
          • 4439
            else if ("${verticalAlignment}" == "Bottom") {
            • 4440
              AssertElementPresent( key_position = "${position}", key_verticalAlignment = "bottom", locator1 = "PageEditor#GRID_CONFIGURATION_VERTICAL_ALIGNMENT");
            }
        }
      }
    • 21
      tearDown {
      • 22
        var testPortalInstance = PropsUtil.get("test.portal.instance");
      • 24
        if ("${testPortalInstance}" == "true") {
        • 25
          PortalInstances.tearDownCP();
          • 102
            JSONUser.tearDownNonAdminUsers(authenticationMethod = "${authenticationMethod}");
            • 265
              var userIds = JSONUserAPI._getUserIds(authenticationMethod = "${authenticationMethod}");
              • 274
                var companyId = JSONCompany.getCompanyId(authenticationMethod = "${authenticationMethod}");
                • 4
                  if (!(isSet(portalInstanceName))) {
                  • 5
                    var portalInstanceName = JSONCompany.getPortalInstanceName();
                    • 50
                      var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                    • 51
                      var testPortalInstance = PropsUtil.get("test.portal.instance");
                    • 53
                      if (("${testPortalInstance}" == "true") && !(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
                      • 54
                        var portalURL = JSONCompany.getPortalURL();
                        • 66
                          var portalURL = PropsUtil.get("portal.url");
                        • 68
                          return "${portalURL}";
                      • 56
                        var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                        • 72
                          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}'");
                              }
                            }
                        • 74
                          var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                        • 75
                          var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                        • 77
                          return "${portalInstanceName}";
                      • 58
                        return "${portalInstanceName}";
                      }
                    • 60
                      else {
                      • 61
                        return "localhost";
                      }
                  }
                • 8
                  if (!(isSet(portalURL))) {
                  • 9
                    var portalURL = JSONCompany.getPortalURL();
                    • 66
                      var portalURL = PropsUtil.get("portal.url");
                    • 68
                      return "${portalURL}";
                  }
                • 12
                  if (!(isSet(creatorEmailAddress))) {
                  • 13
                    if ("${authenticationMethod}" == "By Screen Name") {
                    • 14
                      if (!(isSet(userScreenName))) {
                      • 15
                        var creatorEmailAddress = "test";
                      }
                    • 17
                      else {
                      • 18
                        var creatorEmailAddress = "${userScreenName}";
                      }
                    }
                  • 21
                    else {
                    • 22
                      var creatorEmailAddress = "test@liferay.com";
                    }
                  }
                • 26
                  if (!(isSet(creatorPassword))) {
                  • 27
                    var creatorPassword = "test";
                  }
                • 30
                  var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                • 34
                  var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                • 36
                  return "${companyId}";
              • 276
                if (isSet(specificURL)) {
                • 277
                  var portalURL = "${specificURL}";
                }
              • 279
                else {
                • 280
                  var portalURL = JSONCompany.getPortalURL();
                  • 66
                    var portalURL = PropsUtil.get("portal.url");
                  • 68
                    return "${portalURL}";
                }
              • 283
                if ("${authenticationMethod}" == "By Screen Name") {
                • 284
                  var userName = "test";
                }
              • 286
                else {
                • 287
                  var userName = "test@liferay.com";
                }
              • 290
                var curl = ''' ${portalURL}/api/jsonws/user/get-company-users \ -u ${userName}:test \ -d companyId=${companyId} \ -d \ -d ''';
              • 297
                var userIds = JSONCurlUtil.post("${curl}", "$..['userId']");
              • 299
                return "${userIds}";
            • 267
              for (var userId : list "${userIds}") {
              • 268
                var currentEmailAddress = JSONUserGetter.getEmailAddress( authenticationMethod = "${authenticationMethod}", userId = "${userId}");
                • 26
                  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}'");
                      }
                    }
                • 28
                  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}");
                    • 4
                      if (!(isSet(portalInstanceName))) {
                      • 5
                        var portalInstanceName = JSONCompany.getPortalInstanceName();
                        • 50
                          var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                        • 51
                          var testPortalInstance = PropsUtil.get("test.portal.instance");
                        • 53
                          if (("${testPortalInstance}" == "true") && !(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
                          • 54
                            var portalURL = JSONCompany.getPortalURL();
                            • 66
                              var portalURL = PropsUtil.get("portal.url");
                            • 68
                              return "${portalURL}";
                          • 56
                            var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                            • 72
                              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}'");
                                  }
                                }
                            • 74
                              var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                            • 75
                              var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                            • 77
                              return "${portalInstanceName}";
                          • 58
                            return "${portalInstanceName}";
                          }
                        • 60
                          else {
                          • 61
                            return "localhost";
                          }
                      }
                    • 8
                      if (!(isSet(portalURL))) {
                      • 9
                        var portalURL = JSONCompany.getPortalURL();
                        • 66
                          var portalURL = PropsUtil.get("portal.url");
                        • 68
                          return "${portalURL}";
                      }
                    • 12
                      if (!(isSet(creatorEmailAddress))) {
                      • 13
                        if ("${authenticationMethod}" == "By Screen Name") {
                        • 14
                          if (!(isSet(userScreenName))) {
                          • 15
                            var creatorEmailAddress = "test";
                          }
                        • 17
                          else {
                          • 18
                            var creatorEmailAddress = "${userScreenName}";
                          }
                        }
                      • 21
                        else {
                        • 22
                          var creatorEmailAddress = "test@liferay.com";
                        }
                      }
                    • 26
                      if (!(isSet(creatorPassword))) {
                      • 27
                        var creatorPassword = "test";
                      }
                    • 30
                      var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                    • 34
                      var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                    • 36
                      return "${companyId}";
                  • 8
                    var portalURL = JSONCompany.getPortalURL();
                    • 66
                      var portalURL = PropsUtil.get("portal.url");
                    • 68
                      return "${portalURL}";
                  • 10
                    if ("${authenticationMethod}" == "By Screen Name") {
                    • 11
                      var userName = "test";
                    }
                  • 13
                    else {
                    • 14
                      var userName = "test@liferay.com";
                    }
                  • 17
                    var curl = ''' ${portalURL}/api/jsonws/user/get-user-by-id/user-id/${userId} \ -u ${userName}:test \ ''';
                  • 22
                    return "${curl}";
                • 32
                  var userEmailAddress = JSONCurlUtil.get("${curl}", "$['emailAddress']");
                • 34
                  return "${userEmailAddress}";
              • 272
                if ("${currentEmailAddress}" != "test@liferay.com") {
                • 273
                  JSONUser.deleteUserByUserId( authenticationMethod = "${authenticationMethod}", userId = "${userId}");
                  • 205
                    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}'");
                        }
                      }
                  • 207
                    JSONUserAPI._deleteUser( authenticationMethod = "${authenticationMethod}", userId = "${userId}");
                    • 139
                      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}'");
                          }
                        }
                    • 141
                      if (isSet(specificURL)) {
                      • 142
                        var portalURL = "${specificURL}";
                      }
                    • 144
                      else {
                      • 145
                        var portalURL = JSONCompany.getPortalURL();
                        • 66
                          var portalURL = PropsUtil.get("portal.url");
                        • 68
                          return "${portalURL}";
                      }
                    • 148
                      if ("${authenticationMethod}" == "By Screen Name") {
                      • 149
                        var userName = "test";
                      }
                    • 151
                      else {
                      • 152
                        var userName = "test@liferay.com";
                      }
                    • 155
                      var curl = ''' ${portalURL}/api/jsonws/user/delete-user \ -u ${userName}:test \ -d userId=${userId} ''';
                    • 161
                      com.liferay.poshi.runner.util.JSONCurlUtil.post("${curl}");
                }
              }
          • 104
            HeadlessPortalInstanceAPI.cleanAllPortalInstances(authenticationMethod = "${authenticationMethod}");
            • 107
              var portalInstanceJson = HeadlessPortalInstanceAPI._getPortalInstances(authenticationMethod = "${authenticationMethod}");
              • 5
                var portalURL = JSONCompany.getDefaultPortalURL();
                • 40
                  var portalURL = PropsUtil.get("default.portal.url");
                • 42
                  if (!(contains("${portalURL}", "http"))) {
                  • 43
                    var portalURL = "http://${portalURL}";
                  }
                • 46
                  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 ''';
              • 19
                var json = JSONCurlUtil.get("${curl}");
              • 21
                return "${json}";
            • 109
              var portalInstanceIds = JSONUtil.getWithJSONPath("${portalInstanceJson}", "$.items..portalInstanceId");
            • 111
              for (var portalInstanceId : list "${portalInstanceIds}") {
              • 112
                if ("${portalInstanceId}" != "liferay.com") {
                • 113
                  HeadlessPortalInstanceAPI.deletePortalInstance( authenticationMethod = "${authenticationMethod}", portalInstanceId = "${portalInstanceId}");
                  • 122
                    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}'");
                        }
                      }
                  • 124
                    var portalURL = JSONCompany.getDefaultPortalURL();
                    • 40
                      var portalURL = PropsUtil.get("default.portal.url");
                    • 42
                      if (!(contains("${portalURL}", "http"))) {
                      • 43
                        var portalURL = "http://${portalURL}";
                      }
                    • 46
                      return "${portalURL}";
                  • 126
                    var portalInstanceId = StringUtil.replace("${portalInstanceId}", " ", "%20");
                  • 128
                    if ("${authenticationMethod}" == "By Screen Name") {
                    • 129
                      var userName = "test";
                    }
                  • 131
                    else {
                    • 132
                      var userName = "test@liferay.com";
                    }
                  • 135
                    var curl = ''' ${portalURL}/o/headless-portal-instances/v1.0/portal-instances/${portalInstanceId} \ -u ${userName}:test \ -H Content-Type: application/json ''';
                  • 141
                    JSONCurlUtil.delete("${curl}");
                }
              }
        }
      • 27
        else {
        • 28
          JSONGroup.deleteGroupByName(groupName = "Test Site Name");
          • 95
            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}'");
                }
              }
          • 97
            var groupId = JSONGroupSetter.setGroupId( groupName = "${groupName}", portalURL = "${portalURL}");
            • 45
              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}'");
                  }
                }
            • 47
              if (!(isSet(site))) {
              • 48
                var site = "true";
              }
            • 51
              var groupId = JSONGroupAPI._getGroupIdByName( groupName = "${groupName}", parentGroupName = "${parentGroupName}", portalURL = "${portalURL}", site = "${site}");
              • 207
                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}'");
                    }
                  }
              • 209
                if (!(isSet(portalURL))) {
                • 210
                  var portalURL = JSONCompany.getPortalURL();
                  • 66
                    var portalURL = PropsUtil.get("portal.url");
                  • 68
                    return "${portalURL}";
                }
              • 213
                var companyId = JSONCompany.getCompanyId(portalURL = "${portalURL}");
                • 4
                  if (!(isSet(portalInstanceName))) {
                  • 5
                    var portalInstanceName = JSONCompany.getPortalInstanceName();
                    • 50
                      var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                    • 51
                      var testPortalInstance = PropsUtil.get("test.portal.instance");
                    • 53
                      if (("${testPortalInstance}" == "true") && !(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
                      • 54
                        var portalURL = JSONCompany.getPortalURL();
                        • 66
                          var portalURL = PropsUtil.get("portal.url");
                        • 68
                          return "${portalURL}";
                      • 56
                        var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                        • 72
                          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}'");
                              }
                            }
                        • 74
                          var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                        • 75
                          var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                        • 77
                          return "${portalInstanceName}";
                      • 58
                        return "${portalInstanceName}";
                      }
                    • 60
                      else {
                      • 61
                        return "localhost";
                      }
                  }
                • 8
                  if (!(isSet(portalURL))) {
                  • 9
                    var portalURL = JSONCompany.getPortalURL();
                    • 66
                      var portalURL = PropsUtil.get("portal.url");
                    • 68
                      return "${portalURL}";
                  }
                • 12
                  if (!(isSet(creatorEmailAddress))) {
                  • 13
                    if ("${authenticationMethod}" == "By Screen Name") {
                    • 14
                      if (!(isSet(userScreenName))) {
                      • 15
                        var creatorEmailAddress = "test";
                      }
                    • 17
                      else {
                      • 18
                        var creatorEmailAddress = "${userScreenName}";
                      }
                    }
                  • 21
                    else {
                    • 22
                      var creatorEmailAddress = "test@liferay.com";
                    }
                  }
                • 26
                  if (!(isSet(creatorPassword))) {
                  • 27
                    var creatorPassword = "test";
                  }
                • 30
                  var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                • 34
                  var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                • 36
                  return "${companyId}";
              • 215
                var parentGroupId = JSONGroupSetter.setParentGroupId( grandParentGroupName = "${grandParentGroupName}", parentGroupName = "${parentGroupName}");
                • 85
                  if (isSet(parentGroupName)) {
                  • 86
                    var parentGroupId = JSONGroupAPI._getParentGroupIdByName( grandParentGroupName = "${grandParentGroupName}", groupName = "${parentGroupName}");
                    • 253
                      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}'");
                          }
                        }
                    • 255
                      var companyId = JSONCompany.getCompanyId();
                      • 4
                        if (!(isSet(portalInstanceName))) {
                        • 5
                          var portalInstanceName = JSONCompany.getPortalInstanceName();
                          • 50
                            var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                          • 51
                            var testPortalInstance = PropsUtil.get("test.portal.instance");
                          • 53
                            if (("${testPortalInstance}" == "true") && !(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
                            • 54
                              var portalURL = JSONCompany.getPortalURL();
                              • 66
                                var portalURL = PropsUtil.get("portal.url");
                              • 68
                                return "${portalURL}";
                            • 56
                              var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                              • 72
                                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}'");
                                    }
                                  }
                              • 74
                                var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                              • 75
                                var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                              • 77
                                return "${portalInstanceName}";
                            • 58
                              return "${portalInstanceName}";
                            }
                          • 60
                            else {
                            • 61
                              return "localhost";
                            }
                        }
                      • 8
                        if (!(isSet(portalURL))) {
                        • 9
                          var portalURL = JSONCompany.getPortalURL();
                          • 66
                            var portalURL = PropsUtil.get("portal.url");
                          • 68
                            return "${portalURL}";
                        }
                      • 12
                        if (!(isSet(creatorEmailAddress))) {
                        • 13
                          if ("${authenticationMethod}" == "By Screen Name") {
                          • 14
                            if (!(isSet(userScreenName))) {
                            • 15
                              var creatorEmailAddress = "test";
                            }
                          • 17
                            else {
                            • 18
                              var creatorEmailAddress = "${userScreenName}";
                            }
                          }
                        • 21
                          else {
                          • 22
                            var creatorEmailAddress = "test@liferay.com";
                          }
                        }
                      • 26
                        if (!(isSet(creatorPassword))) {
                        • 27
                          var creatorPassword = "test";
                        }
                      • 30
                        var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                      • 34
                        var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                      • 36
                        return "${companyId}";
                    • 257
                      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}");
                          • 154
                            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}'");
                                }
                              }
                          • 156
                            var companyId = JSONCompany.getCompanyId();
                            • 4
                              if (!(isSet(portalInstanceName))) {
                              • 5
                                var portalInstanceName = JSONCompany.getPortalInstanceName();
                                • 50
                                  var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                                • 51
                                  var testPortalInstance = PropsUtil.get("test.portal.instance");
                                • 53
                                  if (("${testPortalInstance}" == "true") && !(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
                                  • 54
                                    var portalURL = JSONCompany.getPortalURL();
                                    • 66
                                      var portalURL = PropsUtil.get("portal.url");
                                    • 68
                                      return "${portalURL}";
                                  • 56
                                    var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                                    • 72
                                      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}'");
                                          }
                                        }
                                    • 74
                                      var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                                    • 75
                                      var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                                    • 77
                                      return "${portalInstanceName}";
                                  • 58
                                    return "${portalInstanceName}";
                                  }
                                • 60
                                  else {
                                  • 61
                                    return "localhost";
                                  }
                              }
                            • 8
                              if (!(isSet(portalURL))) {
                              • 9
                                var portalURL = JSONCompany.getPortalURL();
                                • 66
                                  var portalURL = PropsUtil.get("portal.url");
                                • 68
                                  return "${portalURL}";
                              }
                            • 12
                              if (!(isSet(creatorEmailAddress))) {
                              • 13
                                if ("${authenticationMethod}" == "By Screen Name") {
                                • 14
                                  if (!(isSet(userScreenName))) {
                                  • 15
                                    var creatorEmailAddress = "test";
                                  }
                                • 17
                                  else {
                                  • 18
                                    var creatorEmailAddress = "${userScreenName}";
                                  }
                                }
                              • 21
                                else {
                                • 22
                                  var creatorEmailAddress = "test@liferay.com";
                                }
                              }
                            • 26
                              if (!(isSet(creatorPassword))) {
                              • 27
                                var creatorPassword = "test";
                              }
                            • 30
                              var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                            • 34
                              var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                            • 36
                              return "${companyId}";
                          • 158
                            var portalURL = JSONCompany.getPortalURL();
                            • 66
                              var portalURL = PropsUtil.get("portal.url");
                            • 68
                              return "${portalURL}";
                          • 160
                            if (!(isSet(site))) {
                            • 161
                              var site = "true";
                            }
                          • 164
                            var curl = ''' ${portalURL}/api/jsonws/group/get-groups \ -u test@liferay.com:test \ -d companyId=${companyId} \ -d parentGroupId=0 \ -d site=${site} ''';
                          • 171
                            var groupId = JSONCurlUtil.post("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                          • 173
                            if ("${groupId}" == "") {
                            • 174
                              fail("FAIL. Cannot find group.");
                            }
                          • 177
                            return "${groupId}";
                        }
                      • 24
                        else {
                        • 25
                          var grandParentGroupId = "0";
                        }
                      • 28
                        return "${grandParentGroupId}";
                    • 259
                      var portalURL = JSONCompany.getPortalURL();
                      • 66
                        var portalURL = PropsUtil.get("portal.url");
                      • 68
                        return "${portalURL}";
                    • 261
                      var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${grandParentGroupId}/site/true \ -u test@liferay.com:test ''';
                    • 265
                      var groupId = JSONCurlUtil.get("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                    • 267
                      if ("${groupId}" == "") {
                      • 268
                        fail("FAIL. Cannot find group.");
                      }
                    • 271
                      return "${groupId}";
                  }
                • 90
                  else {
                  • 91
                    var parentGroupId = "0";
                  }
                • 94
                  return "${parentGroupId}";
              • 219
                var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${parentGroupId}/site/${site} \ -u test@liferay.com:test ''';
              • 223
                var groupId = JSONCurlUtil.get("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
              • 225
                if ("${groupId}" == "") {
                • 226
                  fail("FAIL. Cannot find group.");
                }
              • 229
                echo("## * GroupId: ${groupId}");
              • 231
                return "${groupId}";
            • 57
              return "${groupId}";
          • 101
            JSONGroupAPI._deleteGroup( groupId = "${groupId}", portalURL = "${portalURL}");
            • 79
              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}'");
                  }
                }
            • 81
              if (!(isSet(portalURL))) {
              • 82
                var portalURL = JSONCompany.getPortalURL();
                • 66
                  var portalURL = PropsUtil.get("portal.url");
                • 68
                  return "${portalURL}";
              }
            • 85
              var curl = ''' ${portalURL}/api/jsonws/group/delete-group \ -u test@liferay.com:test \ -d groupId=${groupId} ''';
            • 91
              com.liferay.poshi.runner.util.JSONCurlUtil.post("${curl}");
        }
      }