Package de.bmiag.tapir.selenium.htmlunit
Class TapirHtmlUnitConfiguration
- java.lang.Object
-
- de.bmiag.tapir.selenium.htmlunit.TapirHtmlUnitConfiguration
-
@ConditionalOnProperty(name="browser", havingValue="htmlunit") @EnableConfigurationProperties(HtmlUnitProperties.class) @ComponentScan(basePackageClasses=TapirHtmlUnitConfiguration.class, nameGenerator=FqnAnnotationBeanNameGenerator.class, excludeFilters=) public class TapirHtmlUnitConfiguration extends java.lang.Object
Provides the configuration for tapir's Selenium HtmlUnit module. In this configuration class only beans are registered which are not annotated by@Component
.- Since:
- 2.0.0
- Author:
- Nils Christian Ehmke <[email protected]>
-
-
Field Summary
Fields Modifier and Type Field Description static int
AUTO_CONFIGURE_ORDER
-
Constructor Summary
Constructors Constructor Description TapirHtmlUnitConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.htmlunit.HtmlUnitDriver
htmlUnitDriver(HtmlUnitProperties htmlUnitProperties, java.util.Optional<HttpProxy> httpProxyOptional, java.lang.String browserLocale)
InputWebElementHandler
htmlUnitInputWebElementHandler()
JsExecutor
jsExecutor()
java.lang.Class<? extends org.openqa.selenium.WebElement>
webElementType()
-
-
-
Field Detail
-
AUTO_CONFIGURE_ORDER
public static final int AUTO_CONFIGURE_ORDER
- See Also:
- Constant Field Values
-
-
Method Detail
-
htmlUnitDriver
@Bean(name="internalWebDriver", destroyMethod="quit") @Scope(scopeName="thread", proxyMode=TARGET_CLASS) public org.openqa.selenium.htmlunit.HtmlUnitDriver htmlUnitDriver(HtmlUnitProperties htmlUnitProperties, java.util.Optional<HttpProxy> httpProxyOptional, @Qualifier("browserLocale") java.lang.String browserLocale)
- Parameters:
htmlUnitProperties
- htmlUnitPropertieshttpProxyOptional
- httpProxyOptionalbrowserLocale
- browserLocale- Returns:
- result
- Since:
- 2.0.0
-
jsExecutor
@Bean("tapirJsExecutor") public JsExecutor jsExecutor()
- Returns:
- result
- Since:
- 2.0.0
-
htmlUnitInputWebElementHandler
@Bean("inputWebElementHandler") @ConditionalOnClass(InputWebElementHandler.class) public InputWebElementHandler htmlUnitInputWebElementHandler()
- Returns:
- result
- Since:
- 2.0.0
-
webElementType
@Bean public java.lang.Class<? extends org.openqa.selenium.WebElement> webElementType()
- Returns:
- result
- Since:
- 2.0.0
-
-