Issue with sendKeys selecting all text and not saving sent string

Hi,

I’m trying to run a test where I select a textfield, send new text to it, and then save the new text. Right now, it appears that when the sendKeys() command is issued, all of the text is selected and then not saved.

driver step:

public static void enterText(String text, String textField) {
    final WebElement element = Driver.findElement(By.name(textField));
    element.click();
    element.clear();
    element.sendKeys(text);
}

Here are the appium logs from that particular patch of code:

info: [debug] Socket data received (39 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":{"ELEMENT":"28"}}
info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"28"},"sessionId":"6ea1857c-40f5-4ce1-abb6-31942d81a0fc"}
info: <-- POST /wd/hub/session/6ea1857c-40f5-4ce1-abb6-31942d81a0fc/element 200 505.581 ms - 88 {"status":0,"value":{"ELEMENT":"28"},"sessionId":"6ea1857c-40f5-4ce1-abb6-31942d81a0fc"}

info: --> POST /wd/hub/session/6ea1857c-40f5-4ce1-abb6-31942d81a0fc/element/28/click {"id":"28"}
info: [debug] Pushing command to appium work queue: "au.tapById('28')"
info: [debug] Sending command to instruments: au.tapById('28')
info: [debug] [INST STDERR] 2014-10-28 12:14:58.113 ScriptAgent[99042:2f07] Log written to /Users/foglemaa/Library/Application Support/iPhone Simulator/7.1-64/Library/Logs/CrashReporter/UIALogs/ScriptError-2014-10-28-121458.plist
info: [IOS_SYSLOG_ROW ] Oct 28 12:14:58 600308a094e4.ant.amazon.com ScriptAgent[99042] <Warning>: Log written to /Users/foglemaa/Library/Application Support/iPhone Simulator/7.1-64/Library/Logs/CrashReporter/UIALogs/ScriptError-2014-10-28-121458.plist

info: [debug] [INST] 2014-10-28 19:14:58 +0000 Debug: Got new command 79 from instruments: au.tapById('28')

info: [debug] [INST] 2014-10-28 19:14:58 +0000 Debug: evaluating au.tapById('28')

info: [debug] [INST] 2014-10-28 19:14:58 +0000 Debug: target.frontMostApp().elements()[0].elements()[4].elements()[1].tap()

info: [debug] [INST] 2014-10-28 19:14:58 +0000 Debug: evaluation finished

info: [debug] [INST] 2014-10-28 19:14:58 +0000 Debug: responding with:

info: [debug] [INST] 2014-10-28 19:14:58 +0000 Debug: Running system command #80: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":""}...

info: [debug] Socket data received (25 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":""}
info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"6ea1857c-40f5-4ce1-abb6-31942d81a0fc"}
info: <-- POST /wd/hub/session/6ea1857c-40f5-4ce1-abb6-31942d81a0fc/element/28/click 200 349.311 ms - 74 {"status":0,"value":"","sessionId":"6ea1857c-40f5-4ce1-abb6-31942d81a0fc"}

info: --> POST /wd/hub/session/6ea1857c-40f5-4ce1-abb6-31942d81a0fc/element {"using":"name","value":"Name Field"}
info: [debug] Waiting up to 0ms for condition
info: [debug] Pushing command to appium work queue: "au.getElementByName('Name Field')"
info: [debug] Sending command to instruments: au.getElementByName('Name Field')

info: [debug] [INST] 2014-10-28 19:14:58 +0000 Debug: Got new command 80 from instruments: au.getElementByName('Name Field')

info: [IOS_SYSLOG_ROW ] Oct 28 12:14:58 600308a094e4.ant.amazon.com mediaremoted[99023] <Error>: Property list invalid for format: 200 (property lists cannot contain NULL)

info: [debug] [INST] 2014-10-28 19:14:58 +0000 Debug: evaluating au.getElementByName('Name Field')

info: [debug] [INST] 2014-10-28 19:14:58 +0000 Debug: evaluation finished

info: [debug] [INST] 2014-10-28 19:14:58 +0000 Debug: responding with:

info: [debug] [INST] 2014-10-28 19:14:58 +0000 Debug: Running system command #81: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":""}...

info: [debug] Socket data received (25 bytes)

info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":""}
info: [debug] Condition unmet after 264ms. Timing out.
info: [debug] Responding to client with error: {"status":7,"value":{"message":"An element could not be located on the page using the given search parameters.","origValue":""},"sessionId":"6ea1857c-40f5-4ce1-abb6-31942d81a0fc"}
info: <-- POST /wd/hub/session/6ea1857c-40f5-4ce1-abb6-31942d81a0fc/element 500 265.524 ms - 179 

info: --> DELETE /wd/hub/session/6ea1857c-40f5-4ce1-abb6-31942d81a0fc {}
info: Shutting down appium session
info: [debug] Stopping ios
info: [debug] Destroying instruments client socket.
info: [debug] Closing socket server.
info: [debug] Instruments socket server was closed
info: [debug] Sending sigterm to instruments

info: [debug] [INST] 2014-10-28 19:14:58 +0000 Stopped: Script was stopped by the user

info: [IOS_SYSLOG_ROW ] Oct 28 12:14:58 --- last message repeated 3 times ---

iOS 7.0
Appium 1.3.1 (GUI)