Unfortunately, there is no way to do this. Even when we were at Microsoft building the product, we didn't have such tools. There are automated scripts for testing the InfoPath Designer (via a backdoor into the OM, but it's not so useful). Nothing for the Editor, but you could write some system program that gets the window controls and walks the HTML tree. Not sure that would be very interesting though.
Sorry!