IOSElement.setValue() is not clearing the existing data from the text box instead placing the cursor in middle of the text and entering requested data.
To avoid that I tried to clear the text box using IOSElement.clear(). But this method placing the cursor in middle of the text in text box and clearing left side of the data (like backspace) only and right side data still exist.
IOSElement element = (IOSElement)driver.findElement(resolvedLocator);
element.clear();
element.setValue(text);
Below is my Environment:
Framework: XCUITest
Xcode: 8.3.3
Appium : v1.7.2-beta2
iPad iOS version: 10.3.3
io.appium.java-client api version: 5.0.4
Thanks,
Ramesh Sriram
created
Dec '17
last reply
Jan '18
- 2
replies
- 351
views
- 2
users