public class SeleniumWTextFieldWebElement extends SeleniumWComponentWebElement
| Modifier and Type | Field and Description |
|---|---|
static String |
CHILD_ELEMENT_TAG
The tag name for the actual element when editable.
|
static String |
TOP_LEVEL_TAG
The tag name of the wrapping element for WTextField.
|
| Constructor and Description |
|---|
SeleniumWTextFieldWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
Construct a SeleniumWTextFieldWebElement for the given WebElement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
String |
getAttribute(String name)
Some attributes are applied to the wrapper, some to the input.
|
SeleniumWComponentWebElement |
getInputField() |
String |
getValue() |
boolean |
isEnabled() |
boolean |
isReadOnly() |
void |
sendKeys(CharSequence... keys) |
click, clickNoWait, findElement, findElements, findSeleniumWSelectWebElement, getCssValue, getDriver, getLocation, getRect, getScreenshotAs, getSize, getTagName, getText, isDisplayed, isSelected, submitpublic static final String TOP_LEVEL_TAG
public static final String CHILD_ELEMENT_TAG
public SeleniumWTextFieldWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
element - the dialog element.driver - the SeleniumWComponentsWebDriverpublic SeleniumWComponentWebElement getInputField()
public String getValue()
public String getAttribute(String name)
getAttribute in interface org.openqa.selenium.WebElementgetAttribute in class SeleniumWComponentWebElementname - the name of the attribute to findpublic boolean isEnabled()
isEnabled in interface org.openqa.selenium.WebElementisEnabled in class SeleniumWComponentWebElementpublic boolean isReadOnly()
public void sendKeys(CharSequence... keys)
sendKeys in interface org.openqa.selenium.WebElementsendKeys in class SeleniumWComponentWebElementpublic void clear()
clear in interface org.openqa.selenium.WebElementclear in class SeleniumWComponentWebElementCopyright © 2016. All rights reserved.