com.atlassian.confluence.pageobjects.module.frame
Class ConfluenceFrameExecutorTemplate

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.module.frame.ConfluenceFrameExecutorTemplate
All Implemented Interfaces:
ConfluenceFrameExecutor
Direct Known Subclasses:
ConfluenceFrameExecutorTemplate.Lenient, ConfluenceFrameExecutorTemplate.Strict

public abstract class ConfluenceFrameExecutorTemplate
extends java.lang.Object
implements ConfluenceFrameExecutor


Nested Class Summary
static class ConfluenceFrameExecutorTemplate.Lenient
          Tries to switch to the given frame before running the closure but does not escape if not possible.
static class ConfluenceFrameExecutorTemplate.Strict
          Switches to the given frame before running the closure and escapes if not possible.
 
Constructor Summary
ConfluenceFrameExecutorTemplate()
           
 
Method Summary
protected abstract  void handleNoSuchFrameException(org.openqa.selenium.NoSuchFrameException exception)
           
<T> T
onTinyMceIFrame(java.util.concurrent.Callable<T> callback)
          Switches the driver to the TinyMCE IFrame if necessary and executes the given callback.
protected  void switchToDefaultFrame()
           
protected  void switchToFrame(java.lang.String frameNameOrId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceFrameExecutorTemplate

public ConfluenceFrameExecutorTemplate()
Method Detail

onTinyMceIFrame

public <T> T onTinyMceIFrame(java.util.concurrent.Callable<T> callback)
Description copied from interface: ConfluenceFrameExecutor
Switches the driver to the TinyMCE IFrame if necessary and executes the given callback.

Specified by:
onTinyMceIFrame in interface ConfluenceFrameExecutor
Parameters:
callback - the callback to bse executed
Returns:
the result of the callback

switchToDefaultFrame

protected void switchToDefaultFrame()

switchToFrame

protected void switchToFrame(java.lang.String frameNameOrId)

handleNoSuchFrameException

protected abstract void handleNoSuchFrameException(org.openqa.selenium.NoSuchFrameException exception)


Copyright © 2003-2013 Atlassian. All Rights Reserved.