Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

In Selenium IDE 1.9.0 there are options to export testcases as Java / JUnit4 / Webdriver and Java / TestNG / Remote Control (along with many more options).

I want to know is there any way to export the test case as Java / TestNG /Webdriver? If not is there any workaround for the same? Or can we export it as JUnit and change it to TestNG in some simple steps??

like image 306
some_other_guy Avatar asked Feb 20 '23 07:02

some_other_guy


2 Answers

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

like image 153
Tarken Avatar answered Feb 21 '23 20:02

Tarken


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

like image 35
Prashanth Sams Avatar answered Feb 21 '23 20:02

Prashanth Sams