Export test as python from Selenium IDE
I made several tests in Selenium IDE and saved it as a test suite in the HTML format which works fine for imp开发者_JAVA百科orting back into selenium IDE. Now however I would like to expand these tests using python and when I click export test suite and choose python I get this error
Suite export not implemented for the chrome://selenium-ide/content/formats/python-rc formatter
How can I enable this option in selenium IDE?
Note I also have found an additional plugin for Firefox that allows batch conversion of tests but still does not allow export of the entire test suite as one file. I realize I could combine these files by hand but in the future I would like to have this option in my workflow.
Thank you.
p.s Running Firefox 3.6 on fedora 14
What version of SIDE are you running? If you are running the latest version (1.9), go into options, check the box off for "Enable Experimental Features" and the formats menu should now list Python.
You'll have to download the right plugins and formatters which are available at: http://docs.seleniumhq.org/download/#side_plugins
You also may require to enable 'experimental features' and 'developer tools' in General Options.
Then you should be able to change the format to Python. See below:
Please read also Selenium FAQ and follow the official blog for new changes.
Also check Selenium with Python for the coding examples.
Workaround with the latest versions
The community of Perl, PHP and Groovy users that use Selenium must have felt sad when the official support for these formatters was dropped. Starting v1.2.0 of Selenium IDE, these formatters were no longer bundled with Selenium IDE. I have some good news for you. All these formatters are bundled as individual 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 the Selenium IDE v1.1.0 from official Selenium download site here. Do not install it, the best way is to right click on the link and save link as.
- Next, change the extension from .xpi to .zip and uncompress it (or just simply unzip it:
unzip file.xpi
). - Open the extracted files one by one in Firefox using the File menu -> Open File… menu item (python-format.xpi, groovy-format.xpi, perl-format.xpi, php-format.xpi, etc).
And you're done.
Troubleshooting
- restart your Firefox after installing new plugins,
- make sure that all your format plugins are on Add-ons Manager and are enabled,
- if you run into compatibility issues, you can bump up the em:maxVersion in the install.rdf. See the screenshot for the location. I am planning to release a tool that will do this automatically in the future. Till then, search in Google on how to do this if you are having trouble. I have heard that installing the Add-on Compatibility Reporter first can also help.
Source: http://blog.reallysimplethoughts.com/2011/11/01/the-perl-php-and-groovy-formatters-for-selenium-ide/
I just change from selenium IDE to katalon, for python and other export formatter support.
After install and try some selenium IDE, I found it is the tool record and export code like python I needed for now.
精彩评论