Basically, I’m using Selenium IDE version 2.4.0. So, with the help of Selenium IDE, record a new test case by following the steps shown below:
1) Click on File a primary navigation bar
2) Look at the drop-down being shown.
3) Select on Export Test Case As
4) Check if you can convert your selenium test case in any of your preferred language EG: Java / JUnit4 / WebDriver
Save File with the .java extension.
Your test case is converted to WebDriver