Class AbstractEditorAwareWebDriverTest
- java.lang.Object
-
- com.atlassian.confluence.webdriver.selenium3.AbstractEditorAwareWebDriverTest
-
- Direct Known Subclasses:
AbstractEditorWebDriverTest
public abstract class AbstractEditorAwareWebDriverTest extends Object
The base-base class for Confluence Editor WebDriver tests.Makes it easier to run all the tests in the same Confluence editor page sequentially, and unlike the
AbstractEditorWebDriverTest
it provides the option for subclasses to modify server state before going to the editor; by not having a @BeforeClass-annotated method.
-
-
Field Summary
Fields Modifier and Type Field Description CancelAnyAlert
cancelAnyAlert
static CancelAnyAlert
cancelAnyAlertClassRule
protected static EditorContent
editorContent
protected static EditorPage
editorPage
com.atlassian.webdriver.testing.rule.IgnoreBrowserRule
ignoreRule
com.atlassian.webdriver.testing.rule.LogPageSourceRule
logPageSourceRule
LogTimeRule
logTimeRule
protected static ConfluenceTestedProduct
product
protected static ConfluenceRpc
rpc
com.atlassian.webdriver.testing.rule.WebDriverScreenshotRule
webDriverScreenshotRule
-
Constructor Summary
Constructors Constructor Description AbstractEditorAwareWebDriverTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearContent()
static void
clearSession()
static void
setupEditor()
Logs the browser in to the instance and loads a new editor page.static void
setupServer()
Creates the common ConfluenceRpc instance and resets server state with common test plugins.
-
-
-
Field Detail
-
product
protected static ConfluenceTestedProduct product
-
rpc
protected static ConfluenceRpc rpc
-
editorPage
protected static EditorPage editorPage
-
editorContent
protected static EditorContent editorContent
-
ignoreRule
public com.atlassian.webdriver.testing.rule.IgnoreBrowserRule ignoreRule
-
webDriverScreenshotRule
public com.atlassian.webdriver.testing.rule.WebDriverScreenshotRule webDriverScreenshotRule
-
logPageSourceRule
public com.atlassian.webdriver.testing.rule.LogPageSourceRule logPageSourceRule
-
logTimeRule
public LogTimeRule logTimeRule
-
cancelAnyAlertClassRule
public static CancelAnyAlert cancelAnyAlertClassRule
-
cancelAnyAlert
public CancelAnyAlert cancelAnyAlert
-
-
Method Detail
-
setupServer
public static void setupServer() throws IOException
Creates the common ConfluenceRpc instance and resets server state with common test plugins.Intended for use in a subclass's BeforeClass-annotated method.
- Throws:
IOException
-
setupEditor
public static void setupEditor() throws InterruptedException, IOException
Logs the browser in to the instance and loads a new editor page.Intended for use in a subclass's BeforeClass-annotated method.
- Throws:
InterruptedException
IOException
-
clearContent
public void clearContent()
-
clearSession
public static void clearSession()
-
-