Add CSS selector support to assertField

Fixes #650.