Package io.appium.java_client.android
Interface CanReplaceElementValue
- All Superinterfaces:
CanRememberExtensionPresence,ExecutesMethod
- All Known Implementing Classes:
AndroidDriver,FlutterAndroidDriver
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidreplaceElementValue(org.openqa.selenium.remote.RemoteWebElement element, String value) Sends a text to the given element by replacing its previous content.Methods inherited from interface io.appium.java_client.CanRememberExtensionPresence
assertExtensionExists, markExtensionAbsenceMethods inherited from interface io.appium.java_client.ExecutesMethod
execute, execute
-
Method Details
-
replaceElementValue
Sends a text to the given element by replacing its previous content.- Parameters:
element- The destination element.value- The text to enter. It could also contain Unicode characters. If the text ends with `\\n` (the backslash must be escaped, so the char is NOT translated into `0x0A`) then the Enter key press is going to be emulated after it is entered (the `\\n` substring itself will be cut off from the typed text).
-