improve "page text was:" failure message in 16+17 for compat with new
selenium.