Reputation: 119
How can you determine 500 internal server error using selenium RC?
I have tried to use selenium.isTextPresent(); method but it does not show or detect the occurring at all.
Upvotes: 2
Views: 1799
Reputation: 2321
Explore the use of the captureNetworkTraffic=true mode. This should enable you to log all response/requests stemming from a call, including HTTP 500s.
captureNetworkTraffic=true
Here is a link to get you started in Java.
Upvotes: 1
Reputation: 4949
Try selenium.isElementPresent(locatorfor500error)