There are two ways for Java code in the Selenium IDE:
1st way:. When exporting a recorded test case (HTML format) to a java file:
- Record your HTML tests with the Selenium IDE
- File -> Export Test Case As -> Java / JUnit4 / WebDriver
- Save the file (it will be saved as .java and this will show your expected Java code)
Second way: To see Java code directly in the Selenium IDE
- Go to "Options" → "Options" ...
- In the "Selenium IDE Settings" window: check the box "Enable experimental functions" and click "OK"
- Options -> Format -> Java / JUnit4 / WebDriver
- Click “OK” from the “JavaScript Application” pop-up window → You will see the desired Java source code for the recorded tests.
source share