Graphene Implementation 1.0.0.CR3

org.jboss.arquillian.ajocado.ajaxaware
Class AjaxAwareInterceptor

java.lang.Object
  extended by 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

Nested Class Summary
static class AjaxAwareInterceptor.PermissionDeniedException
          Thrown when the Selenium wasn't able in given interval to call the given command with no SeleniumException with type of Permission Denied catched.
 
Constructor Summary
AjaxAwareInterceptor()
           
 
Method Summary
 void intercept(CommandContext ctx)
           Executes the command wrapped in exception handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxAwareInterceptor

public AjaxAwareInterceptor()
Method Detail

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

Graphene Implementation 1.0.0.CR3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.