public class SeleniumWComponentInputWebElement extends SeleniumWComponentWebElement
| Modifier and Type | Field and Description |
|---|---|
static String |
EDITABLE_TAG
The tag name of the editable CheckBox element.
|
static String |
TOP_LEVEL_TAG
The tag name of the wrapping element for text-like inputs WTextField, WEmailField, WPhoneNumberField,
WPasswordField.
|
| Constructor and Description |
|---|
SeleniumWComponentInputWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
Construct an input element.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
click() |
void |
clickNoWait()
Perform a click action without waiting for the WComponent ready status
Used when the click will result in a non-WComponents page.
|
String |
getActiveId()
Get the id of the default "active" part of the component.
|
String |
getAttribute(String name)
Retrieve the given attribute for the element, but if the attribute requested is the value instead return the
result of getValue().
|
SeleniumWComponentWebElement |
getInputField() |
org.openqa.selenium.WebElement |
getSuggestionList() |
String |
getValue() |
boolean |
isCombo() |
boolean |
isEnabled() |
boolean |
isMandatory() |
boolean |
isReadOnly() |
void |
sendKeys(boolean wait,
CharSequence... keys)
Send a key sequence and optionally wait for page ready afterwards.
|
void |
sendKeys(CharSequence... keys) |
clickElementNoWait, findElement, findElementImmediate, findElements, findElementsImmediate, getCssValue, getDriver, getElement, getLocation, getRect, getScreenshotAs, getSize, getTagName, getText, getUserContextForSession, isDisplayed, isHidden, isSelected, submit, waitForPageReady, wrapElementpublic static final String TOP_LEVEL_TAG
public static final String EDITABLE_TAG
public SeleniumWComponentInputWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
element - the web element.driver - the driver.public SeleniumWComponentWebElement getInputField()
public String getValue()
public String getAttribute(String name)
getAttribute in interface org.openqa.selenium.WebElementgetAttribute in class SeleniumWComponentWebElementname - the attribute to findpublic boolean isReadOnly()
public boolean isEnabled()
isEnabled in interface org.openqa.selenium.WebElementisEnabled in class SeleniumWComponentWebElementpublic void sendKeys(CharSequence... keys)
sendKeys in interface org.openqa.selenium.WebElementsendKeys in class SeleniumWComponentWebElementpublic void sendKeys(boolean wait,
CharSequence... keys)
sendKeys in class SeleniumWComponentWebElementwait - if true then wait for page ready after sending the keyskeys - The keys to sendpublic void clear()
clear in interface org.openqa.selenium.WebElementclear in class SeleniumWComponentWebElementpublic String getActiveId()
SeleniumWComponentWebElementgetActiveId in class SeleniumWComponentWebElementpublic void click()
SeleniumWComponentWebElementclick in interface org.openqa.selenium.WebElementclick in class SeleniumWComponentWebElementpublic void clickNoWait()
SeleniumWComponentWebElementPerform a click action without waiting for the WComponent ready status
Used when the click will result in a non-WComponents page.
clickNoWait in class SeleniumWComponentWebElementpublic boolean isCombo()
true if the input is a combo boxpublic boolean isMandatory()
true if the input is mandatorypublic org.openqa.selenium.WebElement getSuggestionList()
nullCopyright © 2018. All rights reserved.