com.atlassian.confluence.pageobjects.module.frame
Interface ConfluenceFrameExecutor

All Known Implementing Classes:
ConfluenceFrameExecutorTemplate, ConfluenceFrameExecutorTemplate.Lenient, ConfluenceFrameExecutorTemplate.Strict

public interface ConfluenceFrameExecutor

Encapsulates the knowledge about frames in the Confluence webapp.


Method Summary
<T> T
onTinyMceIFrame(Callable<T> callback)
          Switches the driver to the TinyMCE IFrame if necessary and executes the given callback.
<T> com.atlassian.pageobjects.elements.query.TimedQuery<T>
queryOnIFrame(String iFrameId, Callable<T> callback)
          Switches the driver to a named IFrame to execute a query.
<T> com.atlassian.pageobjects.elements.query.TimedQuery<T>
queryOnTinyMceIFrame(Callable<T> callback)
          Allows repeated switching the driver to the TinyMCE IFrame if necessary to execute a query.
 

Method Detail

onTinyMceIFrame

<T> T onTinyMceIFrame(Callable<T> callback)
Switches the driver to the TinyMCE IFrame if necessary and executes the given callback.

Parameters:
callback - the callback to be executed
Returns:
the result of the callback

queryOnTinyMceIFrame

<T> com.atlassian.pageobjects.elements.query.TimedQuery<T> queryOnTinyMceIFrame(Callable<T> callback)
Allows repeated switching the driver to the TinyMCE IFrame if necessary to execute a query.

Parameters:
callback - the callback to be executed
Returns:
a TimedQuery to execute the callback query

queryOnIFrame

<T> com.atlassian.pageobjects.elements.query.TimedQuery<T> queryOnIFrame(String iFrameId,
                                                                         Callable<T> callback)
Switches the driver to a named IFrame to execute a query.

Parameters:
callback - the callback to be executed
Returns:
a TimedQuery to execute the callback query


Copyright © 2003–2015 Atlassian. All rights reserved.