- Platform: Android
- Appium version: 1.8.1
- Emulator
- Client language: Java
- macOS High Sierra 10.13.5
Whenever I trying using the SendKeys method and provide a string, it always pastes whatever I had copied last on my computer to the field before also sending the string provided. This is the code that I used that caused the issue:
AndroidDriver driver = Capabilities();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.findElementByXPath("//android.widget.TextView[@text=‘Preference’]").click();
driver.findElementByXPath("//android.widget.TextView[@text=‘3. Preference dependencies’]").click();
driver.findElementById(“android:id/checkbox”).click();
driver.findElementByXPath("(//android.widget.RelativeLayout)[2]").click();
driver.findElementByClassName(“android.widget.EditText”).sendKeys(“hello”);
driver.findElementsByClassName(“android.widget.Button”).get(1).click();