Is it possible to export Selenium IDE test cases as Java/ TestNG/ WebDriver?

99封情书 提交于 2019-12-04 15:51:18

Currently it is not possible to do that!

Workaround:

Export it as Java JUnit4 Webdriver and just change the imports and annotations.

Thats all you need to do

Yes, it is not possible to export the Selenese scripts from IDE to Java/ TestNG/ WebDriver. But, you can edit the scripts and run on TestNG. It works!!

For alternate solution, make use of Selenium Builder from Sauce for this combination https://saucelabs.com/builder

If you must use the Selenium IDE then you'll have to export as Java JUnit4 Webdriver and change the imports and annotations, but don't do that...

Use Saucebuilder. It's a far better tool than the Selenium IDE mostly because it properly understands the difference between the Selenium 1 API and the Selenium 2 API, and, well it works. Sure the UI is clunky, but I'll take a clunky UI over hacking the output of a tool that kinda-sorta-works every time. Here's the link...

https://saucelabs.com/builder

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