Capture previews using RigiJS
You can capture HTML previews via browser developer tools.
Install Rigi injector. For details, see the Install Rigi injector for Chrome and Install Rigi injector for Microsoft Edge guides.
Open your web application in Chrome or Microsoft Edge.
Ensure that the Rigi language is loaded. For details, see the Prepare a staging server with Rigi tokens guide.
Press F12 to open the developer tools.
(Optional) Ensure that Rigi works by performing the following test:
Select the Console tab.
Enter the command
RIGI_Initialize({})
.Hover over a text. If Rigi works correctly, it will be highlighted.
Enter the command:
RIGI_SaveScreenshot("test.html")
. An HTML preview will be captured and stored astest.html
.The HTML code contains all CSS, fonts, images, etc.
Open the captured HTML Preview in a browser.
RigiJS default behavior covers 95% of cases. If Rigi blocks your application, you can overwrite some screen capture settings (for details, see the Configure application profiles seciton).
If the issue is not resolved, contact the Rigi team, so they can extend the script.