使用selenium RC检测500内部服务器错误

时间:2011-06-23 20:59:53

标签: selenium junit selenium-rc junit4 selenium-ide

如何使用selenium RC确定500内部服务器错误?

我试过使用selenium.isTextPresent();方法但它根本没有显示或检测到发生的情况。

2 个答案:

答案 0 :(得分:1)

尝试selenium.isElementPresent(locatorfor500error)

答案 1 :(得分:1)

探索使用captureNetworkTraffic=true模式。这应该使您能够记录源自呼叫的所有响应/请求,包括HTTP 500。

Here是一个让你开始使用Java的链接。