WebDriver: add support for test expectations