Loading...
Loading...
In Firefox browser, when the Capture Full Page option is enabled, the screenshot tool fails to click a screenshot for certain complex pages. This issue can be seen at times on other browsers, but the threshold for Firefox is lower compared to other browsers, like for example Chrome. Steps to Reproduce 1 - Login an instance using Firefox browser. 2 - Enable ATF screenshots and enable "Capture full page" mode. 3 - Navigate to Automated Test Framework (ATF) >Administration > Properties. 4 - Verify the following properties are set correctly: - "Enable test/test suite execution" should be enabled/checked. - "Enable or disable screenshot capture during test execution" should be set to "Enable for all steps". - "Enable the GlideScreenshot feature" should be enabled/checked. - "Enable capturing the full page when taking a screenshot" should be enabled/checked. 5 - Run an ATF test that opens a sufficiently complex page and reviewing the test result screenshots after the test is finished. One way to make this happen is to make a complex UI page and then open it in an ATF test: 5.1 - Navigate to System UI > UI Pages and click "New". 5.2 - Input any name and set "Client script" to the following (this script basically generates a complex page with many nested components dynamically): for (var i = 0; i < 40; i++) { var div = document.body.appendChild(document.createElement("div")); for (var j = 0; j < 100; j++) div = div.appendChild(document.createElement("div")); div.innerText = i; } 5.3 - Submit the form. 5.4 - Navigate to Automated Test Framework (ATF) > Tests and click "New"; input any name and click "Save". 5.5 - Click "Add Test Step", choose "Form > Open an Existing Record" and click "Next". 5.6 - Set table to "UI Page [sys_ui_page]"; click the magnifying glass next to "Record", type the name of the UI page created earlier and click "OK", then "Submit" the step. 5.7 - Add another test step, choose"Form > Click a UI Action" and click "Next". 5.8 - For UI action choose "Try It" (use the magnifying glass again) then click "Submit". 5.9 - Click "Run Test", choose an existing browser or open a new one and click "Run Test" on the modal (in Firefox). 5.10 - Let the test run to completion in the client test runner; once finished, go back to the test progress viewer and click "Go to result" (or find the result in "Test Results"). 5.11 - Download the screenshot of the last step (one of the attachments near the top of the form). The screenshot should show the UI Page, but instead has no content and is completely black (in Firefox).
After carefully considering the severity and frequency of the issue, and the cost and risk of attempting a fix, it has been decided to not address this issue in any current or near future releases. We do not make this decision lightly, and we apologise for any inconvenience. The workaround is to use the "Capture Full Page" option only with the Chrome browser, which for most pages will work with the full page option, making the GlideScreenshot tool work as designed.
PRB1619022
Click on a version to see all relevant bugs
ServiceNow Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.