Export test as python from Selenium IDE

北慕城南 提交于 2019-12-03 01:11:46

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.

  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/

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.

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