test fix
test fix
bugfix + extra test
bugfix + test fix
Added element object.

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 :

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

And :

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

This is implemented for :
- sendKeys
- click
- text
- textPresent
- getAttribute
- getValue
- clear
Changed test so that code with element passes all unit tests.

This sounds weird, one should ot have to update the unit test so that new code works. This goes against the principle of regression testing. However, for some reason equality test fail on objects even thought they share all properties and that all properties are strictly equal. There must be a better way to go about this.
Fixed leak.
Added example using the new element object.
Corrected element object to actually work with new methods.
Added unit tests for the new element object.
Merge pull request #27 from OniOni/new_element

Woot, nice!
Upping version to add method chaining
add getComputedCSS to protocol and element
document getComputedCSS
added a isVisible method
Update feature/getComputedCSS
Update feature/getComputedCSS
Merge branch 'feature/getComputedCSS' of github.com:Pita/wd into feature/isVisible
document isVisible
added a waitForElement method