Class AbstractEditorAwareWebDriverTest

java.lang.Object
com.atlassian.confluence.webdriver.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 Details

    • 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
  • Constructor Details

    • AbstractEditorAwareWebDriverTest

      public AbstractEditorAwareWebDriverTest()
  • Method Details

    • 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()