Clear() method is not working for me.I am using Appium Server: 1.5.0, Selenium java -3.5.3, and java-client -5.0.4

Clear() method is not working for me.I am using Appium Server: 1.5.0, Selenium java -3.5.3, and java-client -5.0.4

Method which i am using in java is:

public void clearTextBox(String text) throws InterruptedException{

	 driver.findElement(By.id("com.android.phone:id/number_field")).click();
	 Thread.sleep(3000);
	 WebElement element= driver.findElement(By.id("com.android.phone:id/voicemail_dialog"));		
	 element.clear();
	 Thread.sleep(3000);		
	 MobileElement element1 = (MobileElement) element;
	 String elText = element1.getText();		 
	 System.out.println("Value after Delete-->"elText);
	 
	 
	 WebElement element3= driver.findElement(By.id("com.android.phone:id/voicemail_dialog"));
	 element3.sendKeys(text);		
	 MobileElement element2 = (MobileElement) element;
	 String elText2 = element2.getText();
	 
	 System.out.println("Value after Sendkeys-->" +elText2);		
		 }

Output of the Method:
0 [main] INFO Step_Defination.Appium_Mobile_Step - Open the Console on the Mobile Application
Value after Delete–>9560038686
Value after Sendkeys–>95600386867827415733

I think this issue has been around for a while. See here for workarounds:

@wreed It did not work out for me.Below are the Server side logs:

[info] [HTTP] --> POST /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2/element/5ab45505-b19b-41f0-ac94-e461da7d9bc5/clear {“id”:“5ab45505-b19b-41f0-ac94-e461da7d9bc5”}
[debug] [MJSONWP] Calling AppiumDriver.clear() with args: [“5ab45505-b19b-41f0-ac94-e461da7d9bc5”,“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [JSONWP Proxy] Proxying [GET /element/5ab45505-b19b-41f0-ac94-e461da7d9bc5/text] to [GET http://localhost:8202/wd/hub/session/cd700542-09d2-453b-8eeb-41a678200150/element/5ab45505-b19b-41f0-ac94-e461da7d9bc5/text] with body: {}[debug] [JSONWP Proxy] Got response with status 200: “{“sessionId”:“cd700542-09d2-453b-8eeb-41a678200150”,“status”:0,“value”:“9560038686”}”
[debug] [JSONWP Proxy] Proxying [POST /element/5ab45505-b19b-41f0-ac94-e461da7d9bc5/click] to [POST http://localhost:8202/wd/hub/session/cd700542-09d2-453b-8eeb-41a678200150/element/5ab45505-b19b-41f0-ac94-e461da7d9bc5/click] with body: {“element”:“5ab45505-b19b-41f0-ac94-e461da7d9bc5”}
[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:“cd700542-09d2-453b-8eeb-41a678200150”,“status”:0,“value”:true}
[debug] [AndroidDriver] Sending up to 10 clear characters to device
[debug] [AndroidDriver] Sending 10 clear characters to device
[debug] [ADB] Clearing up to 10 characters
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘C:\Appium\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“4200a6e5de69740d”,“shell”,“input”,“keyevent”,“67”,“112”,“67”,“112”,“67”,“112”,“67”,“112”,“67”,“112”,“67”,“112”,“67”,“112”,“67”,“112”,“67”,“112”,“67”,“112”][debug] [MJSONWP] Responding to client with driver.clear() result: null
[info] [HTTP] <-- POST /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2/element/5ab45505-b19b-41f0-ac94-e461da7d9bc5/clear 200 1911 ms - 76 [info] [HTTP] --> POST /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2/element {“using”:“class name”,“value”:“android.widget.EditText”}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: [“class name”,“android.widget.EditText”,“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 15000 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/cd700542-09d2-453b-8eeb-41a678200150/element] with body: {“strategy”:“class name”,“selector”:“android.widget.EditText”,“context”:"",“multiple”:false}
[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:“cd700542-09d2-453b-8eeb-41a678200150”,“status”:0,“value”:{“ELEMENT”:“d0f8f00a-8b6f-4e53-b4dd-2b784817fbdc”}}
[debug] [MJSONWP] Responding to client with driver.findElement() result: {“ELEMENT”:“d0f8f00a-8b6f-4e53-b4dd-2b784817fbdc”}
[info] [HTTP] <-- POST /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2/element 200 73 ms - 122
[info] [HTTP] --> GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [MJSONWP] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“appPackage”:“com.samsung.android.contacts”,“appActivity”:“com.android.dialer.DialtactsActivity”,“no-reset”:“true”,“platformVersion”:“7.0”,“automationName”:“UiAutomator2”,“full-reset”:“false”,“skipUnlock”:false,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“4200a6e5de69740d”},“appPackage”:“com.samsung.android.contacts”,“appActivity”:“com.android.dialer.DialtactsActivity”,“no-reset”:“true”,“platformVersion”:“7.0”,“automationName”:“UiAutomator2”,“full-reset”:“false”,“skipUnlock”:false,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“4200a6e5de69740d”,“deviceUDID”:“4200a6e5de69740d”,“deviceScreenSize”:“1080x1920”,“deviceScreenDensity”:420,“deviceModel”:“SM-G615F”,“deviceManufacturer”:“samsung”}
[info] [HTTP] <-- GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 200 5 ms - 1016 [info] [HTTP] --> GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [MJSONWP] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“appPackage”:“com.samsung.android.contacts”,“appActivity”:“com.android.dialer.DialtactsActivity”,“no-reset”:“true”,“platformVersion”:“7.0”,“automationName”:“UiAutomator2”,“full-reset”:“false”,“skipUnlock”:false,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“4200a6e5de69740d”},“appPackage”:“com.samsung.android.contacts”,“appActivity”:“com.android.dialer.DialtactsActivity”,“no-reset”:“true”,“platformVersion”:“7.0”,“automationName”:“UiAutomator2”,“full-reset”:“false”,“skipUnlock”:false,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“4200a6e5de69740d”,“deviceUDID”:“4200a6e5de69740d”,“deviceScreenSize”:“1080x1920”,“deviceScreenDensity”:420,“deviceModel”:“SM-G615F”,“deviceManufacturer”:“samsung”}
[info] [HTTP] <-- GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 200 2 ms - 1016
[info] [HTTP] --> POST /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2/element/d0f8f00a-8b6f-4e53-b4dd-2b784817fbdc/click {“id”:“d0f8f00a-8b6f-4e53-b4dd-2b784817fbdc”}
[debug] [MJSONWP] Calling AppiumDriver.click() with args: [“d0f8f00a-8b6f-4e53-b4dd-2b784817fbdc”,“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [JSONWP Proxy] Proxying [POST /element/d0f8f00a-8b6f-4e53-b4dd-2b784817fbdc/click] to [POST http://localhost:8202/wd/hub/session/cd700542-09d2-453b-8eeb-41a678200150/element/d0f8f00a-8b6f-4e53-b4dd-2b784817fbdc/click] with body: {“element”:“d0f8f00a-8b6f-4e53-b4dd-2b784817fbdc”}
[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:“cd700542-09d2-453b-8eeb-41a678200150”,“status”:0,“value”:true}
[debug] [MJSONWP] Responding to client with driver.click() result: true
[info] [HTTP] <-- POST /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2/element/d0f8f00a-8b6f-4e53-b4dd-2b784817fbdc/click 200 30 ms - 76
[info] [HTTP] --> POST /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2/element {“using”:“class name”,“value”:“android.widget.EditText”}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: [“class name”,“android.widget.EditText”,“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 15000 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/cd700542-09d2-453b-8eeb-41a678200150/element] with body: {“strategy”:“class name”,“selector”:“android.widget.EditText”,“context”:"",“multiple”:false}
[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:“cd700542-09d2-453b-8eeb-41a678200150”,“status”:0,“value”:{“ELEMENT”:“3ec49ea0-794b-4b3f-aefd-962593ea33a9”}}
[debug] [MJSONWP] Responding to client with driver.findElement() result: {“ELEMENT”:“3ec49ea0-794b-4b3f-aefd-962593ea33a9”}
[info] [HTTP] <-- POST /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2/element 200 158 ms - 122
[info] [HTTP] --> GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [MJSONWP] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“appPackage”:“com.samsung.android.contacts”,“appActivity”:“com.android.dialer.DialtactsActivity”,“no-reset”:“true”,“platformVersion”:“7.0”,“automationName”:“UiAutomator2”,“full-reset”:“false”,“skipUnlock”:false,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“4200a6e5de69740d”},“appPackage”:“com.samsung.android.contacts”,“appActivity”:“com.android.dialer.DialtactsActivity”,“no-reset”:“true”,“platformVersion”:“7.0”,“automationName”:“UiAutomator2”,“full-reset”:“false”,“skipUnlock”:false,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“4200a6e5de69740d”,“deviceUDID”:“4200a6e5de69740d”,“deviceScreenSize”:“1080x1920”,“deviceScreenDensity”:420,“deviceModel”:“SM-G615F”,“deviceManufacturer”:“samsung”}
[info] [HTTP] <-- GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 200 4 ms - 1016 [info] [HTTP] --> GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [MJSONWP] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“appPackage”:“com.samsung.android.contacts”,“appActivity”:“com.android.dialer.DialtactsActivity”,“no-reset”:“true”,“platformVersion”:“7.0”,“automationName”:“UiAutomator2”,“full-reset”:“false”,“skipUnlock”:false,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“4200a6e5de69740d”},“appPackage”:“com.samsung.android.contacts”,“appActivity”:“com.android.dialer.DialtactsActivity”,“no-reset”:“true”,“platformVersion”:“7.0”,“automationName”:“UiAutomator2”,“full-reset”:“false”,“skipUnlock”:false,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“4200a6e5de69740d”,“deviceUDID”:“4200a6e5de69740d”,“deviceScreenSize”:“1080x1920”,“deviceScreenDensity”:420,“deviceModel”:“SM-G615F”,“deviceManufacturer”:“samsung”}
[info] [HTTP] <-- GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 200 2 ms - 1016
[info] [HTTP] --> GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [MJSONWP] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“appPackage”:“com.samsung.android.contacts”,“appActivity”:“com.android.dialer.DialtactsActivity”,“no-reset”:“true”,“platformVersion”:“7.0”,“automationName”:“UiAutomator2”,“full-reset”:“false”,“skipUnlock”:false,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“4200a6e5de69740d”},“appPackage”:“com.samsung.android.contacts”,“appActivity”:“com.android.dialer.DialtactsActivity”,“no-reset”:“true”,“platformVersion”:“7.0”,“automationName”:“UiAutomator2”,“full-reset”:“false”,“skipUnlock”:false,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“4200a6e5de69740d”,“deviceUDID”:“4200a6e5de69740d”,“deviceScreenSize”:“1080x1920”,“deviceScreenDensity”:420,“deviceModel”:“SM-G615F”,“deviceManufacturer”:“samsung”}
[info] [HTTP] <-- GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 200 2 ms - 1016
[info] [HTTP] --> POST /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2/element/3ec49ea0-794b-4b3f-aefd-962593ea33a9/value {“id”:“3ec49ea0-794b-4b3f-aefd-962593ea33a9”,“value”:[“7827415733”]}
[debug] [MJSONWP] Calling AppiumDriver.setValue() with args: [[“7827415733”],“3ec49ea0-794b-4b3f-aefd-962593ea33a9”,“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [JSONWP Proxy] Proxying [POST /element/3ec49ea0-794b-4b3f-aefd-962593ea33a9/value] to [POST http://localhost:8202/wd/hub/session/cd700542-09d2-453b-8eeb-41a678200150/element/3ec49ea0-794b-4b3f-aefd-962593ea33a9/value] with body: {“elementId”:“3ec49ea0-794b-4b3f-aefd-962593ea33a9”,“text”:“7827415733”,“replace”:false}[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:“cd700542-09d2-453b-8eeb-41a678200150”,“status”:0,“value”:""}
[debug] [MJSONWP] Responding to client with driver.setValue() result: “”
[info] [HTTP] <-- POST /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2/element/3ec49ea0-794b-4b3f-aefd-962593ea33a9/value 200 1239 ms - 74 [info] [HTTP] --> POST /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2/element {“using”:“xpath”,“value”:"//android.widget.Button[@text=‘ENABLE’]"}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: [“xpath”,"//android.widget.Button[@text=‘ENABLE’]",“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 15000 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/cd700542-09d2-453b-8eeb-41a678200150/element] with body: {“strategy”:“xpath”,“selector”:"//android.widget.Button[@text=‘ENABLE’]",“context”:"",“multiple”:false}
[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:“cd700542-09d2-453b-8eeb-41a678200150”,“status”:0,“value”:{“ELEMENT”:“4ebedf51-f262-4de7-9b37-d4d61ef26ea1”}}
[debug] [MJSONWP] Responding to client with driver.findElement() result: {“ELEMENT”:“4ebedf51-f262-4de7-9b37-d4d61ef26ea1”}
[info] [HTTP] <-- POST /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2/element 200 115 ms - 122
[info] [HTTP] --> GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [MJSONWP] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“appPackage”:“com.samsung.android.contacts”,“appActivity”:“com.android.dialer.DialtactsActivity”,“no-reset”:“true”,“platformVersion”:“7.0”,“automationName”:“UiAutomator2”,“full-reset”:“false”,“skipUnlock”:false,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“4200a6e5de69740d”},“appPackage”:“com.samsung.android.contacts”,“appActivity”:“com.android.dialer.DialtactsActivity”,“no-reset”:“true”,“platformVersion”:“7.0”,“automationName”:“UiAutomator2”,“full-reset”:“false”,“skipUnlock”:false,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“4200a6e5de69740d”,“deviceUDID”:“4200a6e5de69740d”,“deviceScreenSize”:“1080x1920”,“deviceScreenDensity”:420,“deviceModel”:“SM-G615F”,“deviceManufacturer”:“samsung”}
[info] [HTTP] <-- GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 200 6 ms - 1016
[info] [HTTP] --> GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [MJSONWP] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“appPackage”:“com.samsung.android.contacts”,“appActivity”:“com.android.dialer.DialtactsActivity”,“no-reset”:“true”,“platformVersion”:“7.0”,“automationName”:“UiAutomator2”,“full-reset”:“false”,“skipUnlock”:false,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“4200a6e5de69740d”},“appPackage”:“com.samsung.android.contacts”,“appActivity”:“com.android.dialer.DialtactsActivity”,“no-reset”:“true”,“platformVersion”:“7.0”,“automationName”:“UiAutomator2”,“full-reset”:“false”,“skipUnlock”:false,“autoGrantPermissions”:true,“platformName”:“Android”,“deviceName”:“4200a6e5de69740d”,“deviceUDID”:“4200a6e5de69740d”,“deviceScreenSize”:“1080x1920”,“deviceScreenDensity”:420,“deviceModel”:“SM-G615F”,“deviceManufacturer”:“samsung”}
[info] [HTTP] <-- GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 200 5 ms - 1016
[info] [HTTP] --> GET /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 {}
[debug] [MJSONWP] Calling AppiumDriver.getSession() with args: [“8e8c1052-94eb-4b41-b714-a79725aafab2”][info] [HTTP] --> POST /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2/element/4ebedf51-f262-4de7-9b37-d4d61ef26ea1/click {“id”:“4ebedf51-f262-4de7-9b37-d4d61ef26ea1”}
[debug] [MJSONWP] Calling AppiumDriver.click() with args: [“4ebedf51-f262-4de7-9b37-d4d61ef26ea1”,“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [JSONWP Proxy] Proxying [POST /element/4ebedf51-f262-4de7-9b37-d4d61ef26ea1/click] to [POST http://localhost:8202/wd/hub/session/cd700542-09d2-453b-8eeb-41a678200150/element/4ebedf51-f262-4de7-9b37-d4d61ef26ea1/click] with body: {“element”:“4ebedf51-f262-4de7-9b37-d4d61ef26ea1”}
[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:“cd700542-09d2-453b-8eeb-41a678200150”,“status”:0,“value”:true}
[debug] [MJSONWP] Responding to client with driver.click() result: true
[info] [HTTP] <-- POST /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2/element/4ebedf51-f262-4de7-9b37-d4d61ef26ea1/click 200 45 ms - 76
[info] [HTTP] --> DELETE /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 {}
[debug] [MJSONWP] Calling AppiumDriver.deleteSession() with args: [“8e8c1052-94eb-4b41-b714-a79725aafab2”]
[debug] [BaseDriver] Event ‘quitSessionRequested’ logged at 1523909279362 (01:37:59 GMT+0530 (India Standard Time))
[info] [Appium] Removing session 8e8c1052-94eb-4b41-b714-a79725aafab2 from our master session list
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[debug] [JSONWP Proxy] Proxying [DELETE /] to [DELETE http://localhost:8202/wd/hub/session/cd700542-09d2-453b-8eeb-41a678200150] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{“sessionId”:“cd700542-09d2-453b-8eeb-41a678200150”,“status”:0,“value”:“Session deleted”}”
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘C:\Appium\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“4200a6e5de69740d”,“shell”,“am”,“force-stop”,“com.samsung.android.contacts”][debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:.
[debug] [UiAutomator2] [UIAutomator2] Time: 56.043
[debug] [UiAutomator2] [UIAutomator2] OK (1 test)[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8202
[debug] [ADB] Running ‘C:\Appium\platform-tools\adb.exe’ with args: ["-P",5037,"-s",“4200a6e5de69740d”,“forward”,"–remove",“tcp:8202”][debug] [BaseDriver] Event ‘quitSessionFinished’ logged at 1523909281605 (01:38:01 GMT+0530 (India Standard Time))
[debug] [MJSONWP] Received response: null
[debug] [MJSONWP] But deleting session, so not returning
[debug] [MJSONWP] Responding to client with driver.deleteSession() result: null
[info] [HTTP] <-- DELETE /wd/hub/session/8e8c1052-94eb-4b41-b714-a79725aafab2 200 2244 ms - 76

There are several suggestions on that link. What did not work out for you? That log means nothing without context.

@wreed I kind of tried all.
What i am doing is i am trying to automate the Call forwarding in a Samsung Android 7.0 device.
Problem Description:
clear method clears the value but retains and when send keys new value is passed the text box shows previous value + new value in selenium Appium. Kindly suggest. Version:java-client-4.1.2 Appium Server:v1.7.2 Selenium: 3.0.1

Method using:

 public void clearTextBox(String text) throws InterruptedException, IOException{
	 
	 driver.findElement(By.id("com.android.phone:id/number_field")).click();
	 Thread.sleep(3000);
	//driver.findElement(By.className("android.widget.EditText")).clear();
	 driver.findElement(By.className("android.widget.EditText")).clear();
	 Thread.sleep(4000);
	 driver.findElement(By.className("android.widget.EditText")).click();
	 driver.findElement(By.className("android.widget.EditText")).sendKeys(text);
	 
	 }

clear() does not clear the value when i use sendkeys() it appends the value previous value + new value.

Snapshot post sendkeys()

Snapshot of UI Automator: