When automated tests work perfectly one day but fail for no discernible reason the next, it's easy to get frustrated with automation. But you don't have to stay in the dark. Many of the tools we use today allow us to extend their reach with some custom code. Just use some systems thinking and a little imagination.