Package org.xwiki.test.ui.po
Class BaseElement
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- Direct Known Subclasses:
BaseModal
,BasePage
,BootstrapDateTimePicker
,BreadcrumbElement
,ChangesPane
,ClassPropertyEditPane
,CommentForm
,CommentsTab
,ConfirmationBox
,Conflict
,DeletedPageEntry
,DocumentDiffSummary
,DocumentPicker
,DocumentSyntaxPicker
,EditablePropertyPane
,EditRightsPane
,EntityDiff
,EntityTreeElement
,FormContainerElement
,FormContainerElement.SelectElement
,HistoryPane
,InformationPane
,LiveTableElement
,SuggestInputElement
,SuggestInputElement.SuggestionElement
,TableElement
,XWikiSelectWidget
public class BaseElement extends Object
Represents all elements which include web pages as well as parts of web pages.- Since:
- 3.2M3
- Version:
- $Id: 4f836efaaf9dd97fd5979f32788c32a1a627b714 $
-
-
Constructor Summary
Constructors Constructor Description BaseElement()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XWikiWebDriver
getDriver()
protected static TestUtils
getUtil()
protected boolean
isElementVisible(org.openqa.selenium.By by)
static void
setContext(PersistentTestContext context)
Used so that AllTests can set the persistent test context.void
waitForNotificationErrorMessage(String message)
void
waitForNotificationInProgressMessage(String message)
void
waitForNotificationSuccessMessage(String message)
void
waitForNotificationWarningMessage(String message)
void
waitUntilPageIsReady()
Wait until the page is ready for user interaction.
-
-
-
Method Detail
-
setContext
public static void setContext(PersistentTestContext context)
Used so that AllTests can set the persistent test context.
-
getDriver
protected XWikiWebDriver getDriver()
-
getUtil
protected static TestUtils getUtil()
- Returns:
- Utility class with functions not specific to any test or element.
-
waitForNotificationErrorMessage
public void waitForNotificationErrorMessage(String message)
- Since:
- 3.2M3
-
waitForNotificationWarningMessage
public void waitForNotificationWarningMessage(String message)
- Since:
- 3.2M3
-
waitForNotificationSuccessMessage
public void waitForNotificationSuccessMessage(String message)
- Since:
- 3.2M3
-
waitForNotificationInProgressMessage
public void waitForNotificationInProgressMessage(String message)
- Since:
- 11.3RC1
-
isElementVisible
protected boolean isElementVisible(org.openqa.selenium.By by)
- Since:
- 8.4.5, 9.0RC1
-
waitUntilPageIsReady
public void waitUntilPageIsReady()
Wait until the page is ready for user interaction. The page is ready when there are no pending HTTP requests (e.g. to load resources or data) and no pending promises (e.g. no asynchronous code that waits to be executed).- Since:
- 14.2RC1
-
-