As part of exploring the other Selenium IDE features in-depth, I will explain about the Selenium IDE’s process of exporting the recorded test into a different programming language format like Java, Python etc.
Let’s get started with a practical demonstration.
New Selenium IDE – Exporting Recorded Tests in different programming language formats
Follow the below steps for exploring the Selenium IDE’s process of exporting the Tests into a different programming language format.
1) Launch the Selenium IDE having any Test Recorded init as shown below:
2) Select the Test in Selenium IDE, select the three dots of the selected test and then select the ‘Export’ option as shown below:
3) In the displayed ‘Select Languages’ dialog, select ‘Java JUnit’ option and click on ‘Export’ button as shown below:
4) The Java file having the Java code of the exported Selenium Test will be displayed as shown below:
5) Click on ‘Save’ button in the above dialog and observe that the file got saved with .java file extension as shown below:
6) Right-click on this file and select ‘Edit with NotePad++’ to check the content in this file as shown below:
7) Observe that Selenium IDE Test steps exported into the Selenium WebDriver + Java code will be displayed in the file as shown below:
8) We can also export the Selenium Tests in other languages displayed in step 3.
Here concludes the practical demonstration of the Selenium IDE Tests which got exported into our system with .java file extension and has the content in the format of Selenium WebDriver with Java on opening the Test file.
In the next article, I will practically demonstrate another Selenium IDE feature to be explored (Refer other features to be explored here)
Next Steps:
- > Check complete Selenium Tutorial Contents here (Click here)
Please leave your questions/comments/feedback below.
Happy Learning ?
On a mission to contribute to the Software Testing Community in all possible ways.