开发者

is there any way to automate javascript errors thrown in firefox/IE [duplicate]

开发者 https://www.devze.com 2023-03-02 23:32 出处:网络
This question already ha开发者_开发知识库s answers here: Closed 11 years ago. Possible Duplicate:
This question already ha开发者_开发知识库s answers here: Closed 11 years ago.

Possible Duplicate:

capturing javascript error in selenium

can we capture/automate the js errors thrown in browser while clicking the page .Is it possible to capture with selenium (as far my knowledge i think no!)


Well I'll repost it here again. You can do it by handling window.onerror event. See the following link http://www.silverwareconsulting.com/index.cfm/2010/6/7/Checking-for-JavaScript-Errors-with-Selenium. But anyway, this question is possibly duplicate with this one.


You can detect JavaScript error using Selenium. Following blog will be great help to you http://incodewetrustinc.blogspot.com/2008/06/detecting-javascript-errors-with.html

0

精彩评论

暂无评论...
验证码 换一张
取 消