Added `assertText()` to Element API.

Asserts that an element's inner text matches a specified value.