support :wait option in `assert_selector` and `has_text?` matcher

closes #1105