When using the Selenium IDE to generate C# tests users get the following error “Suite export not implemented for the cs-rc formatter”:
This happens because there is an error in the code that can’t convert from the default HTML Format to C#. The workaround is to go to Options -> Format and then select C# – Selenium RC. Once converted you don’t need to export anything you can just save it or copy paste it to your C# test.
With this workaround you can also export existing saved selenium test cases from HTML or any of the others to C#. Just open up the saved test case and then switch to C# in Options -> Format
Similar Posts from the author:
- Solution for Selenium IDE – Your browser doesnt support Xml Http Request
- Selenium test in Java with Eclipse and JUnit
- Solution for Selenium already running on port problem
- Solution for – Could not start Selenium Session : Connection timed out
- Capturing screenshots of failed tests in Selenium Webdriver + JUnit4
9 thoughts to “Solution for Selenium IDE Export to C# problem”
Actually, it isn’t a bug but means exactly what the message says — that exporting a suite is not implemented for C#. As of right now, only the Java formatters will export a suite.
Exporting a single test case continues to work however.
-adam
Se-IDE Maintainer
Hi Adam
Thanks for pointing that out. I just wanted to post a workaround to this and to explain how its possible to make the convert if you did not choose the right format from the start and are trying to end up with a C# code.
Doesn’t work for me. My menu option under format is slightly different: “C# (Remote Control)”. Installed Selenium a few days ago.
In the newer versions just select C#(remote control)
The “Option > Format” is complete greyed out?
Any ideas?
Hi Milo,
check with the below link.
http://blog.reallysimplethoughts.com/2011/06/10/does-selenium-ide-v1-0-11-support-changing-formats/
-Baskaran
Milo, you need to enable experimental features in the options.
Selecting Opions->format->PHP-Selenium-Rc works for me which gives php code and we can copy the code to the location where it access with phpunit
I want create a code in c# without remote server using selenium classes is it possible?
Comments are closed.