开发者

Selenium IDE test try-catch

I'm recording Selenium test with Selen开发者_开发百科ium IDE.

If I write a test for Selenium in Java native i can insert try-catch statement.

Is it possibile insert try-catch statement in HTML-like test format record with Selenium IDE?

Thanks!

Tommaso


No, you cannot catch exceptions in Selenium IDE. You would need to use Selenium RC to catch and handle exceptions.


You CAN do Try/Catch with the IDE now: I'm trying out SelBlocks and finding some success with it. It provides Selenium commands for javascript-like conditionals, looping, callable functions, error catching, and JSON/XML driven parameterization. It's worth a try.

SelBlocks adds a lot of useful functionality to the Selenium IDE.

https://addons.mozilla.org/en-US/firefox/addon/selenium-ide-sel-blocks/versions/

And some documentation: http://refactoror.wikia.com/wiki/Selblocks_Reference


Selenium Ide does not support Try catch statement

Selenium ide HTML code convert into java code then add try catch statement into the code and run code with selenium webdriver or Selenium RC

If you want to use Try catch statement you have to use selenium RC and Selenium webdriver.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜