I am really confused by the Selenium website. At first they are suitable for explaining the Selenium IDE, but it outputs HTML test cases. But when you move on to the Java documentation, it uses WebDriver, which is pure java, and your HTML test cases are useless. I found the export to the JUnit function from the Selenium IDE, but does not use the WebDriver api, it wraps it inside the Selenium api, which does not even work. I get errors that can only have one session at a time. I had only one test, making sure that with netstat I had no other software listening on the port and a disconnected instance of selenium. It just won't work. In addition, the test file expanded from an obsolete class.
You cannot return a test case to the Selenium IDE from Java code so that you can throw away the Selenium IDE at this point.
I converted the test case to a clean WebDriver and I got it to work. So what is the recommended workflow for working with selenium and JUnit? Should I forget about the Selenium IDE and write actions in the browser and just write everything in Java? Or can I still use the Selenium IDE?
palto source share