powernit
powernit

Reputation: 119

detecting 500 internal server error using seleniumRC

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

Answers (2)

rs79
rs79

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.

Here is a link to get you started in Java.

Upvotes: 1

A.J
A.J

Reputation: 4949

Try selenium.isElementPresent(locatorfor500error)

Upvotes: 1

Related Questions