Assertions in Page Object methods?

A little while back, a question was asked on StackOverflow: “Why not include assertions in page methods?

I wrote an answer (something along the lines of: “Almost Never“) and it would be cool if more people added their own thoughts to the question. Whether methods in page objects should contain assertions is a debate that never goes away…

So, assertions in page object methods? Or not? Either way, go write up your thoughts!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>