public class UIATextField extends UIAElement implements UIAutomationTextField, MobileTextField
UIATextField
class allows access to, and control of, text field elements in your app.Constructor and Description |
---|
UIATextField(String locator) |
Modifier and Type | Method and Description |
---|---|
void |
clearText()
clear the current text inside the element
|
void |
sendKeys(String keys)
send keys to element without cleaning its values
|
void |
setText(String text)
clear the existing text in text field and sets the text in the text field.
|
void |
setValue(CharSequence... keysToSend)
Sets the corresponding character sequence in the text field.
|
doubleTap, findElement, getBridgeDriver, getLabel, getLocator, getName, getValue, scrollToVisible, setBridgeDriver, setLocator, tap, tapWithOptions, twoFingerTap, waitFor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doubleTap, findElement, getLabel, getLocator, getName, getValue, scrollToVisible, tap, tapWithOptions, twoFingerTap
findElement, getLocator, getValue, tap
public UIATextField(String locator)
public void clearText()
MobileTextField
clearText
in interface MobileTextField
public void sendKeys(String keys)
MobileTextField
sendKeys
in interface MobileTextField
keys
- keys to send to elementpublic void setText(String text)
MobileTextField
setText
in interface MobileTextField
text
- text to set in the text field.public void setValue(CharSequence... keysToSend)
UIAutomationTextField
setValue
in interface MobileTextField
setValue
in interface UIAutomationTextField
keysToSend
- CharSequence
to set in the text field.Copyright © 2016 PayPal Open Source. All rights reserved.