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.
Oops, wasn't clear.

I mean the string formatting.  I.e., what's
```
req.body.value.join(' ')
```
about, why is it required, what does it do, and what does the string look
like when it's done.


On Mon, Aug 18, 2014 at 11:30 AM, bootstraponline <notifications@github.com>
wrote:

> In lib/server/controller.js:
>
> > @@ -257,6 +257,13 @@ exports.setValue = function (req, res) {
> >    req.device.setValue(elementId, value, getResponseHandler(req, res));
> >  };
> >
> > +exports.replaceValue = function (req, res) {
> > +  var elementId = req.params.elementId
> > +    , value = req.body.value.join('');
>
> appium has a style guide
> <https://github.com/appium/appium/blob/master/docs/en/contributing-to-appium/style-guide.md>
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/appium/appium/pull/3402/files#r16360140>.
>