I am trying to test our website using the Smart UI - each page is tested and then the resulting image uploaded to Smart UI using the following command:
await page.evaluate((_) => {},
lambdatest_action: ${JSON.stringify({ action: "smartui.takeScreenshot", arguments: { fullPage: true, screenshotName: "CE Solutions Logistics" } })}
);
I was expecting this to create a build within Smart UI for the project and add all screen shots to that build. Instead each action creates it’s own build and I’m unable to choose the baseline as every image is different.
Please could you provide some guidance on how this should be used?
Thanks
Hi Andy,
Hope you are doing well.
The comparison happens between 2 builds and gives you the results after comparing all the screenshots present inside those builds.
Below are the steps that we have to follow:
- Run 1st build by defining the build name and mentioning all the URL of which we want to take the screenshot.
- Run the 2nd build by changing the build name and mentioning the other URLs of which you would like to take the screenshots.
- Once the test complete, open the second build to see the differences between the screenshots.
Also, you can select which build you want to make a baseline build by simply clicking into it.
Hope this helps. If you still have issues, please feel free to mail us on support@lambdatest.com and we will be there to help you out.