Export test as python from Selenium IDE

I did some tests in the Selenium IDE and saved it as a test suite in HTML format, which is great for importing back to the Selenium IDE. Now, however, I would like to extend these tests with python, and when I click on the export test suite and select python, I will get this error.

Package export fails for chrome: // selenium-ide / content / formats / python-rc formatter

How to enable this option in selenium IDE?

Note. I also found an additional plug-in for Firefox that allows batch conversion of tests, but still does not allow exporting the entire test suite as a single file. I understand that I can combine these files manually, but in the future I would like to have this option in my workflow.

Thanks.

ps Running Firefox 3.6 on Fedora 14

+8
source share
2 answers

What version of SIDE are you using? If you are using the latest version (1.9), go to the options, select the "Enable experimental features" checkbox, and Python should now be listed in the formats menu.

+7
source

You will need to download the correct plugins and formatter, which are available at: http://docs.seleniumhq.org/download/#side_plugins

You may also need to include “experimental features” and “developer tools” in the “General Settings”.

Then you can change the format to Python. See below: screenshot 1screenshot 2

Read also the Selenium FAQ and follow the official blog for new changes.

Also check out Selenium with Python for coding examples.


Workaround with latest versions

The community of Perl, PHP, and Groovy users who use Selenium should have been sad when official support for these formatter was dropped. Starting with version 2.0 of the Selenium IDE, these formats were no longer bundled with the Selenium IDE. I have some good news for you. All these formats are bundled as separate plugins, and you can still get them from Selenium IDE v1.1.0 if you are interested. Here is what you need to do.

  • Download Selenium IDE v1.1.0 from the official Selenium download site here . Do not install it, the best way is to right-click on the link and save the link as.
  • Then change the extension from .xpi to .zip and unzip it (or just unzip it: unzip file.xpi ).
  • Open the extracted files one by one in Firefox using the menu File → Open File ... (python-format.xpi, groovy -format.xpi, perl-format.xpi, php-format.xpi, etc. d.).

And you're done.

Troubleshooting

  • restart Firefox after installing new plugins,
  • make sure that all plugins of your format are in the add-in manager and are enabled,
  • If you encounter compatibility issues, you can increase em: maxVersion in install.rdf. See screenshot for location. I plan to release a tool that will do this automatically in the future. Until then, search Google for information on how to do this if you have any problems. I heard that installing Add-on Compatibility Reporter can also help.

Source: http://blog.reallysimplethoughts.com/2011/11/01/the-perl-php-and-groovy-formatters-for-selenium-ide/

+2
source

All Articles