Tommaso Taruffi
Tommaso Taruffi

Reputation: 9252

Selenium IDE test try-catch

I'm recording Selenium test with Selenium 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

Upvotes: 1

Views: 4147

Answers (3)

QualiT
QualiT

Reputation: 1955

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

Upvotes: 1

Ankit jain
Ankit jain

Reputation: 4328

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.

Upvotes: 0

highlycaffeinated
highlycaffeinated

Reputation: 19867

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

Upvotes: 4

Related Questions