How can I customise the Selenium IDE export?

隐身守侯 提交于 2019-12-06 04:05:41

I think I found a solution to this problem.

Though you can't customize any of the built in exports, like C# / NUnit / Webdriver, you can create a completely new exporter. I'd recommend modifying an excising one.

  1. Get the source exporter you would like to modify. Ex Options->Options->Formats->C#/NUnit/Webdriver->Source. And copy it to a text editor.
  2. Edit this code.
  3. Options->Options->Formats->Add(button) and paste your new exporter.

I think you have to copy and paste the text, there is not file upload.

This worked for Selenium IDE 2.5.0

Hope this helps!

EDIT: In addition to my answer above, it may be easier to just write your own parser for the Source of your IDE Test.

The source is read-only because it has been provided by a Selenium IDE Plugin. The source is usually helpful if you want to make a very simple formatter. Usually a better way is to create your own customised version of the formatter and package it in a plugin. Take a look at the source itself and the plugin tutorial at http://docs.seleniumhq.org/projects/ide/plugins.jsp

You can find some more information and slides about Selenium IDE plugins on my blog.

Cheers, Samit Badle

Selenium IDE Maintainer. Twitter: @samitbadle Blog: http://blog.reallysimplethoughts.com/

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