All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jspringbot.keyword.selenium.WebDriverInitializerBean Maven / Gradle / Ivy

There is a newer version: 1.9
Show newest version
package org.jspringbot.keyword.selenium;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Required;

public class WebDriverInitializerBean implements InitializingBean {

    private boolean maximize = false;

    protected SeleniumHelper helper;

    public WebDriverInitializerBean(SeleniumHelper helper) {
        this.helper = helper;
    }

    @Required
    public void setMaximize(boolean maximize) {
        this.maximize = maximize;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        if(maximize) {
            helper.windowMaximize();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy