Settings

added the `settings` api, plus implemented the setting for xpath compression.
added docs and tests

will squash once approved of course,

Oh, also had to add to wd.js to get the tests working. If we are ok with my implementation I'll push there. In the meantime you can clone [my fork of wd.js](https://github.com/jonahss/wd).

And then I'm going to go and update the rest of the clients....

(of course I'll squash, once we're through here ;)
wouldn't this work?

  if (this.settings.xpathCompression) {



On Wed, Sep 3, 2014 at 11:47 AM, Jonathan Lipps <notifications@github.com>
wrote:

> In lib/devices/android/android-controller.js:
>
> > @@ -53,6 +53,10 @@ androidController.findUIElementOrElements = function (strategy, selector, many,
> >    , context: context
> >    , multiple: many
> >    };
> > +  if ("xpathCompression" in this.settings) {
>
> ooooh, don't use in. It doesn't do what you expect in javascript. use
> _.has() instead!
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/appium/appium/pull/3547/files#r17058683>.
>