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":1650770064386,"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":1650940705638,"lastLoginIP":"127.0.0.1","lastName":"Test","ldapServerId":"-1","lockout":false,"lockoutDate":null,"loginDate":1650942148195,"loginIP":"127.0.0.1","middleName":"","modifiedDate":1650942294800,"mvccVersion":"77","openId":"","portraitId":"0","reminderQueryAnswer":"test","reminderQueryQuestion":"what-is-your-father's-middle-name","screenName":"test","status":0,"timeZoneId":"UTC","userId":"20127","uuid":"f08c6a49-d5be-2558-d7ae-27536f15de2e"}Finished executing commands.
Running post with parametersArg: ${curl}Return: {"agreedToTermsOfUse":true,"comments":"","companyId":"20099","contactId":"20129","createDate":1650770064386,"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":1650940705638,"lastLoginIP":"127.0.0.1","lastName":"Test","ldapServerId":"-1","lockout":false,"lockoutDate":null,"loginDate":1650942148195,"loginIP":"127.0.0.1","middleName":"","modifiedDate":1650942295411,"mvccVersion":"78","openId":"","portraitId":"0","reminderQueryAnswer":"test","reminderQueryQuestion":"what-is-your-father's-middle-name","screenName":"test","status":0,"timeZoneId":"UTC","userId":"20127","uuid":"f08c6a49-d5be-2558-d7ae-27536f15de2e"}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 post with parametersArg: ${curl}Return: {"classNameId":"0","classPK":"0","colorSchemeId":"","companyId":"20099","createDate":1650942305319,"css":"","ctCollectionId":"0","description":"","descriptionCurrentValue":"","friendlyURL":"\/documents-and-media-page","groupId":"20123","hidden":false,"iconImageId":"0","keywords":"","keywordsCurrentValue":"","lastPublishDate":null,"layoutId":"26","layoutPrototypeLinkEnabled":false,"layoutPrototypeUuid":"","masterLayoutPlid":"0","modifiedDate":1650942308541,"mvccVersion":"1","name":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Name language-id=\"en_US\">Documents and Media Page<\/Name><\/root>","nameCurrentValue":"Documents and Media Page","parentLayoutId":"0","parentPlid":"0","plid":"33","priority":2,"privateLayout":false,"publishDate":1650942305319,"robots":"","robotsCurrentValue":"","sourcePrototypeLayoutUuid":"","status":0,"statusByUserId":"20127","statusByUserName":"Test Test","statusDate":1650942305319,"styleBookEntryId":"0","system":false,"themeId":"","title":"","titleCurrentValue":"","type":"portlet","typeSettings":"column-1=com_liferay_document_library_web_portlet_DLPortlet_INSTANCE_ndYdjrmPuQPq%0Alayout-template-id=2_columns_ii%0A","userId":"20127","userName":"Test Test","uuid":"458a624f-05a6-65a7-e97b-8bd3eaa1b9f3"}Finished executing commands.
This is a test for LPS-82205. It checks that the XSS can not be executed after accessing HTML file.
Running Open with locator1http://localhost:8080/group/guest/~/control_panel/manage/-/site/settings?_com_liferay_site_admin_web_portlet_SiteSettingsPortlet_mvcRenderCommandName=%2Fconfiguration_admin%2Fview_configuration_screen&_com_liferay_site_admin_web_portlet_SiteSettingsPortlet_configurationScreenKey=site-configuration-documents-and-media
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/group/guest/~/control_panel/manage/-/site/settings?_com_liferay_site_admin_web_portlet_SiteSettingsPortlet_mvcRenderCommandName=%2Fconfiguration_admin%2Fview_configuration_screen&_com_liferay_site_admin_web_portlet_SiteSettingsPortlet_configurationScreenKey=site-configuration-documents-and-media
Running assertLiferayErrors
Running selectWindow with parameters
Running selectFrame with parametersrelative=top
Running open with parametershttp://localhost:8080/group/guest/~/control_panel/manage/-/site/settings?_com_liferay_site_admin_web_portlet_SiteSettingsPortlet_mvcRenderCommandName=%2Fconfiguration_admin%2Fview_configuration_screen&_com_liferay_site_admin_web_portlet_SiteSettingsPortlet_configurationScreenKey=site-configuration-documents-and-media
Running assertJavaScriptErrors with parametershttp://localhost:8080/group/guest/~/control_panel/manage/-/site/settings?_com_liferay_site_admin_web_portlet_SiteSettingsPortlet_mvcRenderCommandName=%2Fconfiguration_admin%2Fview_configuration_screen&_com_liferay_site_admin_web_portlet_SiteSettingsPortlet_configurationScreenKey=site-configuration-documents-and-media
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/group/guest/~/control_panel/manage/-/site/settings?_com_liferay_site_admin_web_portlet_SiteSettingsPortlet_mvcRenderCommandName=%2Fconfiguration_admin%2Fview_configuration_screen&_com_liferay_site_admin_web_portlet_SiteSettingsPortlet_configurationScreenKey=site-configuration-documents-and-media
Running assertLiferayErrors
Running Check#checkToggleSwitch with locator1//div[contains(@data-field-name,'Enable Directory Indexing')]//span[@class='toggle-switch-bar'] | //label[contains(.,'Enable Directory Indexing')]//input
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parameters//div[contains(@data-field-name,'Enable Directory Indexing')]//span[@class='toggle-switch-bar'] | //label[contains(.,'Enable Directory Indexing')]//input
Running assertLiferayErrors
Running waitForElementPresent with parameters//div[contains(@data-field-name,'Enable Directory Indexing')]//span[@class='toggle-switch-bar'] | //label[contains(.,'Enable Directory Indexing')]//input
Running mouseOver with parameters//div[contains(@data-field-name,'Enable Directory Indexing')]//span[@class='toggle-switch-bar'] | //label[contains(.,'Enable Directory Indexing')]//input
Running isNotChecked with parameters//div[contains(@data-field-name,'Enable Directory Indexing')]//span[@class='toggle-switch-bar'] | //label[contains(.,'Enable Directory Indexing')]//input
Running assertJavaScriptErrors with parameters//div[contains(@data-field-name,'Enable Directory Indexing')]//span[@class='toggle-switch-bar'] | //label[contains(.,'Enable Directory Indexing')]//input
Running assertLiferayErrors
Running Click#mouseDownMouseUp with locator1//*[not(self::div)][contains(@class,'btn')][normalize-space()='Save'][not(contains(@class,'navbar'))]
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Save'][not(contains(@class,'navbar'))]
Running assertLiferayErrors
Running waitForElementPresent with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Save'][not(contains(@class,'navbar'))]
Running waitForVisible with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Save'][not(contains(@class,'navbar'))]
Running mouseDown with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Save'][not(contains(@class,'navbar'))]
Running mouseUp with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Save'][not(contains(@class,'navbar'))]
Running assertJavaScriptErrors with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Save'][not(contains(@class,'navbar'))]
JSONDocument.addFileWithUploadedFile(
dmDocumentDescription = "The file is a basic HTML file with a simple JavaScript",
dmDocumentTitle = "xss_test",
groupName = "Guest",
mimeType = "code/html",
sourceFileName = "xss_test.html");