kgress / scaffold

A Java based Selenium WebDriver abstraction
MIT License
4 stars 7 forks source link

QOL code improvements #35

Closed kgress closed 4 years ago

kgress commented 4 years ago

Summary

General updates to the framework for improving QOL. For example, creating another constructor for AbstractWebElement

    public AbstractWebElement(String cssSelector) {
        this.setBy(By.cssSelector(cssSelector));
        initWait();
    }

This cleans up the code a little bit when instantiating new strongly types elements, a la:

@Getter private ImageWebElement siteLogo = new ImageWebElement(".siteLogo");

We should also sneak in some features while we're at it that are nice QOL upgrades. Let's do this one wild west ya'll!

A/C

kgress commented 4 years ago

PR submitted on https://github.com/kgress/scaffold/pull/38