Replace lazily_find_element with a have_css matcher to automatically wait.

Fixes #2873