public class WebdriverAssert extends Object
Constructor and Description |
---|
WebdriverAssert() |
Modifier and Type | Method and Description |
---|---|
static void |
assertElementNumberOfMatches(int quantity,
String selector,
com.atlassian.confluence.webdriver.pageobjects.page.content.Editor editor)
Asserts that the number of matches for a particular selector query within the editor content is consistent
with the expected quantity
|
static void |
assertElementText(String text,
String selector,
com.atlassian.confluence.webdriver.pageobjects.page.content.Editor editor)
Asserts that text in the provided selection within the editor content matches the given string.
|
static void |
assertElementTextContains(String text,
String selector,
com.atlassian.confluence.webdriver.pageobjects.page.content.Editor editor)
Asserts that text in the provided selection within the editor content contains the given string.
|
static void |
insertAndWaitForFixture(String fixture,
com.atlassian.confluence.webdriver.pageobjects.page.content.Editor editor) |
static void |
insertAndWaitForFixture(String fixture,
String htmlToWaitFor,
com.atlassian.confluence.webdriver.pageobjects.page.content.Editor editor)
Sets the content of the editor using the TinyMCE API and waits for the specified content to be present.
|
public static void assertElementText(String text, String selector, com.atlassian.confluence.webdriver.pageobjects.page.content.Editor editor)
text
- Text we expect to matchselector
- CSS selector for locating element in the editor contenteditor
- The bound Editor pagepublic static void assertElementTextContains(String text, String selector, com.atlassian.confluence.webdriver.pageobjects.page.content.Editor editor)
text
- Text we expect the element to containselector
- CSS selector for locating element in the editor contenteditor
- The bound Editor pagepublic static void assertElementNumberOfMatches(int quantity, String selector, com.atlassian.confluence.webdriver.pageobjects.page.content.Editor editor)
quantity
- The number of expected matchesselector
- CSS selector to be used for matching elements in the editor contenteditor
- The bound Editor pagepublic static void insertAndWaitForFixture(String fixture, com.atlassian.confluence.webdriver.pageobjects.page.content.Editor editor)
public static void insertAndWaitForFixture(String fixture, String htmlToWaitFor, com.atlassian.confluence.webdriver.pageobjects.page.content.Editor editor)
fixture
- HTML content to be set in the editorhtmlToWaitFor
- Content to be used for checking that the editor has been updatedCopyright © 2003–2019 Atlassian. All rights reserved.