org.jboss.arquillian.ajocado.ajaxaware
Class AjaxAwareInterceptor
java.lang.Object
org.jboss.arquillian.ajocado.ajaxaware.AjaxAwareInterceptor
- All Implemented Interfaces:
- CommandInterceptor
public class AjaxAwareInterceptor
- extends Object
- implements CommandInterceptor
Class to use to extend functionality of command processors to catch Selenium exceptions and repeat the command for
specific issue types (like Permission denied in Internet Explorer).
- Version:
- $Revision$
- Author:
- Lukas Fryc
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AjaxAwareInterceptor
public AjaxAwareInterceptor()
intercept
public void intercept(CommandContext ctx)
throws CommandInterceptorException
Executes the command wrapped in exception handler.
Reacts to exceptions with 'Permission denied' type and try to reexecute the command in this situation.
Prints the exception stack trace to help identify the problematic commands.
- Specified by:
intercept
in interface CommandInterceptor
- Throws:
CommandInterceptorException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.