Description

As the name suggests Seb is a core class of the whole framework. It contains methods to construct Pages and Logic, find elements in different contexts (= elements, modules or pages), navigate to pages and many more.

Start and quit

Favourable attitude using JUnit is to create base class for all your tests where you specify setUp and tearDown method and than extend it with classes containing specific tests. Base class might look like this:

public class Sebtest {
    protected Seb seb;

    @Before
    public void before() {
        seb = new Seb(true).withConfiguration(SebConfig.class).start();
    }

    @After
    public void before() {
        seb.quit();
    }
}

This starts new instance of Seb before every test and close it after test is done. new Seb(true) is for start with custom config which we provide in next step .withConfiguration(SebConfig.class). Seb handles instantiation of config class for you. Finally we have to call .start() to init configuration, listeners and wrapped driver. At this point Seb is ready to be used.

Default start - for quick start u can simply start Seb by calling new Seb() - this will use default BasicSebConfiguration class and start