Did you just solve automating UI testing without a need for a testing framework!?
Trying it out rn. Will let you know how it goes. :)