admc/wd — pull request #27 by OniOni (2012-06-06 23:00:41+00:00)
Title: New element

In other Webdriver implementations, it is possible to call methods such as click on returned elements. This is now possible with the element object. Old methods that work on the browser object still work.

So you can choose between :

```js
browser.element(locatorBy, locator, function (err, el) {
el.click(function() { ... });
}
```

And :

```js
browser.element(locatorBy, locator, function (err, el) {
browser.clickElement(el, function() { ... });
}
```

This is implemented for :
- sendKeys
- click
- text
- textPresent
- getAttribute
- getValue
- clear

## Problem

I had to rewrite two test cases for the tests to pass with the new element object.
Equality tests fail between two elements that have same properties and strict equality for all these properties.