Is it possible to set a SmartUI project to let it "overwrite screenshots" programatically?

Right now I’m using playwright to automatically create Smart-UI projects. This works quite well, but it can’t overwrite old screenshots.

I know there is an option on the project page itself, but I wonder if I can change or initially set this option programatically via a setting in “LT:Options” or somewhere else.

Otherwise I’d have to do this manually on the frontend every time a new project is created.


Currently, there is no capability to overwrite a screenshot within the code itself; this can only be achieved manually through the project settings.

Document for your reference: