Wait for a given CSS selector before generating a report

Resolves #144