Package de.bmiag.tapir.selenium
Class SeleniumConfiguration
- java.lang.Object
-
- de.bmiag.tapir.selenium.SeleniumConfiguration
-
@ComponentScan(basePackageClasses=SeleniumConfiguration.class, nameGenerator=FqnAnnotationBeanNameGenerator.class, excludeFilters=) public class SeleniumConfiguration extends java.lang.Object
Provides the configuration for tapir's Selenium module. In this configuration class only beans are registered which are not annotated by@Component
.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Field Summary
Fields Modifier and Type Field Description static int
AUTO_CONFIGURE_ORDER
-
Constructor Summary
Constructors Constructor Description SeleniumConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
browserLocale(java.util.Locale locale)
org.openqa.selenium.support.pagefactory.DefaultElementLocatorFactory
defaultElementLocatorFactory(org.openqa.selenium.WebDriver driver)
org.springframework.aop.Advisor
pageActiveCheckAdvisor(WebDriverExceptionAwarePageActiveCheckInterceptor webDriverExceptionAwarePageActiveCheckInterceptor)
org.openqa.selenium.WebDriver
webDriver(org.openqa.selenium.WebDriver webDriver, WebElementProxyFactory webElementMethodInterceptorFactory)
WebDriverExceptionOccurrenceBehaviour
webDriverExceptionOccurrenceBehaviour(java.lang.String browser)
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
-
defaultElementLocatorFactory
@Bean public org.openqa.selenium.support.pagefactory.DefaultElementLocatorFactory defaultElementLocatorFactory(org.openqa.selenium.WebDriver driver)
- Parameters:
driver
- driver- Returns:
- result
- Since:
- 2.0.0
-
webDriverExceptionOccurrenceBehaviour
@Bean public WebDriverExceptionOccurrenceBehaviour webDriverExceptionOccurrenceBehaviour(@Value("${browser}") java.lang.String browser)
- Parameters:
browser
- browser- Returns:
- result
- Since:
- 2.0.0
-
webDriver
@Bean(destroyMethod="") @Scope("singleton") @Primary public org.openqa.selenium.WebDriver webDriver(@Qualifier("internalWebDriver") org.openqa.selenium.WebDriver webDriver, WebElementProxyFactory webElementMethodInterceptorFactory)
- Parameters:
webDriver
- webDriverwebElementMethodInterceptorFactory
- webElementMethodInterceptorFactory- Returns:
- result
- Since:
- 2.0.0
-
webElementType
@Bean @ConditionalOnExpression("#{getObject(\'internalWebDriver\') instanceof T(org.openqa.selenium.remote.RemoteWebDriver)}") public java.lang.Class<? extends org.openqa.selenium.WebElement> webElementType()
- Returns:
- result
- Since:
- 2.0.0
-
browserLocale
@Bean public java.lang.String browserLocale(java.util.Locale locale)
- Parameters:
locale
- locale- Returns:
- result
- Since:
- 2.0.0
-
pageActiveCheckAdvisor
@Bean public org.springframework.aop.Advisor pageActiveCheckAdvisor(WebDriverExceptionAwarePageActiveCheckInterceptor webDriverExceptionAwarePageActiveCheckInterceptor)
- Parameters:
webDriverExceptionAwarePageActiveCheckInterceptor
- webDriverExceptionAwarePageActiveCheckInterceptor- Returns:
- result
- Since:
- 3.0.0
-
-