public class SeleniumWMessageBoxWebElement extends SeleniumWComponentWebElement
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_NAME
the className which defines a WMessages wrapper.
|
static String |
ERROR_CLASS_NAME
HTML class of errors in a WValidationErrors message box.
|
static String |
MESSAGE_CLASS_NAME
HTML class of messages in a WMessageBox.
|
static String |
TAG_NAME
The HTML element which defines the WMessageBox.
|
static String |
TYPE_ERROR_CLASS_NAME
HTML class which denotes an error box.
|
static String |
TYPE_INFO_CLASS_NAME
HTML class which denotes an information box.
|
static String |
TYPE_SUCCESS_CLASS_NAME
HTML class which denotes a success box.
|
static String |
TYPE_WARNING_CLASS_NAME
HTML class which denotes a warning box.
|
static String |
VALIDATION_ERRORS_CLASSNAME
HTML class of a WValidationErrors message box.
|
| Constructor and Description |
|---|
SeleniumWMessageBoxWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
Create a SeleniumWMessagesWebElement from a generic WebElement.
|
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
getMessage() |
org.openqa.selenium.WebElement |
getMessage(int idx)
Get a given message.
|
WMessageBox.Type |
getMessageBoxType() |
List<org.openqa.selenium.WebElement> |
getMessages() |
clear, click, clickElementNoWait, clickNoWait, findElement, findElementImmediate, findElements, findElementsImmediate, getActiveId, getAttribute, getCssValue, getDriver, getElement, getLocation, getRect, getScreenshotAs, getSize, getTagName, getText, getUserContextForSession, isDisplayed, isEnabled, isHidden, isSelected, sendKeys, sendKeys, submit, waitForPageReady, wrapElementpublic static final String TAG_NAME
public static final String CLASS_NAME
public static final String MESSAGE_CLASS_NAME
public static final String ERROR_CLASS_NAME
public static final String VALIDATION_ERRORS_CLASSNAME
public static final String TYPE_ERROR_CLASS_NAME
public static final String TYPE_WARNING_CLASS_NAME
public static final String TYPE_INFO_CLASS_NAME
public static final String TYPE_SUCCESS_CLASS_NAME
public SeleniumWMessageBoxWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
element - a generic WebElementdriver - the current WebDriver instancepublic List<org.openqa.selenium.WebElement> getMessages()
public org.openqa.selenium.WebElement getMessage(int idx)
idx - the index of the message to getpublic org.openqa.selenium.WebElement getMessage()
public WMessageBox.Type getMessageBoxType()
Copyright © 2024. All rights reserved.