After the release of the Selenium IDE v1.0.11, I have come across a lot of queries about the missing language support in Selenium IDE. Here are a few variations of the queries:-
- The formatters are not working as expected
- Selenium IDE doesn’t show formats
- Format is greyed out.
- Unable to format the HTML code to Java
Let me lay your fears to rest. The support for the existing languages has not gone away. It is still there, but it has been disabled for your own good. Currently, the recommended way to convert your tests to another language is to use the export feature of Selenium IDE,. You can access it from the Export Test Case As menu item in the File menu. If you want to do a lot of conversion, you will find my Test Suite Batch Converter plugin very useful. If you really really really must change the format like in the earlier versions, you can. Here is how you can turn it back on. Open the Options dialog and turn on the Enable experimental features option. See the screen shot for details. Once you turn on the experimental features, you should be able to get your beloved formats working again. The Format menu item in the Options menu will no longer be greyed out. Let me warn you once again that you should NOT be using it.
So what exactly is wrong with the formats?
Well, nothing! There is nothing wrong with the formats themselves. Let me explain the situation some more. Selenium IDE cannot work with any language other than the HTML based Selenese. So when you change the format to another language, Selenium IDE does something clever. Behind the scene, it keeps a copy of the Selenese test case and on the fly converts it to the selected language and shows it to you. It seems that Selenium IDE is magically able to record in all supported languages. It SEEMS, but it is not true. More often than not, if you make any changes directly to the test case, they will seem to be there, but Selenium IDE cannot do much with it. Once you save the test case, and try to open the it again, tough luck, you usually cannot. If you change the format again, it will usually lose all your changes. In short, there is still a lot to work to do to make this feature stable. Until then, there is a lot of chance for losing your changes and I decided to mark this feature as experimental. If the thought of losing your hours and hours of your tests does not scare you, turn on the experimental features and ignore the warnings. But, if you want to play it safe, use the Export feature instead. The choice is in your hands.
Update: In Selenium IDE v1.0.12 onwards, you can use the Disable format change warning messages option in the options dialog to turn off (or on again) the warning message while changing formats.