Executing Webdriver script from HTML

html, java, javascript, selenium, selenium-webdriver

Solution

Have you looked at Selinium IDE? It's a basic front end for Selinium. You can record and playback test cases and you are able to select which test case to run from a test suite.

Since recently this could be used to run tests in browsers other than just firefox using Selenium IDE.

PS You should also look into Huxley-Selenium for regression testing. We found the node version is much easier to install.

Hope this helps. Good luck!

Problem

I am creating a frame work for my AUT. I plan to use Webdriver/Java. I am relatively new to Selenium, Java and html programming. I want to implement the framework in following manner. - There will be an HTML interface where user can select check boxes for the test cases he wants to run. - He can submit after making his selection. - On submitting the script will be executed. - Execution will consist of only selected cases. My questions are: - Is anything better than html for point 1? I don't want to use Excel as I want this interface to be interactive so that anyone can use the interface, without any knowledge of domain or the script running behind it. - How should I go about point 3? I would need to start my main function and pass the selected 'cases' as an array or something.

Original source