Export test as python from Selenium IDE

只愿长相守 提交于 2019-12-03 09:32:21

问题


I made several tests in Selenium IDE and saved it as a test suite in the HTML format which works fine for importing 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


回答1:


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.




回答2:


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.

  1. 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.
  2. Next, change the extension from .xpi to .zip and uncompress it (or just simply unzip it: unzip file.xpi).
  3. 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/




回答3:


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.



来源:https://stackoverflow.com/questions/5749321/export-test-as-python-from-selenium-ide

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!