Added replace parameter for setText

Requires https://github.com/admc/wd/pull/333 to be pulled first.

I also want to create a test for this in keyboard-specs.js but I can add that in another pull. 

Tested with the wd.js change and it works for me.
Good point.  I'll create a ticket for that.


On Mon, Aug 18, 2014 at 12:13 PM, bootstraponline <notifications@github.com>
wrote:

> In
> lib/devices/android/bootstrap/src/io/appium/android/bootstrap/handler/SetText.java:
>
> > @@ -31,8 +31,9 @@ public AndroidCommandResult execute(final AndroidCommand command)
> >        try {
> >          final Hashtable<String, Object> params = command.params();
> >          final AndroidElement el = command.getElement();
> > +        boolean replace = Boolean.parseBoolean(params.get("replace").toString());
>
> The proper fix for this is defining a better get method so we don't have
> to add logic each time a param is fetched. The server could use some
> general clean up.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/appium/appium/pull/3402/files#r16363471>.
>