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

cn.patterncat.webdriver.component.WebDriverPool Maven / Gradle / Ivy

There is a newer version: 0.0.7
Show newest version
package cn.patterncat.webdriver.component;

import lombok.experimental.Delegate;
import org.apache.commons.pool2.PooledObjectFactory;
import org.apache.commons.pool2.impl.GenericObjectPool;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.openqa.selenium.phantomjs.PhantomJSDriver;

/**
 * Created by patterncat on 2017-10-18.
 */
public class WebDriverPool {

    @Delegate
    GenericObjectPool innerPool;

    public WebDriverPool(PooledObjectFactory factory, GenericObjectPoolConfig config) {
        this.innerPool = new GenericObjectPool(factory, config);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy