Hi, I was performing smart UI testing and wanted to understand if we can name the screenshots in Smart UI testing?

Hi, I was performing smart UI testing and wanted to understand if we can name the screenshots in Smart UI testing.

Hello Junior. milton,

Yes, you can name your screenshots in Smart UI testing. Please refer to the below code snippet:

 driver.get("https://www.lambdatest.com/");
        Thread.sleep(5000);

        driver.executeScript("smartui.takeScreenshot=pic1");

On the smart UI dashboard, you will get the name of the screenshot as pic1 here.