Class WebDriverExceptionAwarePageActiveCheckInterceptor

  • All Implemented Interfaces:
    org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

    @Component
    public class WebDriverExceptionAwarePageActiveCheckInterceptor
    extends java.lang.Object
    implements org.aopalliance.intercept.MethodInterceptor
    The WebDriverExceptionAwarePageActiveCheckInterceptor intercepts calls to PageActiveCheck.isPageActive(), catches NoSuchElementException and returns false. This enables the implementor of PageActiveCheck not to care about handling these Selenium specific exception.
    Since:
    3.0.0
    Author:
    Oliver Libutzki <[email protected]>
    • Constructor Detail

      • WebDriverExceptionAwarePageActiveCheckInterceptor

        public WebDriverExceptionAwarePageActiveCheckInterceptor()
    • Method Detail

      • invoke

        public java.lang.Object invoke​(org.aopalliance.intercept.MethodInvocation invocation)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface org.aopalliance.intercept.MethodInterceptor
        Throws:
        java.lang.Throwable