View on GitHub

Wisard

Web Internal Structure Action RecorDer - a webdriver based tool for creating Selenium tests

Download this project as a .zip file Download this project as a tar.gz file

Wisard

Web Internal Structure Action RecorDer - a webdriver based tool for creating Selenium tests

Building wisard

Clone or download the source code and either:

Open the 'wisard' folder in NetBeans or your favourite IDE, and build it.

Build a package from the command line with mvn package

Running wisard

Once built, either double-click Wisard-1.6.jar in the targetfolder, or start from the command line with java -jar target/Wisard-1.6.jar Then enter a web URL and click the find icon

The page should load and the left pane will show a list of web elements. Clicking on individual elements will highlight them in the browser

To interact with an element, right-click on it and select 'click' - in this example you can then enter some data into a text field

Clicking the refresh icon rescans the page and now shows the text field is set to the entered data

The right pane is updated with the java statements to perform the operation. That text field can then be asserted on

This generates jUnit output:


    @Test
    public void test1() {
        //find:q
        element = driver.findElement(By.name("q"));
        element.clear();
        element.sendKeys("webdriver");
    }

    @Test
    public void test2() {
        //find:q
        element = driver.findElement(By.name("q"));
        //assert:"webdriver"
        assertEquals("webdriver",element.getAttribute("value"));
    }

If a webpage opens multiple browsers, they can be switched between by selecting the page you wish to use

Wisard supports Firefox, IE, Chrome and Safari and runs on Windows, MacOS and Linux

Safari on MacOS: