Check [this](https://github.com/admc/wd/blob/master/lib/element.js#L223) out.