Package FlaNium.WinAPI.elements
Class TextBox
- java.lang.Object
-
- org.openqa.selenium.remote.RemoteWebElement
-
- FlaNium.WinAPI.DesktopElement
-
- FlaNium.WinAPI.elements.TextBox
-
- All Implemented Interfaces:
org.openqa.selenium.interactions.Locatable,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsDriver
public class TextBox extends DesktopElement
-
-
Constructor Summary
Constructors Constructor Description TextBox(org.openqa.selenium.WebElement element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenter(String text)Simulate typing in text.StringgetText()Gets the text of the element.booleanisReadOnly()Gets if the element is read only or not.voidsetText(String text)Sets the text of the element.-
Methods inherited from class FlaNium.WinAPI.DesktopElement
callValueCommand, callValueCommand, callValueCommand, callValueCommand, callValueCommand, callValueCommand, callVoidCommand, castTo, createLocalDateTimeFromResponse, createRemoteWebElementFromResponse, createRemoteWebElementsFromResponse, exe, execute, getActiveWindow, getAttribute, getElementRect, getName, mouseActions, parseDateTime, parseDouble, screenshotActions, setAsRootElement, toCoordinateElement, touchActions
-
Methods inherited from class org.openqa.selenium.remote.RemoteWebElement
clear, click, equals, execute, findElement, findElement, findElements, findElements, getAccessibleName, getAriaRole, getCoordinates, getCssValue, getDomAttribute, getDomProperty, getId, getLocation, getRect, getScreenshotAs, getShadowRoot, getSize, getTagName, getWrappedDriver, hashCode, isDisplayed, isEnabled, isSelected, sendKeys, setFileDetector, setFoundBy, setId, setParent, submit, toJson, toString
-
-
-
-
Method Detail
-
getText
public String getText()
Gets the text of the element.- Specified by:
getTextin interfaceorg.openqa.selenium.WebElement- Overrides:
getTextin classorg.openqa.selenium.remote.RemoteWebElement- Returns:
-
setText
public void setText(String text)
Sets the text of the element.- Parameters:
text-
-
isReadOnly
public boolean isReadOnly()
Gets if the element is read only or not.- Returns:
-
enter
public void enter(String text)
Simulate typing in text. This is slower than setting Text but raises more events.- Parameters:
text-
-
-