The only thing I know of is a 3rd party product which will allow you to do automated testing and may cover off what you're trying to do.
However I suspect it would be a "hammer to crack a nut" in your case.
I'm in no way affiliated with this company and not promoting them, heck not even gone as far as trialled the product but might be worth a look
@larry https://www.assertology.com/