Solving this problem:
https://groups.google.com/forum/#!topic/gatling/l7lwVoiMnpw
I tried to implement a custom validator to apply it on the result of the css selector.
For example I want to get an error message “Wrong ID on ${h1}”, if the page id is invalid. Something like this:
**.check(css("h1").saveAs("h1"))**
.check(css("#id").validate(new ContainsOnlyDigits("${h1}"))
Does somebody have an example of such a validator? I did not manage to write such a validator it