I'm learning to write these test to help increase overall quality of the code I write, however I've been unable to find any example of a test that checks to see if an element contains anything - there are plenty of test that check for exact phrases.
In my case it's a CMS driven application, so if the user changes the content the test will fail, so it's seems more reasonable to check to make sure there is some content in the page, regards of the content.
I've found a way to do with this selenium and jQuery, but it's a lot slower to run tests this way, and so I'm trying where possible to keep to command line only.
Any one had experience with this sort of thing before? My application is written in PHP, I've had a bit of luck with some custom tests actions, but I'm by no means a advanced coder.