06-29-2011, 03:22 PM
If you are sent to an error page then the actual URL will be different from the one expected, so check that. Since this is presumably not a one off test then you will know or can get the list of error urls that the test is going to navigate to as you run through. Just check the URL of the current page against the one expected or against the list of error URLs