com.atlassian.confluence.pageobjects.module.frame
Class ConfluenceFrameExecutorTemplate
java.lang.Object
com.atlassian.confluence.pageobjects.module.frame.ConfluenceFrameExecutorTemplate
- All Implemented Interfaces:
- ConfluenceFrameExecutor
- Direct Known Subclasses:
- ConfluenceFrameExecutorTemplate.Lenient, ConfluenceFrameExecutorTemplate.Strict
public abstract class ConfluenceFrameExecutorTemplate
- extends Object
- implements ConfluenceFrameExecutor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceFrameExecutorTemplate
public ConfluenceFrameExecutorTemplate()
onTinyMceIFrame
public <T> T onTinyMceIFrame(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 be executed
- Returns:
- the result of the callback
queryOnTinyMceIFrame
public <T> com.atlassian.pageobjects.elements.query.TimedQuery<T> queryOnTinyMceIFrame(Callable<T> callback)
- Description copied from interface:
ConfluenceFrameExecutor
- Allows repeated switching the driver to the TinyMCE IFrame if necessary to execute a query.
- Specified by:
queryOnTinyMceIFrame
in interface ConfluenceFrameExecutor
- Parameters:
callback
- the callback to be executed
- Returns:
- a TimedQuery to execute the callback query
queryOnIFrame
public <T> com.atlassian.pageobjects.elements.query.TimedQuery<T> queryOnIFrame(String iFrameId,
Callable<T> callback)
- Description copied from interface:
ConfluenceFrameExecutor
- Switches the driver to a named IFrame to execute a query.
- Specified by:
queryOnIFrame
in interface ConfluenceFrameExecutor
callback
- the callback to be executed
- Returns:
- a TimedQuery to execute the callback query
switchToDefaultFrame
protected void switchToDefaultFrame()
switchToFrame
protected void switchToFrame(String frameNameOrId)
handleNoSuchFrameException
protected abstract void handleNoSuchFrameException(org.openqa.selenium.NoSuchFrameException exception)
Copyright © 2003–2015 Atlassian. All rights reserved.