{"action":"opened","issue":{"url":"https://api.github.com/repos/appium/appium/issues/5331","labels_url":"https://api.github.com/repos/appium/appium/issues/5331/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/5331/comments","events_url":"https://api.github.com/repos/appium/appium/issues/5331/events","html_url":"https://github.com/appium/appium/issues/5331","id":92542980,"number":5331,"title":"send_keys sends wrong value","user":{"login":"polaris007","id":11870947,"avatar_url":"https://avatars.githubusercontent.com/u/11870947?v=3","gravatar_id":"","url":"https://api.github.com/users/polaris007","html_url":"https://github.com/polaris007","followers_url":"https://api.github.com/users/polaris007/followers","following_url":"https://api.github.com/users/polaris007/following{/other_user}","gists_url":"https://api.github.com/users/polaris007/gists{/gist_id}","starred_url":"https://api.github.com/users/polaris007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polaris007/subscriptions","organizations_url":"https://api.github.com/users/polaris007/orgs","repos_url":"https://api.github.com/users/polaris007/repos","events_url":"https://api.github.com/users/polaris007/events{/privacy}","received_events_url":"https://api.github.com/users/polaris007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-02T04:10:56Z","updated_at":"2015-07-02T04:10:56Z","closed_at":null,"body":"Issue https://github.com/appium/appium/issues/4844 is marked as closed. But I can still encounter the same issue. It happens consistently in my env:\r\n\r\nTest device: Samsung Galaxy S4, Android 4.4.2\r\nAppium java client: 2.2.0\r\nAppium server: 1.4.0 and 1.4.6\r\n\r\nI sent \"https://bej301133.cn.oracle.com:9002/bmax/bmconfig_oam_pwd.json\", but always got \"https://bej301133.cn.oracle.com:W00a/bmax/bmconfig_oam_pwd.\".\r\n\r\nI invoke send_keys and then invoke getText to get the text of the element. The following are the logs of Appium:\r\n----------------------------------------------------------------------------------------\r\ninfo: --> POST /wd/hub/session/c0eb53e0-68af-4691-b75a-d8fb14aae3fb/element/2/clear {\"id\":\"2\"}\r\n\r\n\r\ninfo: [debug] Pushing command to appium work queue: [\"element:clear\",{\"elementId\":\"2\"}]\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Got data from client: {\"cmd\":\"action\",\"action\":\"element:clear\",\"params\":{\"elementId\":\"2\"}}\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Got command of type ACTION\r\ninfo: [debug] [BOOTSTRAP] [debug] Got command action: clear\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Attempting to clear using UiObject.clearText().\r\n\r\n\r\ninfo: --> GET /wd/hub/status {}\r\n\r\n\r\ninfo: [debug] Responding to client with success: {\"status\":0,\"value\":{\"build\":{\"version\":\"1.4.1\",\"revision\":\"ce6220829063679bcccf5724515c29569c4a16d9\"}},\"sessionId\":\"c0eb53e0-68af-4691-b75a-d8fb14aae3fb\"}\r\n\r\n\r\ninfo: <-- GET /wd/hub/status 200 2.046 ms - 155 {\"status\":0,\"value\":{\"build\":{\"version\":\"1.4.1\",\"revision\":\"ce6220829063679bcccf5724515c29569c4a16d9\"}},\"sessionId\":\"c0eb53e0-68af-4691-b75a-d8fb14aae3fb\"}\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Clearing text not successful. Attempting to clear by selecting all and deleting.\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Text remains after clearing, but it appears to be hint text.\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Returning result: {\"value\":true,\"status\":0}\r\ninfo: [debug] Responding to client with success: {\"status\":0,\"value\":true,\"sessionId\":\"c0eb53e0-68af-4691-b75a-d8fb14aae3fb\"}\r\n\r\n\r\ninfo: <-- POST /wd/hub/session/c0eb53e0-68af-4691-b75a-d8fb14aae3fb/element/2/clear 200 9344.674 ms - 76 {\"status\":0,\"value\":true,\"sessionId\":\"c0eb53e0-68af-4691-b75a-d8fb14aae3fb\"}\r\n\r\n\r\ninfo: --> POST /wd/hub/session/c0eb53e0-68af-4691-b75a-d8fb14aae3fb/element/2/value {\"id\":\"2\",\"value\":[\"https://bej301133.cn.oracle.com:9002/bmax/bmconfig_oam_pwd.json\"]}\r\n\r\n\r\ninfo: [debug] Pushing command to appium work queue: [\"element:setText\",{\"elementId\":\"2\",\"text\":\"https://bej301133.cn.oracle.com:9002/bmax/bmconfig_oam_pwd.json\",\"replace\":false}]\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Got data from client: {\"cmd\":\"action\",\"action\":\"element:setText\",\"params\":{\"elementId\":\"2\",\"text\":\"https://bej301133.cn.oracle.com:9002/bmax/bmconfig_oam_pwd.json\",\"replace\":false}}\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Got command of type ACTION\r\ninfo: [debug] [BOOTSTRAP] [debug] Got command action: setText\r\ninfo: [debug] [BOOTSTRAP] [debug] Using element passed in.\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Attempting to clear using UiObject.clearText().\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Text remains after clearing, but it appears to be hint text.\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Text not cleared. Assuming remainder is hint text.\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Sending plain text to element: https://bej301133.cn.oracle.com:9002/bmax/bmconfig_oam_pwd.json\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Returning result: {\"value\":true,\"status\":0}\r\n\r\n\r\ninfo: [debug] Responding to client with success: {\"status\":0,\"value\":true,\"sessionId\":\"c0eb53e0-68af-4691-b75a-d8fb14aae3fb\"}\r\n\r\n\r\ninfo: <-- POST /wd/hub/session/c0eb53e0-68af-4691-b75a-d8fb14aae3fb/element/2/value 200 7118.701 ms - 76 {\"status\":0,\"value\":true,\"sessionId\":\"c0eb53e0-68af-4691-b75a-d8fb14aae3fb\"}\r\n\r\n\r\ninfo: --> GET /wd/hub/session/c0eb53e0-68af-4691-b75a-d8fb14aae3fb/element/2/text {}\r\n\r\n\r\ninfo: [debug] Pushing command to appium work queue: [\"element:getText\",{\"elementId\":\"2\"}]\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Got data from client: {\"cmd\":\"action\",\"action\":\"element:getText\",\"params\":{\"elementId\":\"2\"}}\r\ninfo: [debug] [BOOTSTRAP] [debug] Got command of type ACTION\r\ninfo: [debug] [BOOTSTRAP] [debug] Got command action: getText\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Returning result: {\"value\":\"https:\\/\\/bej301133.cn.oracle.com:W00a\\/bmax\\/bmconfig_oam_pwd.\",\"status\":0}\r\n\r\n\r\ninfo: [debug] Responding to client with success: {\"status\":0,\"value\":\"https://bej301133.cn.oracle.com:W00a/bmax/bmconfig_oam_pwd.\",\"sessionId\":\"c0eb53e0-68af-4691-b75a-d8fb14aae3fb\"}\r\n\r\n\r\ninfo: <-- GET /wd/hub/session/c0eb53e0-68af-4691-b75a-d8fb14aae3fb/element/2/text 200 318.474 ms - 133 {\"status\":0,\"value\":\"https://bej301133.cn.oracle.com:W00a/bmax/bmconfig_oam_pwd.\",\"sessionId\":\"c0eb53e0-68af-4691-b75a-d8fb14aae3fb\"}\r\n\r\n\r\ninfo: --> GET /wd/hub/session/c0eb53e0-68af-4691-b75a-d8fb14aae3fb/element/2/text {}\r\n\r\n\r\ninfo: [debug] Pushing command to appium work queue: [\"element:getText\",{\"elementId\":\"2\"}]\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Got data from client: {\"cmd\":\"action\",\"action\":\"element:getText\",\"params\":{\"elementId\":\"2\"}}\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Got command of type ACTION\r\ninfo: [debug] [BOOTSTRAP] [debug] Got command action: getText\r\n\r\n\r\ninfo: [debug] [BOOTSTRAP] [debug] Returning result: {\"value\":\"https:\\/\\/bej301133.cn.oracle.com:W00a\\/bmax\\/bmconfig_oam_pwd.\",\"status\":0}\r\n\r\n\r\ninfo: [debug] Responding to client with success: {\"status\":0,\"value\":\"https://bej301133.cn.oracle.com:W00a/bmax/bmconfig_oam_pwd.\",\"sessionId\":\"c0eb53e0-68af-4691-b75a-d8fb14aae3fb\"}\r\ninfo: <-- GET /wd/hub/session/c0eb53e0-68af-4691-b75a-d8fb14aae3fb/element/2/text 200 37.732 ms - 133 {\"status\":0,\"value\":\"https://bej301133.cn.oracle.com:W00a/bmax/bmconfig_oam_pwd.\",\"sessionId\":\"c0eb53e0-68af-4691-b75a-d8fb14aae3fb\"}\r\n\r\n"}}