public class BaseElement extends Object
Constructor and Description |
---|
BaseElement() |
Modifier and Type | Method and 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 |
waitUntilPageJSIsLoaded()
Waits for the javascript libraries and their plugins that need to load before the UI's elements can be used
safely.
|
public static void setContext(PersistentTestContext context)
protected XWikiWebDriver getDriver()
protected static TestUtils getUtil()
public void waitForNotificationErrorMessage(String message)
public void waitForNotificationWarningMessage(String message)
public void waitForNotificationSuccessMessage(String message)
public void waitForNotificationInProgressMessage(String message)
protected boolean isElementVisible(org.openqa.selenium.By by)
public void waitUntilPageJSIsLoaded()
Subclassed should override this method and add additional checks needed by their logic.
Copyright © 2004–2021 XWiki. All rights reserved.