Home > Software engineering >  Is there a way to obfuscate screenshot information in Selenium
Is there a way to obfuscate screenshot information in Selenium

Time:12-10

Just wondering if there's a way to let Selenium know that I want to obfuscate for example input fields with login information, hide the sensitive information sort to say, when taking screenshots. I know that it's possible to screenshot specific element, but that would not be the case. Any other ideas?

CodePudding user response:

I have some suggestions on this when running this with runScript in Selenium IDE that I wanted to share with all of you. This is one of the options when you need to take a screenshots for investigations and don't want people to see the data.

using runScript and changing type to password

And this is what is being returned so people who see the screenshot has no possibility to see the data in the screenshots.

input field with changed type to password

As this was what I was looking for, I mark it as an answer. Thanks everyone!

CodePudding user response:

AFAIK there is no way to do this with Selenium.

  • Related