@Configuration
@ConditionalOnClass(value=org.openqa.selenium.phantomjs.PhantomJSDriver.class)
@ConditionalOnProperty(prefix="webdriver",
name="enabled",
havingValue="true",
matchIfMissing=false)
@EnableConfigurationProperties(value=WebDriverProperties.class)
public class WebDriverAutoConfiguration
extends Object
| 构造器和说明 |
|---|
WebDriverAutoConfiguration(WebDriverProperties properties) |
| 限定符和类型 | 方法和说明 |
|---|---|
PooledDriverFactory |
pooledDriverFactory() |
org.springframework.boot.CommandLineRunner |
preparePoolRunner(WebDriverPool pool) |
WebDriverPool |
webDriverPool() |
WebDriverTemplate |
webDriverTemplate(WebDriverPool pool) |
public WebDriverAutoConfiguration(WebDriverProperties properties)
@Bean public PooledDriverFactory pooledDriverFactory()
@Bean(destroyMethod="close") public WebDriverPool webDriverPool()
@Bean public WebDriverTemplate webDriverTemplate(WebDriverPool pool)
@Bean public org.springframework.boot.CommandLineRunner preparePoolRunner(WebDriverPool pool)
Copyright © 2017. All rights reserved.