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

closes #1105