public class SeleniumWDialogWebElement extends SeleniumWComponentWebElement
| Modifier and Type | Field and Description |
|---|---|
static String |
CLOSE_CLASS
The CSS class for the close button.
|
static String |
CONTENT_CLASS
The CSS class of the content element.
|
static String |
DIALOG_OPEN_ATTRIBUTE
The CSS attribute indicating the dialog is open.
|
static String |
DIALOG_TAG
The tag name of the dialog element.
|
static String |
MAXIMIZE_RESTORE_CLASS
The CSS class for the maximize/restore button.
|
| Constructor and Description |
|---|
SeleniumWDialogWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
Construct a dialog for the given component.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the dialog.
|
SeleniumWComponentWebElement |
getCloseButton()
Get the close button.
|
SeleniumWComponentWebElement |
getContent()
Get the content container for the dialog.
|
static String |
getDialogCssSelector()
Get the CSS selector to select an open dialog.
|
SeleniumWComponentWebElement |
getHeading()
Get the dialog's heading element.
|
String |
getHeadingText()
Get the heading text of the dialog.
|
SeleniumWComponentWebElement |
getMaximizeRestoreButton()
Get the maximize/restore button.
|
static String |
getOpenDialogCssSelector()
Get the CSS Selector for an open dialog.
|
boolean |
isOpen()
Is this dialog open (visible)?
|
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 DIALOG_TAG
public static final String DIALOG_OPEN_ATTRIBUTE
public static final String MAXIMIZE_RESTORE_CLASS
public static final String CLOSE_CLASS
public static final String CONTENT_CLASS
public SeleniumWDialogWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
element - the dialog element.driver - the SeleniumWComponentsWebDriverpublic static String getDialogCssSelector()
public static String getOpenDialogCssSelector()
public SeleniumWComponentWebElement getMaximizeRestoreButton()
public SeleniumWComponentWebElement getCloseButton()
public void close()
public SeleniumWComponentWebElement getContent()
public String getHeadingText()
public SeleniumWComponentWebElement getHeading()
public boolean isOpen()
Copyright © 2018. All rights reserved.