Browsers keep four different pictures of your page at once, and most automation bugs live in the gap between them.